rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
port = self.server.getHost()[2] | port = self.server.getHost().port | def testOurServerOpenSSHClient(self): """test the SSH server against the OpenSSH client """ if os.name != 'posix': raise unittest.SkipTest("cannot run on non-posix") cmdline = ('ssh -2 -l testuser -p %i ' '-oUserKnownHostsFile=kh_test ' '-oPasswordAuthentication=no ' # Always use the RSA key, since that's the one in kh... | a321c61de26d910583faec1384af80387f778cd6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/a321c61de26d910583faec1384af80387f778cd6/test_conch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
51,
295,
2081,
3678,
12559,
1227,
12,
2890,
4672,
3536,
3813,
326,
9892,
1438,
5314,
326,
3502,
12559,
1004,
3536,
309,
1140,
18,
529,
480,
296,
24463,
4278,
1002,
2836,
3813,
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,
1842,
51,
295,
2081,
3678,
12559,
1227,
12,
2890,
4672,
3536,
3813,
326,
9892,
1438,
5314,
326,
3502,
12559,
1004,
3536,
309,
1140,
18,
529,
480,
296,
24463,
4278,
1002,
2836,
3813,
18,
... |
</html> | </html> | def __init__(self, app, mapper, global_conf=None, **kw): | ad2b5581c6f72b5cb630b6b63eb84b3414214056 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2097/ad2b5581c6f72b5cb630b6b63eb84b3414214056/errordocument.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
595,
16,
5815,
16,
2552,
67,
3923,
33,
7036,
16,
2826,
9987,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
595,
16,
5815,
16,
2552,
67,
3923,
33,
7036,
16,
2826,
9987,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.IndexChoice.Append("0x%04X\t%s"%(index, name)) | self.IndexChoice.Append("0x%04X %s"%(index, name)) | def RefreshIndexList(self): selected = self.IndexList.GetSelection() choice = self.IndexChoice.GetStringSelection() choiceindex = self.IndexChoice.GetSelection() if selected != wxNOT_FOUND: selectedindex = self.ListIndex[selected] self.IndexList.Clear() self.IndexChoice.Clear() i = self.PartList.GetSelection() if i < l... | c9eea8ad6a980294d0f9a8a96b05e2690eab4c47 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/116/c9eea8ad6a980294d0f9a8a96b05e2690eab4c47/objdictedit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14179,
1016,
682,
12,
2890,
4672,
3170,
273,
365,
18,
1016,
682,
18,
967,
6233,
1435,
6023,
273,
365,
18,
1016,
10538,
18,
967,
780,
6233,
1435,
6023,
1615,
273,
365,
18,
1016,
10538,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14179,
1016,
682,
12,
2890,
4672,
3170,
273,
365,
18,
1016,
682,
18,
967,
6233,
1435,
6023,
273,
365,
18,
1016,
10538,
18,
967,
780,
6233,
1435,
6023,
1615,
273,
365,
18,
1016,
10538,
... |
assert 0 self.asyncswitch.addcase(case, block) | channelvar = cxx.ExprAddrOf(cxx.ExprVar('mChannel')) impl.addstmt(cxx.StmtExpr(cxx.ExprAssn( cxx.ExprSelect(objvar, '->', 'mChannel'), channelvar))) elif md.decl.type.isDtor(): impl.addstmt(cxx.StmtExpr( cxx.ExprCall(cxx.ExprVar('Unregister'), [ objid ]))) impl.addstmt(cxx.StmtExpr( cxx.ExprAssn(objid, cxx.ExprLiteral... | def injectDtorResponseHandler(block, actorObjVar, actorId): block.addstmt(cxx.StmtExpr( cxx.ExprCall(cxx.ExprVar('Unregister'), [ actorId ]))) block.addstmt(cxx.StmtExpr( cxx.ExprAssn(actorId, cxx.ExprLiteral.Int(-1)))) block.addstmt(cxx.StmtExpr( cxx.ExprAssn( cxx.ExprSelect(actorObjVar, '->', 'mManager'), cxx.ExprLit... | a864017a0319c1647f5f43fdebf3ac181d70f464 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/a864017a0319c1647f5f43fdebf3ac181d70f464/lower.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4590,
40,
13039,
1064,
1503,
12,
2629,
16,
8327,
2675,
1537,
16,
8327,
548,
4672,
1203,
18,
1289,
10589,
12,
71,
5279,
18,
8952,
4742,
12,
276,
5279,
18,
4742,
1477,
12,
71,
5279,
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,
4590,
40,
13039,
1064,
1503,
12,
2629,
16,
8327,
2675,
1537,
16,
8327,
548,
4672,
1203,
18,
1289,
10589,
12,
71,
5279,
18,
8952,
4742,
12,
276,
5279,
18,
4742,
1477,
12,
71,
5279,
18,
... |
try: body = [output, extra] except NameError: body = [output] | body = [output] | def perform_removefieldvalue(colID, ln, fldID='', fldvID='', fmeth='', callback='yes', confirm=0): """form to remove a field from a collection. colID - the current collection, remove the field from this collection. sel_ln - remove the field with this language fldID - remove the field with this id""" subtitle = """<a n... | fb83561e15cf55d482f8b6090f9c163f4f103bae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/fb83561e15cf55d482f8b6090f9c163f4f103bae/websearchadminlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
4479,
1518,
1132,
12,
1293,
734,
16,
7211,
16,
9880,
734,
2218,
2187,
9880,
90,
734,
2218,
2187,
10940,
546,
2218,
2187,
1348,
2218,
9707,
2187,
6932,
33,
20,
4672,
3536,
687,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
4479,
1518,
1132,
12,
1293,
734,
16,
7211,
16,
9880,
734,
2218,
2187,
9880,
90,
734,
2218,
2187,
10940,
546,
2218,
2187,
1348,
2218,
9707,
2187,
6932,
33,
20,
4672,
3536,
687,
... |
q=query, page=page - 1) | q=req.args.get('q'), page=page - 1) | def process_request(self, req): req.perm.assert_permission('SEARCH_VIEW') | 0e4c9b44beda5307fc76a6cc1372b722b2fab429 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/0e4c9b44beda5307fc76a6cc1372b722b2fab429/Search.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2293,
12,
2890,
16,
1111,
4672,
1111,
18,
12160,
18,
11231,
67,
9827,
2668,
17251,
67,
12145,
6134,
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,
1207,
67,
2293,
12,
2890,
16,
1111,
4672,
1111,
18,
12160,
18,
11231,
67,
9827,
2668,
17251,
67,
12145,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
http_type = HTTP_RESPONSE | def __init__(self, sess, manager): HTTPRequest.__init__(self, sess, manager) self.http_type = HTTP_RESPONSE | def _parse_body(self, payload, end_ptr=0): if self.chunked: idx = 0 clen, cbody = self.chunks[-1] | 968802cc3fd7bddc23804216cfc04928b9bb40d9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11468/968802cc3fd7bddc23804216cfc04928b9bb40d9/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
3432,
12,
2890,
16,
2385,
16,
679,
67,
6723,
33,
20,
4672,
309,
365,
18,
6551,
329,
30,
2067,
273,
374,
29059,
16,
2875,
973,
273,
365,
18,
14691,
18919,
21,
65,
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,
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,
2670,
67,
3432,
12,
2890,
16,
2385,
16,
679,
67,
6723,
33,
20,
4672,
309,
365,
18,
6551,
329,
30,
2067,
273,
374,
29059,
16,
2875,
973,
273,
365,
18,
14691,
18919,
21,
65,
2,
... |
return False | def delete_event(self, widget, event, data=None): cancel = self.autosave_image() if cancel == True: return self.stop_now = True self.closing_app = True self.save_settings() sys.exit(0) return False | d58c579809d9403dea67a165875ccd600372f4f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d58c579809d9403dea67a165875ccd600372f4f3/mirage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
2575,
12,
2890,
16,
3604,
16,
871,
16,
501,
33,
7036,
4672,
3755,
273,
365,
18,
21996,
836,
67,
2730,
1435,
309,
3755,
422,
1053,
30,
327,
365,
18,
5681,
67,
3338,
273,
105... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
2575,
12,
2890,
16,
3604,
16,
871,
16,
501,
33,
7036,
4672,
3755,
273,
365,
18,
21996,
836,
67,
2730,
1435,
309,
3755,
422,
1053,
30,
327,
365,
18,
5681,
67,
3338,
273,
105... | |
def run_gui(self): raise NotImplementedError | def getResponse(self, response): """Obtain the response to supply to the callback. @param response: The response from the dialog's C{ShowModal} method. @return: The response to supply to the callback. """ return response def _run_gui(self): if self.selfIsDialog: self.makeDialog() dialog = self else: dialog = self.dial... | def run_gui(self): raise NotImplementedError | 25df78cbdd9aebbbbcfb17f95cfe33c651195c60 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/25df78cbdd9aebbbbcfb17f95cfe33c651195c60/scriptUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
20292,
12,
2890,
4672,
1002,
11206,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
20292,
12,
2890,
4672,
1002,
11206,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
return ComplexNode.updates(self) | return self.bodyupdates() | def updates(self): return ComplexNode.updates(self) | 67c89cc6416f403aea70f83efafb2d60b0a315ca /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2040/67c89cc6416f403aea70f83efafb2d60b0a315ca/esotope-bfc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4533,
12,
2890,
4672,
327,
16060,
907,
18,
14703,
12,
2890,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
4533,
12,
2890,
4672,
327,
16060,
907,
18,
14703,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
assert data == "" | assert buf.tell() == 0 | def readline(self, size=-1): data = self._rbuf if size < 0: # Read until \n or EOF, whichever comes first if self._rbufsize <= 1: # Speed up unbuffered case assert data == "" buffers = [] recv = self._sock.recv while data != "\n": data = recv(1) if not data: break buffers.append(data) return "".join(buffers) nl = data.... | 8f96b3937325bb2c07511f62915490ab796e078a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/8f96b3937325bb2c07511f62915490ab796e078a/socket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12023,
12,
2890,
16,
963,
29711,
21,
4672,
501,
273,
365,
6315,
86,
4385,
309,
963,
411,
374,
30,
468,
2720,
3180,
521,
82,
578,
6431,
16,
600,
335,
580,
502,
14535,
1122,
309,
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,
12023,
12,
2890,
16,
963,
29711,
21,
4672,
501,
273,
365,
6315,
86,
4385,
309,
963,
411,
374,
30,
468,
2720,
3180,
521,
82,
578,
6431,
16,
600,
335,
580,
502,
14535,
1122,
309,
365,
... |
text = Param.textToValue(self, text) tmp = locale.atof(text) val = int(tmp) if val not in self.value_to_index: val = self.default | value = Param.textToValue(self, text) val = self.convertStringValueToCorrectType(value) | def textToValue(self, text): try: text = Param.textToValue(self, text) tmp = locale.atof(text) val = int(tmp) if val not in self.value_to_index: val = self.default except: val = self.default return val | 5e83d5d472b313eae65bb5c98147fae02e10e47d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11522/5e83d5d472b313eae65bb5c98147fae02e10e47d/userparams.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
977,
31183,
12,
2890,
16,
977,
4672,
775,
30,
460,
273,
3014,
18,
955,
31183,
12,
2890,
16,
977,
13,
1244,
273,
365,
18,
6283,
19733,
774,
16147,
559,
12,
1132,
13,
1335,
30,
1244,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
977,
31183,
12,
2890,
16,
977,
4672,
775,
30,
460,
273,
3014,
18,
955,
31183,
12,
2890,
16,
977,
13,
1244,
273,
365,
18,
6283,
19733,
774,
16147,
559,
12,
1132,
13,
1335,
30,
1244,
2... |
else: self.TunerNextChannel() | def eventhandler(self, event): print '%s: %s app got %s event' % (time.time(), self.mode, event) if event == em.STOP or event == em.PLAY_END: self.Stop() rc.post_event(em.PLAY_END) return TRUE elif event == em.TV_CHANNEL_UP or event == em.TV_CHANNEL_DOWN: if self.mode == 'vcr': return # Go to the prev/next channel in... | 572db3fd14fecef81b830603c6fb3bbc84029de2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/572db3fd14fecef81b830603c6fb3bbc84029de2/mplayer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
871,
4176,
12,
2890,
16,
871,
4672,
1172,
1995,
87,
30,
738,
87,
595,
2363,
738,
87,
871,
11,
738,
261,
957,
18,
957,
9334,
365,
18,
3188,
16,
871,
13,
309,
871,
422,
801,
18,
1751... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
871,
4176,
12,
2890,
16,
871,
4672,
1172,
1995,
87,
30,
738,
87,
595,
2363,
738,
87,
871,
11,
738,
261,
957,
18,
957,
9334,
365,
18,
3188,
16,
871,
13,
309,
871,
422,
801,
18,
1751... | |
self.addDataToDB (['a', 'b', 'c']) | self.addDataToDB ([b'a', b'b', b'c']) | def bad_comparator (l, r): if l == r: # pass the set_bt_compare test return 0 raise RuntimeError("i'm a naughty comparison function") | 1d6ec653d003e5ad16e0cf7bb6df62b0135f9ea8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/1d6ec653d003e5ad16e0cf7bb6df62b0135f9ea8/test_compare.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5570,
67,
832,
2528,
261,
80,
16,
436,
4672,
309,
328,
422,
436,
30,
468,
1342,
326,
444,
67,
23602,
67,
9877,
1842,
327,
374,
1002,
7265,
2932,
77,
17784,
279,
290,
16510,
93,
5826,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5570,
67,
832,
2528,
261,
80,
16,
436,
4672,
309,
328,
422,
436,
30,
468,
1342,
326,
444,
67,
23602,
67,
9877,
1842,
327,
374,
1002,
7265,
2932,
77,
17784,
279,
290,
16510,
93,
5826,
... |
return _(u"File extension is ${ext}", mapping=dict(ext=", ".join(self.file_extension))) | return _(u"File extension is ${ext}", mapping=dict(ext=self.file_extension)) | def summary(self): return _(u"File extension is ${ext}", mapping=dict(ext=", ".join(self.file_extension))) | 7cada62bbc2446ba29c3aae96a385c2af39f50f7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12184/7cada62bbc2446ba29c3aae96a385c2af39f50f7/fileextension.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4916,
12,
2890,
4672,
327,
389,
12,
89,
6,
812,
2710,
353,
3531,
408,
1532,
16,
2874,
33,
1576,
12,
408,
1546,
16,
3552,
5701,
12,
2890,
18,
768,
67,
6447,
20349,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4916,
12,
2890,
4672,
327,
389,
12,
89,
6,
812,
2710,
353,
3531,
408,
1532,
16,
2874,
33,
1576,
12,
408,
1546,
16,
3552,
5701,
12,
2890,
18,
768,
67,
6447,
20349,
2,
-100,
-100,
-100... |
try: sources.append(form[name+'-body'].file) except (KeyError, AttributeError): pass try: url = form[name+'-url'].value referer = '/'.join(url.split('/')[:-1])+'/' | if self.allowFile: try: sources.append(form[name+'-body'].file) except (KeyError, AttributeError): pass if self.allowUrl: try: url = form[name+'-url'].value referer = '/'.join(url.split('/')[:-1])+'/' | def convertFromForm(self, form, name, item): old_path = getattr(getattr(item, name), 'path', None) if form.has_key(name+'-delete'): return self._Image(self, item, '', old_path) | 7e4c175ac7001077edf433802942b2f9ad35c1c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1871/7e4c175ac7001077edf433802942b2f9ad35c1c2/qFieldTypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
1265,
1204,
12,
2890,
16,
646,
16,
508,
16,
761,
4672,
1592,
67,
803,
273,
225,
3869,
12,
588,
1747,
12,
1726,
16,
508,
3631,
296,
803,
2187,
599,
13,
309,
646,
18,
5332,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
1265,
1204,
12,
2890,
16,
646,
16,
508,
16,
761,
4672,
1592,
67,
803,
273,
225,
3869,
12,
588,
1747,
12,
1726,
16,
508,
3631,
296,
803,
2187,
599,
13,
309,
646,
18,
5332,
67,
... |
def exportAttributes(self, outfile, level, namespace_='', name_='Meta'): super(Meta, self).exportAttributes(outfile, level, namespace_, name_='Meta') | def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='Meta'): super(Meta, self).exportAttributes(outfile, level, already_processed, namespace_, name_='Meta') | def exportAttributes(self, outfile, level, namespace_='', name_='Meta'): super(Meta, self).exportAttributes(outfile, level, namespace_, name_='Meta') | 10f2a4b3101435822c472af9b202a5a0bb496366 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/10f2a4b3101435822c472af9b202a5a0bb496366/_nexml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
2498,
12,
2890,
16,
8756,
16,
1801,
16,
1981,
67,
2218,
2187,
508,
67,
2218,
2781,
11,
4672,
2240,
12,
2781,
16,
365,
2934,
6530,
2498,
12,
26050,
16,
1801,
16,
1981,
67,
16,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
2498,
12,
2890,
16,
8756,
16,
1801,
16,
1981,
67,
2218,
2187,
508,
67,
2218,
2781,
11,
4672,
2240,
12,
2781,
16,
365,
2934,
6530,
2498,
12,
26050,
16,
1801,
16,
1981,
67,
16,
5... |
def setGeomery(self, line): | def setGeometry(self, line): | def setGeomery(self, line): line.setTheZ(self.coord.theZ); line.setTheT(self.coord.theZ); line.setX1(self.x1); line.setY1(self.y1); line.setX2(self.x2); line.setY2(self.y2); | f0bdd8df3ad2c2d884653d30a298452010b0e426 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/f0bdd8df3ad2c2d884653d30a298452010b0e426/ROI_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
9823,
12,
2890,
16,
980,
4672,
980,
18,
542,
1986,
62,
12,
2890,
18,
5732,
18,
5787,
62,
1769,
980,
18,
542,
1986,
56,
12,
2890,
18,
5732,
18,
5787,
62,
1769,
980,
18,
542,
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,
444,
9823,
12,
2890,
16,
980,
4672,
980,
18,
542,
1986,
62,
12,
2890,
18,
5732,
18,
5787,
62,
1769,
980,
18,
542,
1986,
56,
12,
2890,
18,
5732,
18,
5787,
62,
1769,
980,
18,
542,
60... |
self.fn += 1 | self.fp += 1 | def CalculateStats(self): self.Reset() for msg in msginfoDB.db: self.total += 1 m = self.__empty_msg() m.id = msg msginfoDB._getState(m) if m.c == 's': self.cls_spam += 1 if m.t == 0: self.fn += 1 elif m.c == 'h': self.cls_ham += 1 if m.t == 1: self.fp += 1 elif m.c == 'u': self.cls_unsure += 1 if m.t == 0: self.trn_un... | ec75a1d02f7509b75c9d531bbde8028fafb82d32 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/ec75a1d02f7509b75c9d531bbde8028fafb82d32/Stats.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9029,
4195,
12,
2890,
4672,
365,
18,
7013,
1435,
364,
1234,
316,
1234,
1376,
2290,
18,
1966,
30,
365,
18,
4963,
1011,
404,
312,
273,
365,
16186,
5531,
67,
3576,
1435,
312,
18,
350,
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,
9029,
4195,
12,
2890,
4672,
365,
18,
7013,
1435,
364,
1234,
316,
1234,
1376,
2290,
18,
1966,
30,
365,
18,
4963,
1011,
404,
312,
273,
365,
16186,
5531,
67,
3576,
1435,
312,
18,
350,
273... |
client._request('REPORT', '%s/%s' % (PRINCIPAL_DAV_PATH, TIMEZONE_CALENDAR), body=body, headers={ 'Depth': '1' }) | client._request('REPORT', '%s/%s' % (PRINCIPAL_DAV_PATH, TIMEZONE_CALENDAR), body=body, headers={ 'Content-Type':'text/xml', 'Depth': '1' }) | def test_timerangequery_three_in_eastern(): body = open(FILES_DIR+'reports/timerangequery/threeInEastern.xml').read() client._request('REPORT', '%s/%s' % (PRINCIPAL_DAV_PATH, TIMEZONE_CALENDAR), body=body, headers={ 'Depth': '1' }) assert client.response.status == 207 positive = ['BEGIN:VCALENDAR', 'CALSCALE:GREGORIAN... | 0eb233b34e19f3cc4572957bdd4dfc9d1e2048e1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9939/0eb233b34e19f3cc4572957bdd4dfc9d1e2048e1/test_reports_with_float.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
12542,
726,
2271,
67,
451,
992,
67,
267,
67,
73,
2440,
82,
13332,
1417,
273,
1696,
12,
12669,
67,
4537,
6797,
20195,
19,
12542,
726,
2271,
19,
451,
992,
382,
41,
2440,
82,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12542,
726,
2271,
67,
451,
992,
67,
267,
67,
73,
2440,
82,
13332,
1417,
273,
1696,
12,
12669,
67,
4537,
6797,
20195,
19,
12542,
726,
2271,
19,
451,
992,
382,
41,
2440,
82,
... |
for index in range(globalXMLFieldStackLen): if self._fieldList[index][0]=="start" and self._fieldList[index][1]==self._globalXMLFieldStack[index]: self._fieldList[index][2]=XMLFIELD_COMMON | commandListLen=len(self._commandList) for index in range(min(commandListLen,globalXMLFieldStackLen)): if self._commandList[index][0]=="start" and self._commandList[index][1]==self._globalXMLFieldStack[index]: self._commandList[index][2]=XMLFIELD_COMMON | def parse(self,xml): #parse the xml, creating a list of fields and text self.parser.Parse(xml) #Find and mark the common fields in the list commonFieldCount=0 globalXMLFieldStackLen=len(self._globalXMLFieldStack) for index in range(globalXMLFieldStackLen): if self._fieldList[index][0]=="start" and self._fieldList[index... | 6e87a0791caa504ba33a83fd1f298b2314d26f28 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/6e87a0791caa504ba33a83fd1f298b2314d26f28/speech.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
2902,
4672,
468,
2670,
326,
2025,
16,
4979,
279,
666,
434,
1466,
471,
977,
365,
18,
4288,
18,
3201,
12,
2902,
13,
468,
3125,
471,
2267,
326,
2975,
1466,
316,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
2902,
4672,
468,
2670,
326,
2025,
16,
4979,
279,
666,
434,
1466,
471,
977,
365,
18,
4288,
18,
3201,
12,
2902,
13,
468,
3125,
471,
2267,
326,
2975,
1466,
316,
326,
... |
self.pass_entry = Entry(master) | self.pass_entry = tk.Entry(master) | def body(self, master): d = {"appname": wc.AppName} msg = _("""The administrator password protects the web | bced9bf02aea78485c59aec9dfc85f8c8bae7f41 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/bced9bf02aea78485c59aec9dfc85f8c8bae7f41/install-webcleaner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1417,
12,
2890,
16,
4171,
4672,
302,
273,
12528,
2910,
529,
6877,
14310,
18,
3371,
461,
97,
1234,
273,
389,
2932,
3660,
1986,
22330,
2201,
17151,
87,
326,
3311,
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,
0,
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,
1417,
12,
2890,
16,
4171,
4672,
302,
273,
12528,
2910,
529,
6877,
14310,
18,
3371,
461,
97,
1234,
273,
389,
2932,
3660,
1986,
22330,
2201,
17151,
87,
326,
3311,
2,
-100,
-100,
-100,
-100... |
else | else: | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 546) else quickfix.StringField.__init__(self, 546, 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,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1381,
8749,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1381,
8749,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738... |
log.debug(str(request.backend) + request.uri, 'fetcher_activate') | log.debug(str(request.backend) + request.uri, 'Fetcher.activate') | def activate(self, request): log.debug(str(request.backend) + request.uri, 'fetcher_activate') self.local_file = request.local_file self.local_mtime = request.local_mtime self.factory = request.factory self.request = request request.content.read() | 5c9bae059cd7d11136ad9fba35419cb5fb58a393 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7531/5c9bae059cd7d11136ad9fba35419cb5fb58a393/apt_proxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10235,
12,
2890,
16,
590,
4672,
613,
18,
4148,
12,
701,
12,
2293,
18,
9993,
13,
397,
590,
18,
1650,
16,
296,
16855,
18,
10014,
6134,
365,
18,
3729,
67,
768,
273,
590,
18,
3729,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10235,
12,
2890,
16,
590,
4672,
613,
18,
4148,
12,
701,
12,
2293,
18,
9993,
13,
397,
590,
18,
1650,
16,
296,
16855,
18,
10014,
6134,
365,
18,
3729,
67,
768,
273,
590,
18,
3729,
67,
... |
def view(cls, db, viewname, eager=False, **options): | def view(cls, db, viewname, **options): | def view(cls, db, viewname, eager=False, **options): """Execute a CouchDB named view and map the result values back to objects of this schema. Note that by default, any properties of the document that are not included in the values of the view will be treated as if they were missing from the document. If you'd rather ... | 79d95f9a17e132e7583dc536ff76816185cfb356 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9373/79d95f9a17e132e7583dc536ff76816185cfb356/schema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1476,
12,
6429,
16,
1319,
16,
1476,
529,
16,
2826,
2116,
4672,
3536,
5289,
279,
17696,
2290,
4141,
1476,
471,
852,
326,
563,
924,
1473,
358,
2184,
434,
333,
1963,
18,
225,
3609,
716,
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,
1476,
12,
6429,
16,
1319,
16,
1476,
529,
16,
2826,
2116,
4672,
3536,
5289,
279,
17696,
2290,
4141,
1476,
471,
852,
326,
563,
924,
1473,
358,
2184,
434,
333,
1963,
18,
225,
3609,
716,
6... |
self.icon.remove_overlay(self.throOverlay) | self.icon.get_effects().remove_overlay(self.throOverlay) | def ThrobberOverlay(self, widget, *args, **kwargs): if widget.get_active(): self.throOverlay = awn.OverlayThrobber(self.icon) self.icon.append_overlay(self.throOverlay) elif self.throOverlay != None: self.icon.remove_overlay(self.throOverlay) self.throOverlay = None | 39d8566e3ad22d0a8dba8b48029b1cedb1ed8c3d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8416/39d8566e3ad22d0a8dba8b48029b1cedb1ed8c3d/test-overlays.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
935,
303,
23709,
11627,
12,
2890,
16,
3604,
16,
380,
1968,
16,
2826,
4333,
4672,
309,
3604,
18,
588,
67,
3535,
13332,
365,
18,
451,
303,
11627,
273,
1690,
82,
18,
11627,
1315,
303,
237... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
935,
303,
23709,
11627,
12,
2890,
16,
3604,
16,
380,
1968,
16,
2826,
4333,
4672,
309,
3604,
18,
588,
67,
3535,
13332,
365,
18,
451,
303,
11627,
273,
1690,
82,
18,
11627,
1315,
303,
237... |
assert expected_migrations == test_globals.migrations_run | self._expect_migrations(expected_migrations) | def test_downgrade(self): self.cmd.run(self.args) self.cmd.run(self.args + ['a=5']) # Migrate up expected_migrations = [ (ab, ver, 'up') for ver in range(10) for ab in 'ab'] # Migrate a down expected_migrations += [ ('a', 9, 'down'), ('a', 8, 'down'), ('a', 7, 'down'), ('a', 6, 'down') ] assert expected_migrations == t... | 05b857a036dd4fa753f3443dd985a72b79357fbe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1036/05b857a036dd4fa753f3443dd985a72b79357fbe/test_migrations.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2378,
3994,
12,
2890,
4672,
365,
18,
4172,
18,
2681,
12,
2890,
18,
1968,
13,
365,
18,
4172,
18,
2681,
12,
2890,
18,
1968,
397,
10228,
69,
33,
25,
19486,
468,
26507,
731,
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,
1842,
67,
2378,
3994,
12,
2890,
4672,
365,
18,
4172,
18,
2681,
12,
2890,
18,
1968,
13,
365,
18,
4172,
18,
2681,
12,
2890,
18,
1968,
397,
10228,
69,
33,
25,
19486,
468,
26507,
731,
26... |
input_file = re.sub(self.__ms_hex_exp, "\\mshex0\g<1> ", input_file) tokens = re.split(self.__splitexp, input_file) return filter(lambda x: len(x) > 0 and x != '\n', tokens) | def __sub_reg_split(self,input_file): input_file = self.__replace_spchar.mreplace(input_file) #input_file = re.sub(self.__utf_exp, self.__from_ms_to_utf8, input_file) # line = re.sub( self.__neg_utf_exp, self.__neg_unicode_func, line) # this is for older RTF #line = re.sub(self.__par_exp, '\\par ', line) input_file = r... | 7c70914ad30fc358bfcd7c099494b0a43682ba27 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/7c70914ad30fc358bfcd7c099494b0a43682ba27/tokenize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1717,
67,
1574,
67,
4939,
12,
2890,
16,
2630,
67,
768,
4672,
810,
67,
768,
273,
365,
16186,
2079,
67,
1752,
3001,
18,
81,
2079,
12,
2630,
67,
768,
13,
468,
2630,
67,
768,
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,
1717,
67,
1574,
67,
4939,
12,
2890,
16,
2630,
67,
768,
4672,
810,
67,
768,
273,
365,
16186,
2079,
67,
1752,
3001,
18,
81,
2079,
12,
2630,
67,
768,
13,
468,
2630,
67,
768,
273,
... | |
if IsDialogEvent(event): self.do_dialogevent(event) return | def dispatch(self, event): if IsDialogEvent(event): self.do_dialogevent(event) return (what, message, when, where, modifiers) = event if eventname.has_key(what): name = "do_" + eventname[what] else: name = "do_%d" % what try: handler = getattr(self, name) except AttributeError: handler = self.do_unknownevent handler(ev... | 0400adab0292aefa021c42b1033420432d3a19a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/0400adab0292aefa021c42b1033420432d3a19a9/FrameWork.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3435,
12,
2890,
16,
871,
4672,
261,
23770,
16,
883,
16,
1347,
16,
1625,
16,
10429,
13,
273,
871,
309,
871,
529,
18,
5332,
67,
856,
12,
23770,
4672,
508,
273,
315,
2896,
9548,
397,
87... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3435,
12,
2890,
16,
871,
4672,
261,
23770,
16,
883,
16,
1347,
16,
1625,
16,
10429,
13,
273,
871,
309,
871,
529,
18,
5332,
67,
856,
12,
23770,
4672,
508,
273,
315,
2896,
9548,
397,
87... | |
dw.open_file('bigimage.ora') | app.filehandler.open_file('bigimage.ora') | def memory_zoomed_out_5x(app): dw = app.drawWindow dw.fullscreen_cb() dw.open_file('bigimage.ora') for i in range(5): dw.zoom('ZoomOut') yield wait_for_idle dw.tdw.scroll(100, 120) yield wait_for_idle dw.tdw.scroll(-80, -500) yield wait_for_idle print 'result =', open('/proc/self/statm').read().split()[0] | e05fe7b8daabcf47c31823aa4043da1a54a7c36e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7129/e05fe7b8daabcf47c31823aa4043da1a54a7c36e/test_performance.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3778,
67,
14932,
329,
67,
659,
67,
25,
92,
12,
2910,
4672,
12394,
273,
595,
18,
9446,
3829,
12394,
18,
2854,
9252,
67,
7358,
1435,
595,
18,
768,
4176,
18,
3190,
67,
768,
2668,
14002,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3778,
67,
14932,
329,
67,
659,
67,
25,
92,
12,
2910,
4672,
12394,
273,
595,
18,
9446,
3829,
12394,
18,
2854,
9252,
67,
7358,
1435,
595,
18,
768,
4176,
18,
3190,
67,
768,
2668,
14002,
... |
size = len(offsetParts) for i in xrange(size): offset = offsetParts[i] if i < (size - 1): offsetParts[i] = offsetParts[i + 1] - offset nPoints -= offsetParts[i] else: offsetParts[i] = nPoints | self._processOffsetParts(offsetParts, nPoints) if shapeType == self._MULTIPATCH: partTypes = [self._readIntegers(fp, 1) for idx in xrange(nParts)] | def _readRecordPoly(self, fp): """ Type: PolyLine (3), Polygon (5), PolyLineZ (13), PolygonZ (15), PolyLineM (23), or PolygonM (25) | cee1e2f589119aefad7297765d214b12caa3cd3b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1821/cee1e2f589119aefad7297765d214b12caa3cd3b/shapefile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
2115,
12487,
12,
2890,
16,
4253,
4672,
3536,
1412,
30,
18394,
1670,
261,
23,
3631,
12681,
261,
25,
3631,
18394,
1670,
62,
261,
3437,
3631,
12681,
62,
261,
3600,
3631,
18394,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
2115,
12487,
12,
2890,
16,
4253,
4672,
3536,
1412,
30,
18394,
1670,
261,
23,
3631,
12681,
261,
25,
3631,
18394,
1670,
62,
261,
3437,
3631,
12681,
62,
261,
3600,
3631,
18394,
16... |
self.stack[-1].append(str(node)) | self.stack[-1].append(node.astext()) | def visit_Text(self, node): self.stack[-1].append(str(node)) | a57628825f1368969a704ca2d4b0ab7bdc57c3fd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9478/a57628825f1368969a704ca2d4b0ab7bdc57c3fd/Doc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
1528,
12,
2890,
16,
756,
4672,
365,
18,
3772,
18919,
21,
8009,
6923,
12,
701,
12,
2159,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
1528,
12,
2890,
16,
756,
4672,
365,
18,
3772,
18919,
21,
8009,
6923,
12,
701,
12,
2159,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if not cfg: cfg=TransportConfig(type) | if not cfg: cfg=TransportConfig() | def create_transport(self, type, cfg=None): """Create SIP transport instance of the specified type. Keyword arguments: type -- transport type from TransportType constant. cfg -- TransportConfig instance | a36b873746d62853a055768e16c676ce3102b06d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4447/a36b873746d62853a055768e16c676ce3102b06d/pjsua.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
13049,
12,
2890,
16,
618,
16,
2776,
33,
7036,
4672,
3536,
1684,
348,
2579,
4736,
791,
434,
326,
1269,
618,
18,
225,
18317,
1775,
30,
618,
565,
1493,
4736,
618,
628,
9514,
559,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
67,
13049,
12,
2890,
16,
618,
16,
2776,
33,
7036,
4672,
3536,
1684,
348,
2579,
4736,
791,
434,
326,
1269,
618,
18,
225,
18317,
1775,
30,
618,
565,
1493,
4736,
618,
628,
9514,
559,... |
def_build = 'env CFLAGS="$RPM_OPT_FLAGS" python setup.py build' else: def_build = 'python setup.py build' | def_build = 'env CFLAGS="$RPM_OPT_FLAGS" ' + def_build | def _make_spec_file(self): """Generate the text of an RPM spec file and return it as a list of strings (one per line). """ # definitions and headers spec_file = [ '%define name ' + self.distribution.get_name(), '%define version ' + self.distribution.get_version(), '%define release ' + self.release, '', 'Summary: ' + se... | 742f4c9a5d5b54c907d463255f31d9fcfa1f2ce9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/742f4c9a5d5b54c907d463255f31d9fcfa1f2ce9/bdist_rpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
67,
2793,
67,
768,
12,
2890,
4672,
3536,
4625,
326,
977,
434,
392,
534,
12728,
857,
585,
471,
327,
518,
487,
279,
666,
434,
2064,
261,
476,
1534,
980,
2934,
3536,
468,
6377,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6540,
67,
2793,
67,
768,
12,
2890,
4672,
3536,
4625,
326,
977,
434,
392,
534,
12728,
857,
585,
471,
327,
518,
487,
279,
666,
434,
2064,
261,
476,
1534,
980,
2934,
3536,
468,
6377,... |
('parentdirkey', None, 'Parent Dir Key', 'BackSpace', None, self.parent_dir) | ('parentdirkey', None, 'Parent Dir Key', 'BackSpace', None, self.parent_dir), ('hidewinkey', None, 'Hide Window Key', 'Escape', None, self.withdraw_app) | def __init__(self): | a654643f278343c34e1e03db364474542f6539b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2312/a654643f278343c34e1e03db364474542f6539b2/sonata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
1001,
2738,
972,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
""" try: return self.__galois_closure.change_names(names) except AttributeError: pass G = self.galois_group() K = self while K.degree() < G.order(): K = K.composite_fields(self, names=names)[-1] self.__galois_closure = K.change_names(names) return self.__galois_closure | sage: L, phi = K.galois_closure('b', map=True) sage: L Number Field in b with defining polynomial x^8 + 28*x^4 + 2500 sage: phi Ring morphism: From: Number Field in a with defining polynomial x^4 - 2 To: Number Field in b with defining polynomial x^8 + 28*x^4 + 2500 Defn: a |--> 1/240*b^5 - 41/120*b TESTS: Let's ma... | def galois_closure(self, names=None): """ Return number field $K$ that is the Galois closure of self, i.e., is generated by all roots of the defining polynomial of self | 9540a53f10979382906870b8675dc1dc5f9ad193 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/9540a53f10979382906870b8675dc1dc5f9ad193/number_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24902,
19606,
67,
20823,
12,
2890,
16,
1257,
33,
7036,
4672,
3536,
2000,
1300,
652,
271,
47,
8,
716,
353,
326,
611,
287,
19606,
7213,
434,
365,
16,
277,
18,
73,
12990,
353,
4374,
635,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24902,
19606,
67,
20823,
12,
2890,
16,
1257,
33,
7036,
4672,
3536,
2000,
1300,
652,
271,
47,
8,
716,
353,
326,
611,
287,
19606,
7213,
434,
365,
16,
277,
18,
73,
12990,
353,
4374,
635,
... |
def _pdf(self, x, dfn, dfd, nc): | def _pdf_skip(self, x, dfn, dfd, nc): | def _pdf(self, x, dfn, dfd, nc): n1,n2 = dfn, dfd term = -nc/2+nc*n1*x/(2*(n2+n1*x)) + gamln(n1/2.)+gamln(1+n2/2.) term -= gamln((n1+n2)/2.0) Px = exp(term) Px *= n1**(n1/2) * n2**(n2/2) * x**(n1/2-1) Px *= (n2+n1*x)**(-(n1+n2)/2) Px *= special.assoc_laguerre(-nc*n1*x/(2.0*(n2+n1*x)),n2/2,n1/2-1) Px /= special.beta(n1/... | 82f741b1f189e3a985d5afc0c3ddaf43252355d9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/82f741b1f189e3a985d5afc0c3ddaf43252355d9/distributions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7699,
67,
7457,
12,
2890,
16,
619,
16,
3013,
82,
16,
3013,
72,
16,
8194,
4672,
290,
21,
16,
82,
22,
273,
3013,
82,
16,
3013,
72,
2481,
273,
300,
14202,
19,
22,
15,
14202,
14,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7699,
67,
7457,
12,
2890,
16,
619,
16,
3013,
82,
16,
3013,
72,
16,
8194,
4672,
290,
21,
16,
82,
22,
273,
3013,
82,
16,
3013,
72,
2481,
273,
300,
14202,
19,
22,
15,
14202,
14,
... |
The p-adic valuation of the norm of self on the r-overconvergent region. | The `p`-adic valuation of the norm of self on the `r`-overconvergent region. | def r_ord(self, r): r""" The p-adic valuation of the norm of self on the r-overconvergent region. | d7c9d61652cabcfb658c91a720989214f7a469bd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/d7c9d61652cabcfb658c91a720989214f7a469bd/genus0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
67,
517,
12,
2890,
16,
436,
4672,
436,
8395,
1021,
293,
17,
20333,
21748,
367,
434,
326,
4651,
434,
365,
603,
326,
436,
17,
1643,
591,
502,
75,
319,
3020,
18,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
436,
67,
517,
12,
2890,
16,
436,
4672,
436,
8395,
1021,
293,
17,
20333,
21748,
367,
434,
326,
4651,
434,
365,
603,
326,
436,
17,
1643,
591,
502,
75,
319,
3020,
18,
2,
-100,
-100,
-10... |
if self.cur_node.text and children: | if children: | def write(self, text, add_p_style=True, add_t_style=True): """ see mixed content http://effbot.org/zone/element-infoset.htm#mixed-content Writing is complicated by requirements of odp to ignore duplicate spaces together. Deal with this by splitting on white spaces then dealing with the '' (empty strings) which would b... | 4356c80136aeb20e594322879b901dff6120fed0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5620/4356c80136aeb20e594322879b901dff6120fed0/preso.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
977,
16,
527,
67,
84,
67,
4060,
33,
5510,
16,
527,
67,
88,
67,
4060,
33,
5510,
4672,
3536,
2621,
7826,
913,
1062,
2207,
17098,
4819,
18,
3341,
19,
3486,
19,
2956,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
977,
16,
527,
67,
84,
67,
4060,
33,
5510,
16,
527,
67,
88,
67,
4060,
33,
5510,
4672,
3536,
2621,
7826,
913,
1062,
2207,
17098,
4819,
18,
3341,
19,
3486,
19,
2956,... |
if chunk and _IDC_SetAttr(chunk, _FUNCATTRMAP, attr, value): | if chunk: _IDC_SetAttr(chunk, _FUNCATTRMAP, attr, value) | def SetFchunkAttr(ea, attr, value): """ Set a function chunk attribute @param ea: any address in the chunk @param attr: only FUNCATTR_START, FUNCATTR_END, FUNCATTR_OWNER @param value: desired value @return: 0 if failed, 1 if success """ if attr in [ FUNCATTR_START, FUNCATTR_END, FUNCATTR_OWNER ]: chunk = idaapi.get_f... | fc2d926b90132714548b46b423ecd80240215532 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6984/fc2d926b90132714548b46b423ecd80240215532/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
42,
6551,
3843,
12,
24852,
16,
1604,
16,
460,
4672,
3536,
1000,
279,
445,
2441,
1566,
225,
632,
891,
24164,
30,
1281,
1758,
316,
326,
2441,
632,
891,
1604,
30,
1338,
478,
21163,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
42,
6551,
3843,
12,
24852,
16,
1604,
16,
460,
4672,
3536,
1000,
279,
445,
2441,
1566,
225,
632,
891,
24164,
30,
1281,
1758,
316,
326,
2441,
632,
891,
1604,
30,
1338,
478,
21163,
... |
self.session.commit() | self.session.commit() | def commitTransaction(self): | 47d2884a8b5be4efadf798bbb2e71a3d5e993c3e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9116/47d2884a8b5be4efadf798bbb2e71a3d5e993c3e/svcpointxml_406_writer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3294,
3342,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3294,
3342,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
import base64 import hmac | import base64, hmac | def setSessionCookie(request, u): """ Set moin_session cookie for user obj u """ import base64 import hmac cfg = request.cfg cookie_name = 'MOIN_ID' if hasattr(cfg, 'moin_session_cookie_name'): cookie_name = cfg.moin_session_cookie_name enc_username = base64.encodestring(u.auth_username) enc_id = base64.encodestring(u.... | ef1096937fe84fb3d22b2765bd2a87780d73b2fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/ef1096937fe84fb3d22b2765bd2a87780d73b2fa/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25486,
6151,
12,
2293,
16,
582,
4672,
3536,
1000,
312,
885,
67,
3184,
3878,
364,
729,
1081,
582,
3536,
1930,
1026,
1105,
16,
13421,
2776,
273,
590,
18,
7066,
3878,
67,
529,
273,
296,
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,
25486,
6151,
12,
2293,
16,
582,
4672,
3536,
1000,
312,
885,
67,
3184,
3878,
364,
729,
1081,
582,
3536,
1930,
1026,
1105,
16,
13421,
2776,
273,
590,
18,
7066,
3878,
67,
529,
273,
296,
5... |
self._axis = PlotAxis(orientation='left', | self._axis = PlotAxis(orientation=axis_orientation, | def __init__(self, *args, **kw): """ In creating an instance, this method ensures that the grid and the axis are created before setting their visibility. """ grid_visible = kw.pop("grid_visible", True) axis_visible = kw.pop("axis_visible", True) super(ColorBar, self).__init__(*args, **kw) | d3306ad2a68ac0fc5bc21bbcc2f5b601354249f6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13167/d3306ad2a68ac0fc5bc21bbcc2f5b601354249f6/color_bar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
9987,
4672,
3536,
657,
4979,
392,
791,
16,
333,
707,
11932,
716,
326,
3068,
471,
326,
2654,
854,
2522,
1865,
3637,
3675,
9478,
18,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
9987,
4672,
3536,
657,
4979,
392,
791,
16,
333,
707,
11932,
716,
326,
3068,
471,
326,
2654,
854,
2522,
1865,
3637,
3675,
9478,
18,
3... |
str_list.append(" Uname %s\n" % rorpath.getuname() or ":") | str_list.append(" Uname %s\n" % (rorpath.getuname() or ":")) | def RORP2Record(rorpath): """From RORPath, return text record of file's metadata""" str_list = ["File %s\n" % quote_path(rorpath.get_indexpath())] # Store file type, e.g. "dev", "reg", or "sym", and type-specific data type = rorpath.gettype() if type is None: type = "None" str_list.append(" Type %s\n" % type) if type... | 7136bddd623b30eef43f440904e8b1e9349168c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6202/7136bddd623b30eef43f440904e8b1e9349168c8/metadata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
534,
916,
52,
22,
2115,
12,
86,
280,
803,
4672,
3536,
1265,
534,
916,
743,
16,
327,
977,
1409,
434,
585,
1807,
1982,
8395,
609,
67,
1098,
273,
8247,
812,
738,
87,
64,
82,
6,
738,
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,
534,
916,
52,
22,
2115,
12,
86,
280,
803,
4672,
3536,
1265,
534,
916,
743,
16,
327,
977,
1409,
434,
585,
1807,
1982,
8395,
609,
67,
1098,
273,
8247,
812,
738,
87,
64,
82,
6,
738,
3... |
sms.status_request = self.status_request | sms.request_status = self.status_request | def to_pdu(self, store=False): """Returns the PDU representation of this message""" sms = SmsSubmit(self.number, self.text) | e63e131b4abf01bccb6e79c410d8ca2342b9ae59 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12036/e63e131b4abf01bccb6e79c410d8ca2342b9ae59/sms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
84,
2544,
12,
2890,
16,
1707,
33,
8381,
4672,
3536,
1356,
326,
453,
16214,
4335,
434,
333,
883,
8395,
16188,
273,
348,
959,
11620,
12,
2890,
18,
2696,
16,
365,
18,
955,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
84,
2544,
12,
2890,
16,
1707,
33,
8381,
4672,
3536,
1356,
326,
453,
16214,
4335,
434,
333,
883,
8395,
16188,
273,
348,
959,
11620,
12,
2890,
18,
2696,
16,
365,
18,
955,
13,
... |
return self.typeRegistry[type(value)](name, parent, companion, rootCompanion, propWrapper, idx, width) | return self.typeRegistry[type(value)](name, parent, companion, rootCompanion, propWrapper, idx, width) | def factory(self, name, parent, companion, rootCompanion, propWrapper, idx, width): try: propWrapper.connect(companion.control, companion) value = propWrapper.getValue() except Exception, message: print 'Error on accessing Getter for', name, ':', message value = None if type(value) == InstanceType: if self.classRegist... | 43e4ab46eed5e41d2af40091522912ba9175fcc3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/43e4ab46eed5e41d2af40091522912ba9175fcc3/PropertyEditors.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3272,
12,
2890,
16,
508,
16,
982,
16,
1161,
304,
285,
16,
1365,
2945,
304,
285,
16,
2270,
3611,
16,
2067,
16,
1835,
4672,
775,
30,
2270,
3611,
18,
3612,
12,
2919,
304,
285,
18,
7098,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3272,
12,
2890,
16,
508,
16,
982,
16,
1161,
304,
285,
16,
1365,
2945,
304,
285,
16,
2270,
3611,
16,
2067,
16,
1835,
4672,
775,
30,
2270,
3611,
18,
3612,
12,
2919,
304,
285,
18,
7098,... |
if not word or len(word) > 30: | if not word or len(word) > MAX_WORD_LENGTH: | def _score_words(self, text_parts): """ Scores the words given in text_parts, which is a list of tuples (text, coeff, type), where text is the string of words to be scored, coeff is the weight to give each word in this part (1.0 is normal), and type is one of ATTR_KEYWORDS_*. | 318def10ea14e19fd377915dec850ed450857c6a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11703/318def10ea14e19fd377915dec850ed450857c6a/db.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6355,
67,
3753,
12,
2890,
16,
977,
67,
6019,
4672,
3536,
2850,
3485,
326,
4511,
864,
316,
977,
67,
6019,
16,
1492,
353,
279,
666,
434,
10384,
261,
955,
16,
11943,
16,
618,
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,
389,
6355,
67,
3753,
12,
2890,
16,
977,
67,
6019,
4672,
3536,
2850,
3485,
326,
4511,
864,
316,
977,
67,
6019,
16,
1492,
353,
279,
666,
434,
10384,
261,
955,
16,
11943,
16,
618,
3631,
... |
def __init__(self, str): | def __init__(self, str, parser=None): """Token. Description: str - The string to parse In the string `div > ul`, there are 3 tokens. (`div`, `>`, and `ul`) For `>`, it will be a `Token` with `type` set to `Token.CHILD` """ | def __init__(self, str): self.str = str.strip() self.attributes = {} | 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,
1001,
2738,
972,
12,
2890,
16,
609,
16,
2082,
33,
7036,
4672,
3536,
1345,
18,
225,
6507,
30,
609,
282,
300,
1021,
533,
358,
1109,
225,
657,
326,
533,
1375,
2892,
405,
7493,
9191,
1915,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
609,
16,
2082,
33,
7036,
4672,
3536,
1345,
18,
225,
6507,
30,
609,
282,
300,
1021,
533,
358,
1109,
225,
657,
326,
533,
1375,
2892,
405,
7493,
9191,
1915,... |
return | return None | def warn_with_loader(space, w_message, w_category, w_filename, lineno, w_module, w_registry, w_globals): # Check/get the requisite pieces needed for the loader. try: w_loader = space.getitem(w_globals, space.wrap("__loader__")) w_module_name = space.getitem(w_globals, space.wrap("__name__")) except OperationError, e: i... | 9a9de29f1ac0e528788a1f07382723f16054532d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/9a9de29f1ac0e528788a1f07382723f16054532d/interp_warnings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1894,
67,
1918,
67,
6714,
12,
2981,
16,
341,
67,
2150,
16,
341,
67,
4743,
16,
341,
67,
3459,
16,
7586,
16,
341,
67,
2978,
16,
341,
67,
9893,
16,
341,
67,
16227,
4672,
468,
2073,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1894,
67,
1918,
67,
6714,
12,
2981,
16,
341,
67,
2150,
16,
341,
67,
4743,
16,
341,
67,
3459,
16,
7586,
16,
341,
67,
2978,
16,
341,
67,
9893,
16,
341,
67,
16227,
4672,
468,
2073,
19... |
print count | def _execute_get( self, execute_get_function, *args, **kw ): """ Called by __getattr__, unconditionally executes self.function (set in __getattr__) with the given arguments and executes the query. @return: result of query """ function = execute_get_function | 9b3033e5cc6e34d9ba3a6f3b22665d7fe92baf2a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7602/9b3033e5cc6e34d9ba3a6f3b22665d7fe92baf2a/interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8837,
67,
588,
12,
365,
16,
1836,
67,
588,
67,
915,
16,
380,
1968,
16,
2826,
9987,
262,
30,
3536,
11782,
635,
1001,
588,
1747,
972,
16,
6301,
1434,
22913,
11997,
365,
18,
915,
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,
389,
8837,
67,
588,
12,
365,
16,
1836,
67,
588,
67,
915,
16,
380,
1968,
16,
2826,
9987,
262,
30,
3536,
11782,
635,
1001,
588,
1747,
972,
16,
6301,
1434,
22913,
11997,
365,
18,
915,
2... | |
if typ is list or typ is tuple: if typ is list: | if issubclass(typ, list) or issubclass(typ, tuple): if issubclass(typ, list): | def _safe_repr(object, context, maxlevels, level): typ = _type(object) if typ is str: if 'locale' not in _sys.modules: return `object`, True, False if "'" in object and '"' not in object: closure = '"' quotes = {'"': '\\"'} else: closure = "'" quotes = {"'": "\\'"} qget = quotes.get sio = _StringIO() write = sio.write ... | 40bfe499bc3292b9af69967b35eabdbaa4c2a1af /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/40bfe499bc3292b9af69967b35eabdbaa4c2a1af/pprint.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4626,
67,
12715,
12,
1612,
16,
819,
16,
943,
12095,
16,
1801,
4672,
3815,
273,
389,
723,
12,
1612,
13,
309,
3815,
353,
609,
30,
309,
296,
6339,
11,
486,
316,
389,
9499,
18,
6400... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4626,
67,
12715,
12,
1612,
16,
819,
16,
943,
12095,
16,
1801,
4672,
3815,
273,
389,
723,
12,
1612,
13,
309,
3815,
353,
609,
30,
309,
296,
6339,
11,
486,
316,
389,
9499,
18,
6400... |
cmd = '../../bin/linux/release/cmeansMultiGPU "%s"' % params['INPUT_FILE'] | cmd = '%s/../../bin/linux/release/cmeansMultiGPU "%s"' % (PROJECT_PATH,params['INPUT_FILE']) | def parseInputArgs(): args = sys.argv num_args = len(args) params = { 'INPUT_FILE' : '', 'NUM_CLUSTERS' : 0, 'THRESHOLD' : 0.0001, 'MIN_ITERS' : 0, 'MAX_ITERS' : 100, 'DEVICE' : 0, 'FUZZINESS' : 2, 'DISTANCE_MEASURE': 0, 'K1': 1.0, 'K2': 0.01, 'K3': 1.5, 'MEMBER_THRESHOLD': 0.05, 'TABU_ITER': 100, 'TABU_TENURE': 5, 'M... | 7ef63f0d6acaed783b4943ead1066c04c97005ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11171/7ef63f0d6acaed783b4943ead1066c04c97005ad/cmeansMultiGPU.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
1210,
2615,
13332,
833,
273,
2589,
18,
19485,
818,
67,
1968,
273,
562,
12,
1968,
13,
225,
859,
273,
288,
296,
15934,
67,
3776,
11,
294,
10226,
296,
6069,
67,
5017,
5996,
11367,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1210,
2615,
13332,
833,
273,
2589,
18,
19485,
818,
67,
1968,
273,
562,
12,
1968,
13,
225,
859,
273,
288,
296,
15934,
67,
3776,
11,
294,
10226,
296,
6069,
67,
5017,
5996,
11367,
1... |
if attr == 'description': return self._cursor.description elif attr == 'sqlerrd': return self._cursor.sqlerrd elif attr == 'rowcount': return self._cursor.rowcount else: raise AttributeError, attr | if attr == 'description': return self._cursor.description elif attr == 'sqlerrd': return self._cursor.sqlerrd elif attr == 'rowcount': return self._cursor.rowcount else: raise AttributeError, attr | def __getattr__(self, attr): | 34c41b6b2a05b0c448580a7fb8f0602d4ac4c768 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8941/34c41b6b2a05b0c448580a7fb8f0602d4ac4c768/informixdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
1604,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
1604,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
set_default_precision = mpfr.mpfr_set_default_prec get_default_precision = mpfr.mpfr_get_default_prec | def mpfr_set_tiny(x, negative, rnd): # are we rounding towards zero? if rnd == RoundTowardZero: toward_zero = True elif rnd == RoundTiesToEven: toward_zero = True elif rnd == RoundTowardPositive: toward_zero = negative elif rnd == RoundTowardNegative: toward_zero = not negative else: raise ValueError("unknown rounding ... | f3e575d1324c5044179532cae520704a53c3ef1a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7048/f3e575d1324c5044179532cae520704a53c3ef1a/pympfr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6749,
4840,
67,
542,
67,
88,
11652,
12,
92,
16,
6092,
16,
20391,
4672,
468,
854,
732,
13885,
23248,
3634,
35,
309,
20391,
422,
11370,
56,
543,
1060,
7170,
30,
358,
2913,
67,
7124,
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,
6749,
4840,
67,
542,
67,
88,
11652,
12,
92,
16,
6092,
16,
20391,
4672,
468,
854,
732,
13885,
23248,
3634,
35,
309,
20391,
422,
11370,
56,
543,
1060,
7170,
30,
358,
2913,
67,
7124,
273,... | |
if re.match(r'(GOOD|FAIL|WARN) ', line): | if re.search(r'^(GOOD|FAIL|WARN) ', line): | def grope_status(self): dprint('=====================================================') dprint(self.dir) dprint('=====================================================') self.kernel = kernel(self.dir) | e1471b8de3c886e9566d685f635fed88acc76f42 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12268/e1471b8de3c886e9566d685f635fed88acc76f42/parse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
303,
347,
67,
2327,
12,
2890,
4672,
302,
1188,
2668,
20775,
894,
2218,
13,
302,
1188,
12,
2890,
18,
1214,
13,
302,
1188,
2668,
20775,
894,
2218,
13,
365,
18,
8111,
273,
5536,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
303,
347,
67,
2327,
12,
2890,
4672,
302,
1188,
2668,
20775,
894,
2218,
13,
302,
1188,
12,
2890,
18,
1214,
13,
302,
1188,
2668,
20775,
894,
2218,
13,
365,
18,
8111,
273,
5536,
12,
... |
if self.cells[column, row]: self.cells[column, row].disable_widget() | if self._cells[column, row]: self._cells[column, row].disable_widget() | def disable_widget(self, row=None, column=None): Container.disable_widget(self) if row != None and column != None: if self.cells[column, row]: self.cells[column, row].disable_widget() elif row != None: for mem in self.cells.row(row): if mem: mem.disable_widget() elif column != None: for mem in self.cells.column(column)... | 662fb650fe03bef79dfed18e63f89b71da14e59a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/662fb650fe03bef79dfed18e63f89b71da14e59a/layout.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4056,
67,
6587,
12,
2890,
16,
1027,
33,
7036,
16,
1057,
33,
7036,
4672,
4039,
18,
8394,
67,
6587,
12,
2890,
13,
309,
1027,
480,
599,
471,
1057,
480,
599,
30,
309,
365,
6315,
14741,
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,
4056,
67,
6587,
12,
2890,
16,
1027,
33,
7036,
16,
1057,
33,
7036,
4672,
4039,
18,
8394,
67,
6587,
12,
2890,
13,
309,
1027,
480,
599,
471,
1057,
480,
599,
30,
309,
365,
6315,
14741,
6... |
srpms = glob.glob(os.path.join(rpm_dir['SRPMS'], "*.rpm")) assert len(srpms) == 1, \ "unexpected number of SRPM files found: %s" % srpms dist_file = ('bdist_rpm', 'any', self._dist_path(srpms[0])) self.distribution.dist_files.append(dist_file) self.move_file(srpms[0], self.dist_dir) | srpm = os.path.join(rpm_dir['SRPMS'], source_rpm) assert(os.path.exists(srpm)) self.move_file(srpm, self.dist_dir) | def run (self): | 8f440f11a687c00ffea22419b3e0d92d88c5cc83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/8f440f11a687c00ffea22419b3e0d92d88c5cc83/bdist_rpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Calculate the forward variable \alpha over an HMM or HMMGraph for a frame of observations. The forward variable is defined as: \alpha_t(j) = P(o_1, ..., o_j, q_t = j | \lambda) \alpha_0(0) = 1.0 \alpha_t(j) = \sum_i \alpha_{t-1}(i) a_{ij} b_j(o_t) Or, for non-emitting states j_N: \alpha_t(j_N) = \sum_i \alpha_{t}(i... | Calculate the forward variable \\alpha over an HMM or HMMGraph for a frame of observations. The forward variable is defined as:: \\alpha_t(j) = P(o_1, ..., o_j, q_t = j | \lambda) \\alpha_0(0) = 1.0 \\alpha_t(j) = \sum_i \\alpha_{t-1}(i) a_{ij} b_j(o_t) Or, for non-emitting states j_N:: \\alpha_t(j_N) = \sum_i \\al... | def forward_evaluate(hmm, gmms, alpha=None): """ Calculate the forward variable \alpha over an HMM or HMMGraph for a frame of observations. The forward variable is defined as: \alpha_t(j) = P(o_1, ..., o_j, q_t = j | \lambda) \alpha_0(0) = 1.0 \alpha_t(j) = \sum_i \alpha_{t-1}(i) a_{ij} b_j(o_t) Or, for non-emitting... | 6a1ae33f137d887c349b7127aa081f61350805f8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6303/6a1ae33f137d887c349b7127aa081f61350805f8/hmm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5104,
67,
21024,
12,
76,
7020,
16,
14125,
959,
16,
4190,
33,
7036,
4672,
3536,
9029,
326,
5104,
2190,
1736,
5429,
1879,
392,
670,
8206,
578,
670,
8206,
4137,
364,
279,
2623,
434,
16477,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5104,
67,
21024,
12,
76,
7020,
16,
14125,
959,
16,
4190,
33,
7036,
4672,
3536,
9029,
326,
5104,
2190,
1736,
5429,
1879,
392,
670,
8206,
578,
670,
8206,
4137,
364,
279,
2623,
434,
16477,
... |
class PDBExceptionTest(unittest.TestCase): def test_strict(self): """Check error: Parse a flawed PDB file in strict mode.""" warnings.resetwarnings() parser = PDBParser(PERMISSIVE=False) self.assertRaises(PDBConstructionException, parser.get_structure, "example", "PDB/a_structure.pdb") def test_bad_xyz(self): """... | def get_coord(self): return self.coord | 6a8a0a51549ed55d8cd37f026ab9f62260bef608 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7167/6a8a0a51549ed55d8cd37f026ab9f62260bef608/test_PDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5732,
12,
2890,
4672,
327,
365,
18,
5732,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5732,
12,
2890,
4672,
327,
365,
18,
5732,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
dc = self.getIndicatorDC() self.eraseIndicator(dc) | dc = self._getIndicatorDC() self._eraseIndicator(dc) | def OnAutoScrollTimer(self, evt): """Timer event handler to scroll the list in the requested direction. """ #print "_auto_scroll = %d, timer = %s" % (self._auto_scroll, self._auto_scroll_timer is not None) if self._auto_scroll == 0: # clean up timer resource self._auto_scroll_timer = None else: dc = self.getIndicatorDC... | 6bc6bef6fcfe26aa923224e536d4db13def8c29a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/6bc6bef6fcfe26aa923224e536d4db13def8c29a/dropscroller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4965,
6806,
6777,
12,
2890,
16,
6324,
4672,
3536,
6777,
871,
1838,
358,
5532,
326,
666,
316,
326,
3764,
4068,
18,
3536,
468,
1188,
4192,
6079,
67,
12033,
273,
738,
72,
16,
5441,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4965,
6806,
6777,
12,
2890,
16,
6324,
4672,
3536,
6777,
871,
1838,
358,
5532,
326,
666,
316,
326,
3764,
4068,
18,
3536,
468,
1188,
4192,
6079,
67,
12033,
273,
738,
72,
16,
5441,
... |
Type = self._PCD_TYPE_STRING_[Type] | TypeString = self._PCD_TYPE_STRING_[Type] | def _GetModules(self): if self._Modules != None: return self._Modules | 42c51680b029db7b944e793c039b6d2fc11f508b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/914/42c51680b029db7b944e793c039b6d2fc11f508b/WorkspaceDatabase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
967,
7782,
12,
2890,
4672,
309,
365,
6315,
7782,
480,
599,
30,
327,
365,
6315,
7782,
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,
389,
967,
7782,
12,
2890,
4672,
309,
365,
6315,
7782,
480,
599,
30,
327,
365,
6315,
7782,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
def show_summary(self, f=None): | def show_summary(self, f=None, prefix=""): | def show_summary(self, f=None): if (f is None): f = sys.stdout print >> f, "max %.6g" % (self.max()) print >> f, "min %.6g" % (self.min()) print >> f, "mean %.6g" % (self.mean()) print >> f, "sigma %.6g" % (self.sigma()) | ed78df3c3e87d1956280dc63a4d5c3c611ebdd97 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/ed78df3c3e87d1956280dc63a4d5c3c611ebdd97/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
7687,
12,
2890,
16,
284,
33,
7036,
16,
1633,
1546,
6,
4672,
309,
261,
74,
353,
599,
4672,
284,
273,
2589,
18,
10283,
1172,
1671,
284,
16,
315,
1896,
12639,
26,
75,
6,
738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
7687,
12,
2890,
16,
284,
33,
7036,
16,
1633,
1546,
6,
4672,
309,
261,
74,
353,
599,
4672,
284,
273,
2589,
18,
10283,
1172,
1671,
284,
16,
315,
1896,
12639,
26,
75,
6,
738,
... |
return self.update(self, **kwargs) | return self.update(**kwargs) | def edit(self, *args, **kwargs): """Reimplementing edit() to have a compatibility method for the old cmf edit() method """ if len(args) != 0: # use cmf edit method return self.cmf_edit(*args, **kwargs) fieldNames = [field.getName() for field in self.Schema().fields()] for name in kwargs.keys(): if name not in fieldNam... | aa04865ecfbdd93a5cdb79b4572fea9bee380337 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11956/aa04865ecfbdd93a5cdb79b4572fea9bee380337/ATContentType.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
426,
10442,
310,
3874,
1435,
358,
1240,
279,
8926,
707,
364,
326,
1592,
5003,
74,
3874,
1435,
707,
3536,
309,
562,
12,
1968,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
426,
10442,
310,
3874,
1435,
358,
1240,
279,
8926,
707,
364,
326,
1592,
5003,
74,
3874,
1435,
707,
3536,
309,
562,
12,
1968,
... |
backpack.additem( coins ) | if not tobackpack(coins, player): item.update() | def response( char, args, target ): if not char: return # you can only try to npc if not target.char or not target.char.npc: return npc = target.char # check if this npc is a 'human' ? # You are too far away... if not char.canreach( npc.pos, BEGGING_RANGE ): # male npc if not npc.gender: char.socket.clilocmessage( 5... | ba60fceb6886ed4d1742af0ab67848d17698746d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/ba60fceb6886ed4d1742af0ab67848d17698746d/begging.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
766,
12,
1149,
16,
833,
16,
1018,
262,
30,
309,
486,
1149,
30,
327,
225,
468,
1846,
848,
1338,
775,
358,
1130,
71,
309,
486,
1018,
18,
3001,
578,
486,
1018,
18,
3001,
18,
82,
2436,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
766,
12,
1149,
16,
833,
16,
1018,
262,
30,
309,
486,
1149,
30,
327,
225,
468,
1846,
848,
1338,
775,
358,
1130,
71,
309,
486,
1018,
18,
3001,
578,
486,
1018,
18,
3001,
18,
82,
2436,
... |
def ssl(self): """Return SSLObject instance used to communicate with the IMAP4 server. ssl = ssl.wrap_socket(<instance>.socket) """ return self.sslobj | def socket(self): """Return socket instance used to connect to IMAP4 server. | a7712090f78d19d0711553d58e403c9fa44474a8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/a7712090f78d19d0711553d58e403c9fa44474a8/imaplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2987,
12,
2890,
4672,
3536,
990,
2987,
791,
1399,
358,
3077,
358,
6246,
2203,
24,
1438,
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,
2987,
12,
2890,
4672,
3536,
990,
2987,
791,
1399,
358,
3077,
358,
6246,
2203,
24,
1438,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
return start,end | if start==length and end==-1: return -1,-1 else: return start,end | def get_start_end(sequence, skiplist=['-','?']): """Return position of first and last character which is not in skiplist (defaults to ['-','?']).""" length=len(sequence) if length==0: return None,None end=length-1 while end>=0 and (sequence[end] in skiplist): end-=1 start=0 while start<length and (sequence[start] in s... | 2a3ed26b08902a189104faba2eaf847ef9705b90 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7167/2a3ed26b08902a189104faba2eaf847ef9705b90/Nexus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1937,
67,
409,
12,
6178,
16,
4343,
77,
17842,
33,
3292,
17,
17023,
35,
3546,
4672,
3536,
990,
1754,
434,
1122,
471,
1142,
3351,
1492,
353,
486,
316,
4343,
77,
17842,
261,
7606... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1937,
67,
409,
12,
6178,
16,
4343,
77,
17842,
33,
3292,
17,
17023,
35,
3546,
4672,
3536,
990,
1754,
434,
1122,
471,
1142,
3351,
1492,
353,
486,
316,
4343,
77,
17842,
261,
7606... |
self.notify_queue.put((key, bucket[key])) | ob = bucket.get(key, _marker) if ob is _marker: DEBUG and TLOG( 'OOBTree lied about %s keys: %s doesnt exist' % (bucket, key) ) continue self.notify_queue.put((key, ob)) | def _getCurrentBucket(self): """ Do housekeeping if necessary, then return the 'current' bucket. """ self.lock.acquire() try: # do in-place upgrade of old "ring-based" instances if # we've just upgraded from Zope 2.5.X if self._data is None: self._upgrade() | 4457f487398c0b76c1da51c10b73c64e0664e437 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/4457f487398c0b76c1da51c10b73c64e0664e437/Transience.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
3935,
4103,
12,
2890,
4672,
3536,
2256,
23867,
10102,
310,
309,
4573,
16,
1508,
327,
326,
296,
2972,
11,
2783,
18,
3536,
365,
18,
739,
18,
1077,
1039,
1435,
775,
30,
468,
741... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
3935,
4103,
12,
2890,
4672,
3536,
2256,
23867,
10102,
310,
309,
4573,
16,
1508,
327,
326,
296,
2972,
11,
2783,
18,
3536,
365,
18,
739,
18,
1077,
1039,
1435,
775,
30,
468,
741... |
return (indent*' '+'<dt>'+children[0]+'</dt>\n'+ indent*' '+'<dd>\n'+''.join(children[1:])+ indent*' '+'</dd>\n') elif tree.tagName in ('epytext', 'section', 'tag', 'arg'): | return (indent*' '+children[0]+':\n'+ ''.join(children[1:])) elif tree.tagName in ('fieldlist', 'tag', 'arg', 'epytext', 'section', 'olist', 'ulist'): | def to_html(tree, indent=0, seclevel=0, **kwargs): """ Given the DOM tree for an epytext string (as returned by C{parse()}), return a string encoding it in HTML. This string does not include C{<HTML>} and C{</HTML>} tags. todo: doesn't honor ordered list bullets. """ if isinstance(tree, Text): return tree.toxml() if... | 26f654ea66befeec31f7f9ebcebabc7d09f33070 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/26f654ea66befeec31f7f9ebcebabc7d09f33070/epytext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
2620,
12,
3413,
16,
3504,
33,
20,
16,
1428,
2815,
33,
20,
16,
2826,
4333,
4672,
3536,
16803,
326,
4703,
2151,
364,
392,
425,
2074,
955,
533,
261,
345,
2106,
635,
385,
95,
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,
358,
67,
2620,
12,
3413,
16,
3504,
33,
20,
16,
1428,
2815,
33,
20,
16,
2826,
4333,
4672,
3536,
16803,
326,
4703,
2151,
364,
392,
425,
2074,
955,
533,
261,
345,
2106,
635,
385,
95,
26... |
filePrefixesSkipList=filePrefixesSkipList, fileSuffixesSkipList=fileSuffixesSkipList, fileNamesSkipList=fileNamesSkipList, folderPrefixesSkipList=folderPrefixesSkipList, folderSuffixesSkipList=folderSuffixesSkipList, folderNamesSkipList=folderNamesSkipList) | filePrefixesSkipList=filePrefixesSkip, fileSuffixesSkipList=fileSuffixesSkip, fileNamesSkipList=fileNamesSkip, folderPrefixesSkipList=folderPrefixesSkip, folderSuffixesSkipList=folderSuffixesSkip, folderNamesSkipList=folderNamesSkip) | def getFilteredContents(self,rel_dir=None): """ list filtered content of local filesystem """ | 986267974a25fceea33e15da2a6f7317243ba92b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/986267974a25fceea33e15da2a6f7317243ba92b/PloneLocalFolderNG.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12267,
329,
6323,
12,
2890,
16,
2878,
67,
1214,
33,
7036,
4672,
3536,
666,
5105,
913,
434,
1191,
6496,
3536,
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,
12267,
329,
6323,
12,
2890,
16,
2878,
67,
1214,
33,
7036,
4672,
3536,
666,
5105,
913,
434,
1191,
6496,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
var elapsed_time = update_cell_error_count*update_error_delta/1000; | var elapsed_time = update_error_count*update_error_delta/1000; | def javascript(): s = r""" | 4970a27155014a1e694f3e7d7f9efab628afe0c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/4970a27155014a1e694f3e7d7f9efab628afe0c4/js.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11341,
13332,
272,
273,
436,
8395,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11341,
13332,
272,
273,
436,
8395,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if TEST_PYREX_OPENGL and ColorSorter.sorting: | if use_c_renderer and ColorSorter.sorting: | def schedule_sphere(color, pos, radius, detailLevel): """\ Schedule a sphere for rendering whenever ColorSorter thinks is appropriate. """ if TEST_PYREX_OPENGL and ColorSorter.sorting: if len(color) == 3: lcolor = (color[0], color[1], color[2], 1.0) else: lcolor = color ColorSorter._cur_shapelist.add_sphere(lcolor, pos... | b0e7dbd9446dc9b2789efbf23eb08f2c92b6f702 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/b0e7dbd9446dc9b2789efbf23eb08f2c92b6f702/drawer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4788,
67,
87,
9346,
12,
3266,
16,
949,
16,
5725,
16,
7664,
2355,
4672,
3536,
64,
10674,
279,
20041,
364,
9782,
17334,
5563,
24952,
15507,
87,
353,
5505,
18,
3536,
309,
999,
67,
71,
67,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4788,
67,
87,
9346,
12,
3266,
16,
949,
16,
5725,
16,
7664,
2355,
4672,
3536,
64,
10674,
279,
20041,
364,
9782,
17334,
5563,
24952,
15507,
87,
353,
5505,
18,
3536,
309,
999,
67,
71,
67,... |
<h2 class="accordion_toggle">≫ %s</h2> <div class="accordion_content">%s</div> <h2 class="accordion_toggle">≫ %s</h2> <div class="accordion_content">%s</div> | %s | def permissive(perm, system): | b115301aa7a3230e2ebf55808ae6e08d4c08f2cc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/b115301aa7a3230e2ebf55808ae6e08d4c08f2cc/groups.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
1840,
688,
12,
12160,
16,
2619,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
1840,
688,
12,
12160,
16,
2619,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
src_trans = self.pool.get(self._name).read(cr,user,ids,[f]) self.pool.get('ir.translation')._set_ids(cr, user, self._name+','+f, 'model', context['lang'], ids, vals[f], src_trans[0][f]) | src_trans = self.pool.get(self._name).read(cr,user,ids,[f])[0][f] if not src_trans: src_trans = vals[f] self.write(cr, user, ids, {f:vals[f]}) self.pool.get('ir.translation')._set_ids(cr, user, self._name+','+f, 'model', context['lang'], ids, vals[f], src_trans) | def write(self, cr, user, ids, vals, context=None): readonly = None for field in vals.copy(): fobj = None if field in self._columns: fobj = self._columns[field] else: fobj = self._inherit_fields[field][2] if not fobj: continue groups = fobj.write | b4867291bbdf2e2b59629889706f2f361b26b4f1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/b4867291bbdf2e2b59629889706f2f361b26b4f1/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
4422,
16,
729,
16,
3258,
16,
5773,
16,
819,
33,
7036,
4672,
17102,
273,
599,
364,
652,
316,
5773,
18,
3530,
13332,
24705,
273,
599,
309,
652,
316,
365,
6315,
5112,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
4422,
16,
729,
16,
3258,
16,
5773,
16,
819,
33,
7036,
4672,
17102,
273,
599,
364,
652,
316,
5773,
18,
3530,
13332,
24705,
273,
599,
309,
652,
316,
365,
6315,
5112,
... |
cr.execute("ALTER TABLE %s ALTER COLUMN %s SET NOT NULL" % (self._table, k)) | cr.execute("ALTER TABLE \"%s\" ALTER COLUMN \"%s\" SET NOT NULL" % (self._table, k)) | def _auto_init(self, cr): logger = netsvc.Logger() create = False self._field_create(cr) if not hasattr(self, "_auto") or self._auto: cr.execute("SELECT relname FROM pg_class WHERE relkind in ('r','v') AND relname='%s'" % self._table) if not cr.rowcount: cr.execute("CREATE TABLE %s(id SERIAL NOT NULL, perm_id INTEGER, ... | 21e2436edcfd48b26e17230380299a3196aac8b0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/21e2436edcfd48b26e17230380299a3196aac8b0/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6079,
67,
2738,
12,
2890,
16,
4422,
4672,
1194,
273,
21954,
4227,
18,
3328,
1435,
752,
273,
1083,
365,
6315,
1518,
67,
2640,
12,
3353,
13,
309,
486,
3859,
12,
2890,
16,
4192,
6079... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6079,
67,
2738,
12,
2890,
16,
4422,
4672,
1194,
273,
21954,
4227,
18,
3328,
1435,
752,
273,
1083,
365,
6315,
1518,
67,
2640,
12,
3353,
13,
309,
486,
3859,
12,
2890,
16,
4192,
6079... |
def test_it(self): def tr(frame, event, arg): | def trace(self, frame, event, arg): """A trace function that raises an exception in response to a specific trace event.""" if event == self.raiseOnEvent: | def test_it(self): def tr(frame, event, arg): raise ValueError # just something that isn't RuntimeError def f(): return 1 try: for i in xrange(sys.getrecursionlimit() + 1): sys.settrace(tr) try: f() except ValueError: pass else: self.fail("exception not thrown!") except RuntimeError: self.fail("recursion counter not re... | 416309cb7a3f1bd0bd7f6fa6ac03d6f554342776 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/416309cb7a3f1bd0bd7f6fa6ac03d6f554342776/test_trace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2606,
12,
2890,
16,
2623,
16,
871,
16,
1501,
4672,
3536,
37,
2606,
445,
716,
14183,
392,
1520,
316,
766,
358,
279,
2923,
2606,
871,
12123,
309,
871,
422,
365,
18,
11628,
1398,
1133,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2606,
12,
2890,
16,
2623,
16,
871,
16,
1501,
4672,
3536,
37,
2606,
445,
716,
14183,
392,
1520,
316,
766,
358,
279,
2923,
2606,
871,
12123,
309,
871,
422,
365,
18,
11628,
1398,
1133,
30... |
sage: R = Permutations(3).map(lambda p: p.reduced_word()) sage: R == loads(dumps(R)) | sage: R = Permutations(3).map(attrcall('reduced_word')) sage: R == loads(dumps(R)) | def map(self, f, name=None): """ Returns the image $\{f(x) x in self\}$ of this combinatorial class by $f$, as a combinatorial class. | f1fd78c53e06c08972c879531d8bbdfff2cf6321 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/f1fd78c53e06c08972c879531d8bbdfff2cf6321/combinat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
852,
12,
2890,
16,
284,
16,
508,
33,
7036,
4672,
3536,
2860,
326,
1316,
271,
64,
95,
74,
12,
92,
13,
619,
316,
365,
64,
22496,
434,
333,
3894,
4240,
649,
667,
635,
271,
74,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
852,
12,
2890,
16,
284,
16,
508,
33,
7036,
4672,
3536,
2860,
326,
1316,
271,
64,
95,
74,
12,
92,
13,
619,
316,
365,
64,
22496,
434,
333,
3894,
4240,
649,
667,
635,
271,
74,
8,
16,
... |
if not args: raise BadUsage | def ready(port=port): print 'server ready at http://127.0.0.1:%d/' % port | bb384e153d6614fce08e58bada5e06402dc8b3e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/bb384e153d6614fce08e58bada5e06402dc8b3e4/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5695,
12,
655,
33,
655,
4672,
1172,
296,
3567,
5695,
622,
1062,
2207,
14260,
18,
20,
18,
20,
18,
21,
5319,
72,
2473,
738,
1756,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5695,
12,
655,
33,
655,
4672,
1172,
296,
3567,
5695,
622,
1062,
2207,
14260,
18,
20,
18,
20,
18,
21,
5319,
72,
2473,
738,
1756,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
numpy_rng = numpy.random.RandomState(55) | numpy_rng = numpy.random.RandomState(utt.fetch_seed()) | def test_permutation(self): """Test that raw_random.permutation generates the same results as numpy.""" rng_R = random_state_type() post_r, out = permutation(rng_R, size=(9,), n=6) print 'OUT NDIM', out.ndim f = compile.function( [compile.In(rng_R, value=numpy.random.RandomState(55), update=post_r, mutable=True)], [out... | d5701303093e5943cc4df89bc18c7fecc19b0be2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/d5701303093e5943cc4df89bc18c7fecc19b0be2/test_raw_random.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
12160,
9245,
12,
2890,
4672,
3536,
4709,
716,
1831,
67,
9188,
18,
12160,
9245,
6026,
326,
1967,
1686,
487,
3972,
12123,
11418,
67,
54,
273,
2744,
67,
2019,
67,
723,
1435,
1603,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12160,
9245,
12,
2890,
4672,
3536,
4709,
716,
1831,
67,
9188,
18,
12160,
9245,
6026,
326,
1967,
1686,
487,
3972,
12123,
11418,
67,
54,
273,
2744,
67,
2019,
67,
723,
1435,
1603,... |
msgs += method + "Position angle test failure, got " + str(got) + \ | msgs += test + "Position angle test failure, got " + str(got) + \ | def run_imfit(): default('imfit') return imfit(imagename=noisy_image, mask=mask, includepix=includepix, excludepix=excludepix) | 8fe115edb6ed8f2c163424551e075e57f916f51d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2098/8fe115edb6ed8f2c163424551e075e57f916f51d/test_imfit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
381,
7216,
13332,
805,
2668,
381,
7216,
6134,
327,
709,
7216,
12,
15374,
1069,
33,
2135,
291,
93,
67,
2730,
16,
3066,
33,
4455,
16,
2341,
14861,
33,
6702,
14861,
16,
4433,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
67,
381,
7216,
13332,
805,
2668,
381,
7216,
6134,
327,
709,
7216,
12,
15374,
1069,
33,
2135,
291,
93,
67,
2730,
16,
3066,
33,
4455,
16,
2341,
14861,
33,
6702,
14861,
16,
4433,
14... |
""" | """ | def fl_create_lightbutton(type, x, y, w, h, label): """ fl_create_lightbutton(type, x, y, w, h, label) -> object """ retval = _fl_create_lightbutton(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,
5099,
5391,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
16,
1433,
4672,
3536,
1183,
67,
2640,
67,
5099,
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,
5099,
5391,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
16,
1433,
4672,
3536,
1183,
67,
2640,
67,
5099,
5391,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
16,
... |
_logger.debug("Error: Had not joined activity %s" % self._id) | _logger.warning("Had not joined activity %r", self) | def leave(self, async_cb, async_err_cb): """Local method for the local user to leave the shared activity. | 25577b1486c01197df936bb991230734bc38df7b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3113/25577b1486c01197df936bb991230734bc38df7b/activity.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8851,
12,
2890,
16,
4326,
67,
7358,
16,
4326,
67,
370,
67,
7358,
4672,
3536,
2042,
707,
364,
326,
1191,
729,
358,
8851,
326,
5116,
5728,
18,
2,
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,
8851,
12,
2890,
16,
4326,
67,
7358,
16,
4326,
67,
370,
67,
7358,
4672,
3536,
2042,
707,
364,
326,
1191,
729,
358,
8851,
326,
5116,
5728,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
self.stanzas.append(stanza.toxml()) def testBasic(self): parser = xmppserver.StanzaParser(self) parser.FeedString('<foo') self.assertEqual(len(self.stanzas), 0) parser.FeedString('/><bar></bar>') self.assertEqual(self.stanzas[0], '<foo/>') self.assertEqual(self.stanzas[1], '<bar/>') def testStream(self): parser = x... | """Inspects the given stanza and changes the handshake state if needed. Called when a stanza is received from the client. Inspects the stanza to make sure it has the expected attributes given the current state, advances the state if needed, and sends a reply to the client if needed. """ def ExpectStanza(stanza, name)... | def FeedStanza(self, stanza): # We can't append stanza directly because it is unlinked after # this callback. self.stanzas.append(stanza.toxml()) | 26b937eb54b83dfe627000f11ddd9791f5996ccd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/26b937eb54b83dfe627000f11ddd9791f5996ccd/xmppserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14013,
510,
15214,
12,
2890,
16,
21650,
4672,
468,
1660,
848,
1404,
714,
21650,
5122,
2724,
518,
353,
8255,
329,
1839,
468,
333,
1348,
18,
365,
18,
541,
94,
345,
18,
6923,
12,
541,
119... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14013,
510,
15214,
12,
2890,
16,
21650,
4672,
468,
1660,
848,
1404,
714,
21650,
5122,
2724,
518,
353,
8255,
329,
1839,
468,
333,
1348,
18,
365,
18,
541,
94,
345,
18,
6923,
12,
541,
119... |
if aq_base(container) is not container: try: roles = container.aq_acquire('__roles__') | if containerbase is container: if containerbase is not accessedbase: raise Unauthorized(name, value) else: try: roles = container.aq_acquire('__roles__') | def validate(self, accessed, container, name, value, context, roles=_noroles, getattr=getattr, _noroles=_noroles, valid_aq_=('aq_parent','aq_inner', 'aq_explicit')): | 2f8efb2176af8a0dfc201231b17cb975ea874164 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/2f8efb2176af8a0dfc201231b17cb975ea874164/ImplPython.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
12,
2890,
16,
15539,
16,
1478,
16,
508,
16,
460,
16,
819,
16,
4900,
33,
67,
29561,
9112,
16,
3869,
33,
588,
1747,
16,
389,
29561,
9112,
33,
67,
29561,
9112,
16,
923,
67,
69,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
12,
2890,
16,
15539,
16,
1478,
16,
508,
16,
460,
16,
819,
16,
4900,
33,
67,
29561,
9112,
16,
3869,
33,
588,
1747,
16,
389,
29561,
9112,
33,
67,
29561,
9112,
16,
923,
67,
69,
... |
self.uri=Redland.librdf_new_uri(__world__.world, args['string']) | self.uri=Redland.librdf_new_uri(_world.world, args['string']) | def __init__(self, **args): """Create an RDF URI (constructor).""" if __debug__: print "Creating RDF.uri args=",args self.uri=None | 9d200f22543978d0df7fbde12b64052f94f16755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14754/9d200f22543978d0df7fbde12b64052f94f16755/RDF.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2826,
1968,
4672,
3536,
1684,
392,
13539,
3699,
261,
12316,
13,
12123,
309,
1001,
4148,
972,
30,
1172,
315,
11092,
13539,
18,
1650,
833,
1546,
16,
1968,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2826,
1968,
4672,
3536,
1684,
392,
13539,
3699,
261,
12316,
13,
12123,
309,
1001,
4148,
972,
30,
1172,
315,
11092,
13539,
18,
1650,
833,
1546,
16,
1968,
36... |
Exec=lrfviewer %%F | Exec=lrfviewer %F | def opts_and_exts(name, op, exts): opts = ' '.join(options(op)) exts.extend([i.upper() for i in exts]) exts='|'.join(exts) return '_'+name+'()'+\ | 51c08484ef254c8256116e024f16c50db46e4ca6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/51c08484ef254c8256116e024f16c50db46e4ca6/linux.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1500,
67,
464,
67,
408,
87,
12,
529,
16,
1061,
16,
20793,
4672,
1500,
273,
296,
2418,
5701,
12,
2116,
12,
556,
3719,
20793,
18,
14313,
3816,
77,
18,
5797,
1435,
364,
277,
316,
20793,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1500,
67,
464,
67,
408,
87,
12,
529,
16,
1061,
16,
20793,
4672,
1500,
273,
296,
2418,
5701,
12,
2116,
12,
556,
3719,
20793,
18,
14313,
3816,
77,
18,
5797,
1435,
364,
277,
316,
20793,
... |
if type(f) == type(''): | if isinstance(f, basestring): | def __init__(self, f): self._i_opened_the_file = None if type(f) == type(''): f = __builtin__.open(f, 'rb') self._i_opened_the_file = f # else, assume it is an open file object already self.initfp(f) | d3ffc432efd1910be08c1b82016d6725877d5910 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d3ffc432efd1910be08c1b82016d6725877d5910/wave.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
284,
4672,
365,
6315,
77,
67,
25304,
67,
5787,
67,
768,
273,
599,
309,
1549,
12,
74,
16,
10699,
4672,
284,
273,
1001,
24553,
25648,
3190,
12,
74,
16,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
284,
4672,
365,
6315,
77,
67,
25304,
67,
5787,
67,
768,
273,
599,
309,
1549,
12,
74,
16,
10699,
4672,
284,
273,
1001,
24553,
25648,
3190,
12,
74,
16,
2... |
from mpmath.lib import fmuli, fmul, fpos, fdiv, fadd, fdivi, fsub, from_int, round_down, fone, fzero from mpmath.mptypes import make_mpf | def bernoulli(n): """nth Bernoulli number, B_n""" if n == 1: return mpf(-0.5) if n & 1: return mpf(0) m = n // 2 return (-1)**(m-1) * 2 * factorial(n) / (2*pi)**n * zeta(n) | 74b5869c5f521460b1698270a7112dda7b029cd9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11851/74b5869c5f521460b1698270a7112dda7b029cd9/specfun.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27965,
2135,
420,
77,
12,
82,
4672,
3536,
82,
451,
605,
264,
2135,
420,
77,
1300,
16,
605,
67,
82,
8395,
309,
290,
422,
404,
30,
327,
6749,
74,
19236,
20,
18,
25,
13,
309,
290,
473... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27965,
2135,
420,
77,
12,
82,
4672,
3536,
82,
451,
605,
264,
2135,
420,
77,
1300,
16,
605,
67,
82,
8395,
309,
290,
422,
404,
30,
327,
6749,
74,
19236,
20,
18,
25,
13,
309,
290,
473... | |
p, _ = RoundupBugTracker.objects.get_or_create(project=python_core) | p, _ = RoundupBugTracker.objects.get_or_create(name=bug_tracker_name, project=python_core) | def run(self, **kwargs): logger = self.get_logger(**kwargs) logger.info("Started to grab Python 'easy' bugs") bug_tracker_name = self.__class__.__name__ python_core, _ = Project.objects.get_or_create(name='Python', language='Python') # FIXME: Do we need this line? RoundupBugTracker.objects.filter(name=bug_tracker_name)... | 38e6a7ac623f5ba9274650c7c4702547aec693a9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11976/38e6a7ac623f5ba9274650c7c4702547aec693a9/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
2826,
4333,
4672,
1194,
273,
365,
18,
588,
67,
4901,
12,
636,
4333,
13,
1194,
18,
1376,
2932,
9217,
358,
11086,
6600,
296,
73,
15762,
11,
22398,
7923,
7934,
67,
165... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
2826,
4333,
4672,
1194,
273,
365,
18,
588,
67,
4901,
12,
636,
4333,
13,
1194,
18,
1376,
2932,
9217,
358,
11086,
6600,
296,
73,
15762,
11,
22398,
7923,
7934,
67,
165... |
m = self.add_module('__main__') return eval(code, m.__dict__) | m = self.add_module('__main__') return eval(code, m.__dict__) | def r_eval(self, code): | ca6ae39a786f3d7535cba0f2aef10692eb750051 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ca6ae39a786f3d7535cba0f2aef10692eb750051/rexec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
67,
8622,
12,
2890,
16,
981,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
67,
8622,
12,
2890,
16,
981,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
print "resolve", key | def resolve(self, key, entity=None): ''' Resolve a key to an Entity. The optional `entity` argument is the "source" entity when resolving relationship targets. ''' print "resolve", key path = rsplit(key, '.', 1) classname = path.pop() if path: # Do we have a fully qualified entity name? module = sys.modules[path.pop()]... | 63a5c77f715dbc8f2e50b466c24a7fa24cfbff49 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11921/63a5c77f715dbc8f2e50b466c24a7fa24cfbff49/collection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
12,
2890,
16,
498,
16,
1522,
33,
7036,
4672,
9163,
9910,
279,
498,
358,
392,
3887,
18,
1021,
3129,
1375,
1096,
68,
1237,
353,
326,
315,
3168,
6,
1522,
1347,
17188,
5232,
5774,
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,
2245,
12,
2890,
16,
498,
16,
1522,
33,
7036,
4672,
9163,
9910,
279,
498,
358,
392,
3887,
18,
1021,
3129,
1375,
1096,
68,
1237,
353,
326,
315,
3168,
6,
1522,
1347,
17188,
5232,
5774,
18... | |
if inner == 'NULL': | if inner == WrapperNULL and inner != None: | def inner_component(self): inner = icalcomponent_get_inner(self._ref) | 8b320a3c80ce1f8a45d2441a306b51ef3f79fa20 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9020/8b320a3c80ce1f8a45d2441a306b51ef3f79fa20/Component.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3443,
67,
4652,
12,
2890,
4672,
225,
3443,
273,
277,
771,
4652,
67,
588,
67,
7872,
12,
2890,
6315,
1734,
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,
3443,
67,
4652,
12,
2890,
4672,
225,
3443,
273,
277,
771,
4652,
67,
588,
67,
7872,
12,
2890,
6315,
1734,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subgroup of Mordell Weil group: [] | Subgroup of Mordell-Weil group: [] | def rank(self): """ Return the rank of this subgroup of the Mordell-Weil group. | 9932a677a12413086a59217c4c0d425b0543b6eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/9932a677a12413086a59217c4c0d425b0543b6eb/interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6171,
12,
2890,
4672,
3536,
2000,
326,
6171,
434,
333,
720,
1655,
434,
326,
490,
517,
1165,
17,
3218,
330,
1041,
18,
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,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6171,
12,
2890,
4672,
3536,
2000,
326,
6171,
434,
333,
720,
1655,
434,
326,
490,
517,
1165,
17,
3218,
330,
1041,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
skipped = () | skipped = set() | def PrepareListsAndPrintOutput(self): """Create appropriate subsets of test lists and returns a ResultSummary object. Also prints expected test counts.""" | de997a577310824fe512dc2f4bbda024260c92b4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/de997a577310824fe512dc2f4bbda024260c92b4/run_webkit_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7730,
7432,
1876,
5108,
1447,
12,
2890,
4672,
3536,
1684,
5505,
30760,
434,
1842,
6035,
471,
1135,
279,
3438,
4733,
733,
18,
8080,
14971,
2665,
1842,
6880,
12123,
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,
0,
0,
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,
7730,
7432,
1876,
5108,
1447,
12,
2890,
4672,
3536,
1684,
5505,
30760,
434,
1842,
6035,
471,
1135,
279,
3438,
4733,
733,
18,
8080,
14971,
2665,
1842,
6880,
12123,
2,
-100,
-100,
-100,
-100... |
sys.stderr.write(str(m2)) | sys.stderr.write(str(motif)) | def compare_motifs (self, motif): if isinstance(motif, MEMEMotif): if not self.pssm: raise ValueError('This motif does not have a PSSM') if not motif.pssm: raise ValueError('The other motif does not have a PSSM') mylen = len(self.pssm) yourlen = len(motif.pssm) myr = None if mylen == yourlen: myr = _corr(self.pssm, mot... | 7bcbf418c5031c5c4ccbd7aca03c6b0966165645 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7167/7bcbf418c5031c5c4ccbd7aca03c6b0966165645/Motif.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
18313,
17249,
261,
2890,
16,
23686,
4672,
309,
1549,
12,
18313,
430,
16,
7733,
12286,
352,
430,
4672,
309,
486,
365,
18,
84,
1049,
81,
30,
1002,
2068,
2668,
2503,
23686,
1552,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
18313,
17249,
261,
2890,
16,
23686,
4672,
309,
1549,
12,
18313,
430,
16,
7733,
12286,
352,
430,
4672,
309,
486,
365,
18,
84,
1049,
81,
30,
1002,
2068,
2668,
2503,
23686,
1552,
... |
try: self.check_prerequisite_command('dd --help') except NotFoundError: sys.exit(1) | def make_image(self, size_in_MB, excludes, prefix, destination_path): image_file = '%s.img' % (prefix) image_path = '%s/%s' % (destination_path, image_file) if not os.path.exists(destination_path): os.makedirs(destination_path) | 7af1f9e3c7085c3b64dfc2df7ca7079cf56f25b4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12707/7af1f9e3c7085c3b64dfc2df7ca7079cf56f25b4/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
2730,
12,
2890,
16,
963,
67,
267,
67,
7969,
16,
13644,
16,
1633,
16,
2929,
67,
803,
4672,
1316,
67,
768,
273,
1995,
87,
18,
6081,
11,
738,
261,
3239,
13,
1316,
67,
803,
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,
1221,
67,
2730,
12,
2890,
16,
963,
67,
267,
67,
7969,
16,
13644,
16,
1633,
16,
2929,
67,
803,
4672,
1316,
67,
768,
273,
1995,
87,
18,
6081,
11,
738,
261,
3239,
13,
1316,
67,
803,
2... | |
print ar.shape | def compute(self): sigs = self.getInputFromPort("Signals") sr = self.getInputFromPort("SamplingRate") | 3368d593243b7f7e61b36d72101e22729b78435e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6341/3368d593243b7f7e61b36d72101e22729b78435e/DSP.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
12,
2890,
4672,
3553,
87,
273,
365,
18,
588,
1210,
1265,
2617,
2932,
23346,
7923,
9133,
273,
365,
18,
588,
1210,
1265,
2617,
2932,
25149,
4727,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
3671,
12,
2890,
4672,
3553,
87,
273,
365,
18,
588,
1210,
1265,
2617,
2932,
23346,
7923,
9133,
273,
365,
18,
588,
1210,
1265,
2617,
2932,
25149,
4727,
7923,
2,
-100,
-100,
-100,
-100,
-10... | |
(not CFG_CERN_SITE or len(cern_urls) == 0) and len(others_urls.keys()) == 0 and \ | (not CFG_CERN_SITE or len(cern_urls) == 0) and len(others_urls) == 0 and \ | def format(bfo, style, separator='; ', show_icons='no'): """ This is the format for formatting fulltext links in the mini panel. @param separator the separator between urls. @param style CSS class of the link @param show_icons if 'yes', print icons for fulltexts """ out = '' # Retrieve files (parsed_urls, old_versions... | 96d06023ac21164739a28d818051f37abbc0fe51 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/96d06023ac21164739a28d818051f37abbc0fe51/bfe_fulltext_mini.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
70,
617,
16,
2154,
16,
4182,
2218,
31,
2265,
2405,
67,
14516,
2218,
2135,
11,
4672,
3536,
1220,
353,
326,
740,
364,
10407,
1983,
955,
4716,
316,
326,
21959,
6594,
18,
632,
891... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
70,
617,
16,
2154,
16,
4182,
2218,
31,
2265,
2405,
67,
14516,
2218,
2135,
11,
4672,
3536,
1220,
353,
326,
740,
364,
10407,
1983,
955,
4716,
316,
326,
21959,
6594,
18,
632,
891... |
must_restart = False | def hint_needs_constant(self, a): # Force the given LLRuntimeValue to be a fixed constant. must_restart = False fix_me = [a] while fix_me: a = fix_me.pop() assert isinstance(a, LLRuntimeValue) if a.fixed: continue # already fixed print 'fixing:', a a.fixed = True # If 'a' is already a Constant, we just fixed it and ... | 82c2f3aaec4a04b814c6f349ea8c7485faea94bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/82c2f3aaec4a04b814c6f349ea8c7485faea94bd/llabstractinterp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7380,
67,
20600,
67,
14384,
12,
2890,
16,
279,
4672,
468,
11889,
326,
864,
29863,
5576,
620,
358,
506,
279,
5499,
5381,
18,
2917,
67,
3501,
273,
306,
69,
65,
1323,
2917,
67,
3501,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7380,
67,
20600,
67,
14384,
12,
2890,
16,
279,
4672,
468,
11889,
326,
864,
29863,
5576,
620,
358,
506,
279,
5499,
5381,
18,
2917,
67,
3501,
273,
306,
69,
65,
1323,
2917,
67,
3501,
30,
... | |
if groupArea_s > config['BoundSandboxLimit']: | if groupArea_s > config['BoundSandboxLimit'] and i == 0: | def master_bulk_submit(self,rjobs,subjobconfigs,masterjobconfig): '''NG bulk submission''' | ad984b56cdc008f13cd574a924fd1ecab2076a7d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1488/ad984b56cdc008f13cd574a924fd1ecab2076a7d/NG.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4171,
67,
14597,
67,
9297,
12,
2890,
16,
86,
10088,
16,
1717,
4688,
10955,
16,
7525,
4688,
1425,
4672,
9163,
4960,
8280,
8515,
26418,
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,
0,
0,
0,
0,
0,
0,
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,
4171,
67,
14597,
67,
9297,
12,
2890,
16,
86,
10088,
16,
1717,
4688,
10955,
16,
7525,
4688,
1425,
4672,
9163,
4960,
8280,
8515,
26418,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
counter = 0 | def gettempprefix(): """Function to calculate a prefix of the filename to use.""" global template, _pid if os.name == 'posix' and _pid and _pid != os.getpid(): # Our pid changed; we must have forked -- zap the template template = None if template is None: if os.name == 'posix': _pid = os.getpid() template = '@' + `_pid... | 1baa22aff0a9cde81e2b19b36662e7987b83356b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/1baa22aff0a9cde81e2b19b36662e7987b83356b/tempfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
5814,
3239,
13332,
3536,
2083,
358,
4604,
279,
1633,
434,
326,
1544,
358,
999,
12123,
2552,
1542,
16,
389,
6610,
309,
1140,
18,
529,
422,
296,
24463,
11,
471,
389,
6610,
471,
389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5814,
3239,
13332,
3536,
2083,
358,
4604,
279,
1633,
434,
326,
1544,
358,
999,
12123,
2552,
1542,
16,
389,
6610,
309,
1140,
18,
529,
422,
296,
24463,
11,
471,
389,
6610,
471,
389,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.