rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
labeltabColsTitle.pack(side=TOP,anchor=W,padx=5) self.scaleTabCols.pack(side=TOP,padx=5,fill=X)
def CreatePageFontTab(self): #tkVars self.fontSize=StringVar(self) self.fontBold=BooleanVar(self) self.fontName=StringVar(self) self.spaceNum=IntVar(self) self.tabCols=IntVar(self) self.indentBySpaces=BooleanVar(self) self.editFont=tkFont.Font(self,('courier',12,'normal')) ##widget creation #body frame frame=self.tabPages.pages['Fonts/Tabs']['page'] #body section frames frameFont=Frame(frame,borderwidth=2,relief=GROOVE) frameIndent=Frame(frame,borderwidth=2,relief=GROOVE) #frameFont labelFontTitle=Label(frameFont,text='Set Base Editor Font') frameFontName=Frame(frameFont) frameFontParam=Frame(frameFont) labelFontNameTitle=Label(frameFontName,justify=LEFT, text='Font :') self.listFontName=Listbox(frameFontName,height=5,takefocus=FALSE, exportselection=FALSE) self.listFontName.bind('<ButtonRelease-1>',self.OnListFontButtonRelease) scrollFont=Scrollbar(frameFontName) scrollFont.config(command=self.listFontName.yview) self.listFontName.config(yscrollcommand=scrollFont.set) labelFontSizeTitle=Label(frameFontParam,text='Size :') self.optMenuFontSize=DynOptionMenu(frameFontParam,self.fontSize,None, command=self.SetFontSample) checkFontBold=Checkbutton(frameFontParam,variable=self.fontBold, onvalue=1,offvalue=0,text='Bold',command=self.SetFontSample) frameFontSample=Frame(frameFont,relief=SOLID,borderwidth=1) self.labelFontSample=Label(frameFontSample, text='AaBbCcDdEe\nFfGgHhIiJjK\n1234567890\n#:+=(){}[]', justify=LEFT,font=self.editFont) #frameIndent labelIndentTitle=Label(frameIndent,text='Set Indentation Defaults') frameIndentType=Frame(frameIndent) frameIndentSize=Frame(frameIndent) labelIndentTypeTitle=Label(frameIndentType, text='Choose indentation type :') radioUseSpaces=Radiobutton(frameIndentType,variable=self.indentBySpaces, value=1,text='Tab key inserts spaces') radioUseTabs=Radiobutton(frameIndentType,variable=self.indentBySpaces, value=0,text='Tab key inserts tabs') labelIndentSizeTitle=Label(frameIndentSize, text='Choose indentation size :') labelSpaceNumTitle=Label(frameIndentSize,justify=LEFT, text='when tab key inserts spaces,\nspaces per tab') self.scaleSpaceNum=Scale(frameIndentSize,variable=self.spaceNum, orient='horizontal',tickinterval=2,from_=2,to=8) labeltabColsTitle=Label(frameIndentSize,justify=LEFT, text='when tab key inserts tabs,\ncolumns per tab') self.scaleTabCols=Scale(frameIndentSize,variable=self.tabCols, orient='horizontal',tickinterval=2,from_=2,to=8) #widget packing #body frameFont.pack(side=LEFT,padx=5,pady=10,expand=TRUE,fill=BOTH) frameIndent.pack(side=LEFT,padx=5,pady=10,fill=Y) #frameFont labelFontTitle.pack(side=TOP,anchor=W,padx=5,pady=5) frameFontName.pack(side=TOP,padx=5,pady=5,fill=X) frameFontParam.pack(side=TOP,padx=5,pady=5,fill=X) labelFontNameTitle.pack(side=TOP,anchor=W) self.listFontName.pack(side=LEFT,expand=TRUE,fill=X) scrollFont.pack(side=LEFT,fill=Y) labelFontSizeTitle.pack(side=LEFT,anchor=W) self.optMenuFontSize.pack(side=LEFT,anchor=W) checkFontBold.pack(side=LEFT,anchor=W,padx=20) frameFontSample.pack(side=TOP,padx=5,pady=5,expand=TRUE,fill=BOTH) self.labelFontSample.pack(expand=TRUE,fill=BOTH) #frameIndent labelIndentTitle.pack(side=TOP,anchor=W,padx=5,pady=5) frameIndentType.pack(side=TOP,padx=5,fill=X) frameIndentSize.pack(side=TOP,padx=5,pady=5,fill=BOTH) labelIndentTypeTitle.pack(side=TOP,anchor=W,padx=5,pady=5) radioUseSpaces.pack(side=TOP,anchor=W,padx=5) radioUseTabs.pack(side=TOP,anchor=W,padx=5) labelIndentSizeTitle.pack(side=TOP,anchor=W,padx=5,pady=5) labelSpaceNumTitle.pack(side=TOP,anchor=W,padx=5) self.scaleSpaceNum.pack(side=TOP,padx=5,fill=X) labeltabColsTitle.pack(side=TOP,anchor=W,padx=5) self.scaleTabCols.pack(side=TOP,padx=5,fill=X) return frame
bbfc131c567f0e2a96e25138666f8f75d2d04b8e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/bbfc131c567f0e2a96e25138666f8f75d2d04b8e/configDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 1964, 5711, 5661, 12, 2890, 4672, 468, 16099, 5555, 365, 18, 5776, 1225, 33, 780, 1537, 12, 2890, 13, 365, 18, 5776, 38, 1673, 33, 5507, 1537, 12, 2890, 13, 365, 18, 5776, 461, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 1964, 5711, 5661, 12, 2890, 4672, 468, 16099, 5555, 365, 18, 5776, 1225, 33, 780, 1537, 12, 2890, 13, 365, 18, 5776, 38, 1673, 33, 5507, 1537, 12, 2890, 13, 365, 18, 5776, 461, ...
assert down.m == [(down.cs_made[0], 'booga 3')] down.cs_made[0].send_message('booga 4')
assert down.m == [(down.cs_made[1], 'booga 3')] down.cs_made[1].send_message('booga 4')
def test_remote_connect_down(): up = DummyTransfer() down = DummyTransfer() s = DummyScheduler() c = Connecter(up, down, s, 5, 6) e = DummyEncrypter() c.set_encrypter(e) dc = DummyConnection('a' * 20) c.got_message(dc, 'upload') assert len(down.cs_made) == 1 and down.cs_made[0].get_id() == 'a' * 20 c.got_message(dc, 'booga') assert down.m == [(down.cs_made[0], 'booga')] del down.m[:] down.cs_made[0].send_message('booga 2') assert dc.m == ['booga 2'] dc2 = DummyConnection('a' * 20) c.got_message(dc2, 'upload') assert len(down.cs_made) == 1 assert dc.closed c.got_message(dc2, 'booga 3') assert down.m == [(down.cs_made[0], 'booga 3')] down.cs_made[0].send_message('booga 4') assert dc2.m == ['booga 4']
e515f2d77bfcdfdf465f07113b3fb94b00f492ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4538/e515f2d77bfcdfdf465f07113b3fb94b00f492ad/Connecter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 7222, 67, 3612, 67, 2378, 13332, 731, 273, 28622, 5912, 1435, 2588, 273, 28622, 5912, 1435, 272, 273, 28622, 11870, 1435, 276, 273, 8289, 264, 12, 416, 16, 2588, 16, 272, 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, 1842, 67, 7222, 67, 3612, 67, 2378, 13332, 731, 273, 28622, 5912, 1435, 2588, 273, 28622, 5912, 1435, 272, 273, 28622, 11870, 1435, 276, 273, 8289, 264, 12, 416, 16, 2588, 16, 272, 16, ...
Result: A list of Category objects on success or a dictionary containing values for the keys, "faultCode" and "faultString".
Result: A list of Category objects on success
def testplan_update(self, plan_id, name, product_id, type_id, product_version, isactive): """Update An Existing TestPlan.
83012e559756373ef19add9ed3d26f1bf779a22c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/231/83012e559756373ef19add9ed3d26f1bf779a22c/testopia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 7088, 67, 2725, 12, 2890, 16, 4995, 67, 350, 16, 508, 16, 3017, 67, 350, 16, 618, 67, 350, 16, 3017, 67, 1589, 16, 353, 3535, 4672, 3536, 1891, 1922, 28257, 7766, 5365, 18, 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, 1842, 7088, 67, 2725, 12, 2890, 16, 4995, 67, 350, 16, 508, 16, 3017, 67, 350, 16, 618, 67, 350, 16, 3017, 67, 1589, 16, 353, 3535, 4672, 3536, 1891, 1922, 28257, 7766, 5365, 18, 2, ...
def perform(self, node, input_storage, output_storage): raise NotImplementedError('only C is implemented')
def perform(self, node, input_storage, output_storage): raise NotImplementedError('only C is implemented')
f14dc05d6b77472cd0e69b4934e537c2ebbdd4da /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/f14dc05d6b77472cd0e69b4934e537c2ebbdd4da/nnet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 12, 2890, 16, 756, 16, 810, 67, 5697, 16, 876, 67, 5697, 4672, 1002, 11206, 2668, 3700, 385, 353, 8249, 6134, 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, 3073, 12, 2890, 16, 756, 16, 810, 67, 5697, 16, 876, 67, 5697, 4672, 1002, 11206, 2668, 3700, 385, 353, 8249, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
(identity.current.user_name, self.groupnames))
(identity.current.user_name, self.owner_memberships))
def _acl_can_be_held_by_user(self, acl, user=None): '''Return true if the user is allowed to hold the specified acl.
b28495bbefcf7e8025cf3331820ea585282a7ec1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9953/b28495bbefcf7e8025cf3331820ea585282a7ec1/dispatcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10150, 67, 4169, 67, 2196, 67, 76, 488, 67, 1637, 67, 1355, 12, 2890, 16, 7895, 16, 729, 33, 7036, 4672, 9163, 990, 638, 309, 326, 729, 353, 2935, 358, 6887, 326, 1269, 7895, 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, 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, 10150, 67, 4169, 67, 2196, 67, 76, 488, 67, 1637, 67, 1355, 12, 2890, 16, 7895, 16, 729, 33, 7036, 4672, 9163, 990, 638, 309, 326, 729, 353, 2935, 358, 6887, 326, 1269, 7895, 18...
gLogger.fatal(errStr,self.name) return S_ERROR(errStr) resDict = {'Failed':failed,'Successful':successful} return S_OK(resDict) def putFile(self,path,sourceSize=0): res = self.checkArgumentFormat(path)
gLogger.fatal( errStr, self.name ) return S_ERROR( errStr ) resDict = {'Failed':failed, 'Successful':successful} return S_OK( resDict ) def putFile( self, path, sourceSize = 0 ): res = self.checkArgumentFormat( path )
def getFileSize(self,path): """Get the physical size of the given file """ res = self.checkArgumentFormat(path) if not res['OK']: return res urls = res['Value']
70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6034, 1225, 12, 2890, 16, 803, 4672, 3536, 967, 326, 11640, 963, 434, 326, 864, 585, 3536, 400, 273, 365, 18, 1893, 1379, 1630, 12, 803, 13, 309, 486, 400, 3292, 3141, 3546, 30, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6034, 1225, 12, 2890, 16, 803, 4672, 3536, 967, 326, 11640, 963, 434, 326, 864, 585, 3536, 400, 273, 365, 18, 1893, 1379, 1630, 12, 803, 13, 309, 486, 400, 3292, 3141, 3546, 30, 327, ...
reportToUpdate = inputState.getJobReport()
def stageOut(): """ _stageOut_ Main function for this module. Loads data from the task and manages the stage out process for a single attempt """ state = TaskState(os.getcwd()) state.loadRunResDB() workflow = WorkflowSpec() workflow.load(os.environ['PRODAGENT_WORKFLOW_SPEC']) stageOutFor, override, controls = StageOutUtils.getStageOutConfig( workflow, state.taskName()) exitCode = 0 # // # // find inputs by locating the task for which we are staging out #// and loading its TaskState for inputTask in stageOutFor: print "Attempting to stage out files for node %s" % stageOutFor init = True try: inputState = getTaskState(inputTask) inputReport = inputState.getJobReport() except Exception, ex: exitCode = 60311 errRep = inputReport.addError( exitCode, "StageOutInputFailure") errRep['Description'] = " Error loading task state/job report to stage out:\n%s" % str(ex) inputReport.status = "Failed" inputReport.exitCode = ex.data['ErrorCode'] reportToUpdate = inputState.getJobReport() init = False initmgr = True try: if init: manager = StageOutReport(inputReport, override, controls) except StageOutInitError, ex: exitCode = ex.data['ErrorCode'] errRep = inputReport.addError( ex.data['ErrorCode'], ex.data['ErrorType']) errRep['Description'] = ex.message inputReport.status = "Failed" inputReport.exitCode = ex.data['ErrorCode'] reportToUpdate = inputState.getJobReport() initmgr = False try: if init and initmgr: exitCode = manager() reportToUpdate = state.getJobReport() except StageOutFailure, ex: exitCode = ex.data['ErrorCode'] errRep = inputReport.addError( ex.data['ErrorCode'], ex.data['ErrorType']) errRep['Description'] = ex.message inputReport.status = "Failed" inputReport.exitCode = ex.data['ErrorCode'] reportToUpdate = inputState.getJobReport() inputState.saveJobReport() # // # // Update primary job report #// toplevelReport = os.path.join(os.environ['PRODAGENT_JOB_DIR'], "FrameworkJobReport.xml") updateReport(toplevelReport, reportToUpdate) print "Stage Out for %s complete: Return code: %s " % \ (inputTask, exitCode) print "All StageOuts finished: Exiting %s" % exitCode return exitCode
e03c0c8527aa1fd1ba74430016f47be0c1c0b073 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8887/e03c0c8527aa1fd1ba74430016f47be0c1c0b073/RuntimeStageOut.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6009, 1182, 13332, 3536, 389, 12869, 1182, 67, 225, 12740, 445, 364, 333, 1605, 18, 4444, 87, 501, 628, 326, 1562, 471, 20754, 281, 326, 6009, 596, 1207, 364, 279, 2202, 4395, 225, 3536,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6009, 1182, 13332, 3536, 389, 12869, 1182, 67, 225, 12740, 445, 364, 333, 1605, 18, 4444, 87, 501, 628, 326, 1562, 471, 20754, 281, 326, 6009, 596, 1207, 364, 279, 2202, 4395, 225, 3536,...
template = "account/email_validate_email.html"
def add(self, user, type, email): """ Add a new validation process entry """ while True: key = User.objects.make_random_password(70) try: Validation.objects.get(key=key) except Validation.DoesNotExist: self.key = key break
eb0016dfe4cd52b2bbba09899ffa0fb5cf6cadda /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12976/eb0016dfe4cd52b2bbba09899ffa0fb5cf6cadda/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 12, 2890, 16, 729, 16, 618, 16, 2699, 4672, 3536, 1436, 279, 394, 3379, 1207, 1241, 3536, 1323, 1053, 30, 498, 273, 2177, 18, 6911, 18, 6540, 67, 9188, 67, 3664, 12, 7301, 13, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 12, 2890, 16, 729, 16, 618, 16, 2699, 4672, 3536, 1436, 279, 394, 3379, 1207, 1241, 3536, 1323, 1053, 30, 498, 273, 2177, 18, 6911, 18, 6540, 67, 9188, 67, 3664, 12, 7301, 13, 7...
cline = cline + " -TRANSWEIGHT=%s" % self.trans_weight
cline += " -TRANSWEIGHT=%s" % self.trans_weight
def __str__(self): """Write out the command line as a string.""" cline = self.command + " " + self.sequence_file
2eec844bd4b813ca4a021c23a58ac4936477a812 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7167/2eec844bd4b813ca4a021c23a58ac4936477a812/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 3536, 3067, 596, 326, 1296, 980, 487, 279, 533, 12123, 927, 558, 273, 365, 18, 3076, 397, 315, 315, 397, 365, 18, 6178, 67, 768, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 3536, 3067, 596, 326, 1296, 980, 487, 279, 533, 12123, 927, 558, 273, 365, 18, 3076, 397, 315, 315, 397, 365, 18, 6178, 67, 768, 2, -100, -100, -100, ...
self.printIndented("<Component Id=\"" + componentId + "\" Guid=\"" + guid + "\" DiskId=\"1\">") self.incrementIndent()
component = "<Component Id=\"" + componentId + "\" Guid=\"" + guid + "\" DiskId=\"1\"" if self.win64: component += " Win64=\"" + self.win64 + "\"" component += ">" self.printIndented(component) self.incrementIndent()
def startComponent(self, componentId, guid): self.printIndented("<Component Id=\"" + componentId + "\" Guid=\"" + guid + "\" DiskId=\"1\">") self.incrementIndent()
f73b0c64e753681bdcfe45cab4cfc40cb805f813 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5450/f73b0c64e753681bdcfe45cab4cfc40cb805f813/harvest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1841, 12, 2890, 16, 29976, 16, 9875, 4672, 1794, 273, 3532, 1841, 3124, 13186, 397, 29976, 397, 7023, 611, 1911, 13186, 397, 9875, 397, 7023, 12951, 548, 5189, 21, 8530, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1841, 12, 2890, 16, 29976, 16, 9875, 4672, 1794, 273, 3532, 1841, 3124, 13186, 397, 29976, 397, 7023, 611, 1911, 13186, 397, 9875, 397, 7023, 12951, 548, 5189, 21, 8530, 309, 365, 1...
wikipedia.output(newcontent) self.page.put(newcontent, comment = summary)
self.page.put(self.content, comment = summary)
def handlebadpage(self): try: self.content = self.page.get() except wikipedia.IsRedirectPage: wikipedia.output(u'Already redirected, skipping.') return except wikipedia.NoPage: wikipedia.output(u'Already deleted') return
ca708b8e06afe9a610956cccce093f30516019bf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/ca708b8e06afe9a610956cccce093f30516019bf/followlive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 8759, 2433, 12, 2890, 4672, 775, 30, 365, 18, 1745, 273, 365, 18, 2433, 18, 588, 1435, 1335, 21137, 18, 2520, 5961, 1964, 30, 21137, 18, 2844, 12, 89, 11, 9430, 21808, 16, 14195,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 8759, 2433, 12, 2890, 4672, 775, 30, 365, 18, 1745, 273, 365, 18, 2433, 18, 588, 1435, 1335, 21137, 18, 2520, 5961, 1964, 30, 21137, 18, 2844, 12, 89, 11, 9430, 21808, 16, 14195,...
response = IncludedResponse
response = IncludedResponse()
def activate(self, environ): response = IncludedResponse def start_response(status, headers, exc_info=None): if exc_info: raise exc_info[0], exc_info[1], exc_info[2] response.status = status response.headers = headers return response.write app_iter = self.application(environ, start_response) try: for s in app_iter: response.write(s) finally: if hasattr(app_iter, 'close'): app_iter.close() response.close() return response
767dc45a6585a8b9780a8e0936ab28e08e122e9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/767dc45a6585a8b9780a8e0936ab28e08e122e9b/recursive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10235, 12, 2890, 16, 5473, 4672, 766, 273, 657, 7908, 1064, 1435, 1652, 787, 67, 2740, 12, 2327, 16, 1607, 16, 3533, 67, 1376, 33, 7036, 4672, 309, 3533, 67, 1376, 30, 1002, 3533, 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, 5473, 4672, 766, 273, 657, 7908, 1064, 1435, 1652, 787, 67, 2740, 12, 2327, 16, 1607, 16, 3533, 67, 1376, 33, 7036, 4672, 309, 3533, 67, 1376, 30, 1002, 3533, 67, ...
self.updateProgressMicroStep("generating book descriptions ...", float(title_num*100/len(self.booksByTitle))/100)
self.updateProgressMicroStep("Description %d of %d" % \ (title_num, len(self.booksByTitle)), float(title_num*100/len(self.booksByTitle))/100)
def generateHTMLDescriptions(self): # Write each title to a separate HTML file in contentdir self.opts.log.info(self.updateProgressFullStep("generateHTMLDescriptions()"))
1ce23c231468dc03709ee76c7da814fa41c6e4a7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/1ce23c231468dc03709ee76c7da814fa41c6e4a7/catalog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 4870, 16844, 12, 2890, 4672, 468, 2598, 1517, 2077, 358, 279, 9004, 3982, 585, 316, 913, 1214, 365, 18, 4952, 18, 1330, 18, 1376, 12, 2890, 18, 2725, 5491, 5080, 4160, 2932, 7163, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2103, 4870, 16844, 12, 2890, 4672, 468, 2598, 1517, 2077, 358, 279, 9004, 3982, 585, 316, 913, 1214, 365, 18, 4952, 18, 1330, 18, 1376, 12, 2890, 18, 2725, 5491, 5080, 4160, 2932, 7163, ...
if len(res['Value']) == 0: return S_OK ([])
if len( res['Value'] ) == 0: return S_OK ( [] )
def getHeartBeatData(self,jobID): """ Retrieve the job's heart beat data """ ret = self._escapeString(jobID) if not ret['OK']: return ret jobID = ret['Value']
99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 5256, 485, 1919, 270, 751, 12, 2890, 16, 4688, 734, 4672, 3536, 10708, 326, 1719, 1807, 3904, 485, 23795, 501, 3536, 325, 273, 365, 6315, 6939, 780, 12, 4688, 734, 13, 309, 486, 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, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 5256, 485, 1919, 270, 751, 12, 2890, 16, 4688, 734, 4672, 3536, 10708, 326, 1719, 1807, 3904, 485, 23795, 501, 3536, 325, 273, 365, 6315, 6939, 780, 12, 4688, 734, 13, 309, 486, 3...
f = open(TESTFN, 'w+') f.write("ABCDEabcde")
f = open(TESTFN, 'wb+') f.write(b"ABCDEabcde")
def test_move(self): # make move works everywhere (64-bit format problem earlier) f = open(TESTFN, 'w+')
d5ab51392e332ac6a7a37b2fca62a82b1aee9ec7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/d5ab51392e332ac6a7a37b2fca62a82b1aee9ec7/test_mmap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8501, 12, 2890, 4672, 468, 1221, 3635, 6330, 3614, 6051, 261, 1105, 17, 3682, 740, 6199, 13805, 13, 284, 273, 1696, 12, 16961, 19793, 16, 296, 91, 15, 6134, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8501, 12, 2890, 4672, 468, 1221, 3635, 6330, 3614, 6051, 261, 1105, 17, 3682, 740, 6199, 13805, 13, 284, 273, 1696, 12, 16961, 19793, 16, 296, 91, 15, 6134, 2, -100, -100, -1...
Subgroup of Mordell Weil group: [[1:-1:1], [-2:3:1], [-14:25:8]] In the next example, a serach bound of 12 is needed to find a non-torsin point::
Subgroup of Mordell-Weil group: [[1:-1:1], [-2:3:1], [-14:25:8]] In the next example, a search bound of 12 is needed to find a non-torsion point::
def search(self, height_limit=18, verbose=False): r""" Search for new points, and add them to this subgroup of the Mordell-Weil group.
8b53e056cc765e689493ec9632c441ee03a3206a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/8b53e056cc765e689493ec9632c441ee03a3206a/interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 12, 2890, 16, 2072, 67, 3595, 33, 2643, 16, 3988, 33, 8381, 4672, 436, 8395, 5167, 364, 394, 3143, 16, 471, 527, 2182, 358, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, 3218, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1623, 12, 2890, 16, 2072, 67, 3595, 33, 2643, 16, 3988, 33, 8381, 4672, 436, 8395, 5167, 364, 394, 3143, 16, 471, 527, 2182, 358, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, 3218, ...
print 'Generating %s %s code...' %("and compiling " and options1.really_compile or "",options1.backend)
print 'Generating %s %s code...' %(options1.really_compile and "and compiling " or "",options1.backend)
def interpret(): import py from pypy.rpython.llinterp import LLInterpreter py.log.setconsumer("llinterp operation", None) interp = LLInterpreter(t.flowgraphs, t.rtyper) interp.eval_function(entry_point, targetspec_dic['get_llinterp_args']())
d245692231799788baf4c2be3bcaecdeb75db6b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/d245692231799788baf4c2be3bcaecdeb75db6b7/translate_pypy_new.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10634, 13332, 1930, 2395, 628, 18951, 93, 18, 86, 8103, 18, 2906, 24940, 1930, 29863, 30010, 2395, 18, 1330, 18, 542, 13230, 2932, 2906, 24940, 1674, 3113, 599, 13, 8174, 273, 29863, 30010...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10634, 13332, 1930, 2395, 628, 18951, 93, 18, 86, 8103, 18, 2906, 24940, 1930, 29863, 30010, 2395, 18, 1330, 18, 542, 13230, 2932, 2906, 24940, 1674, 3113, 599, 13, 8174, 273, 29863, 30010...
elif self.objtype == 'cmember':
elif self.objtype == 'member':
def get_index_text(self, name): if self.objtype == 'cfunction': return _('%s (C function)') % name elif self.objtype == 'cmember': return _('%s (C member)') % name elif self.objtype == 'cmacro': return _('%s (C macro)') % name elif self.objtype == 'ctype': return _('%s (C type)') % name elif self.objtype == 'cvar': return _('%s (C variable)') % name else: return ''
4038f49ca7f8e2aa4e79cdb9d7b8f6eba94d1aeb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7032/4038f49ca7f8e2aa4e79cdb9d7b8f6eba94d1aeb/c.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1615, 67, 955, 12, 2890, 16, 508, 4672, 309, 365, 18, 2603, 723, 422, 296, 71, 915, 4278, 327, 389, 29909, 87, 261, 39, 445, 2506, 13, 738, 508, 1327, 365, 18, 2603, 723, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1615, 67, 955, 12, 2890, 16, 508, 4672, 309, 365, 18, 2603, 723, 422, 296, 71, 915, 4278, 327, 389, 29909, 87, 261, 39, 445, 2506, 13, 738, 508, 1327, 365, 18, 2603, 723, ...
conf.read(f) sects = conf.sections() for sect in sects: if verbose: print "sect:", sect rev_merger(conf.items(sect), use_dict)
try: conf.read(f) sects = conf.sections() for sect in sects: if verbose: print "sect:", sect rev_merger(conf.items(sect), use_dict) except: print "!%s is not a valid keyword file"%f import pkg_resources
def rev_ini_annotator(use_dict, verbose=True): """ update revert dict by ini files
2a50941be1a6c8368a3d1c517506ec114dd7579d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1969/2a50941be1a6c8368a3d1c517506ec114dd7579d/pyzh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5588, 67, 8767, 67, 18338, 639, 12, 1202, 67, 1576, 16, 3988, 33, 5510, 4672, 3536, 1089, 15226, 2065, 635, 6896, 1390, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5588, 67, 8767, 67, 18338, 639, 12, 1202, 67, 1576, 16, 3988, 33, 5510, 4672, 3536, 1089, 15226, 2065, 635, 6896, 1390, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.assertEqual(p.stderr.read(), "strawberry")
self.assertEqual(remove_stderr_debug_decorations(p.stderr.read()), "strawberry")
def test_stderr_pipe(self): # stderr redirection p = subprocess.Popen([sys.executable, "-c", 'import sys; sys.stderr.write("strawberry")'], stderr=subprocess.PIPE) self.assertEqual(p.stderr.read(), "strawberry")
3061b171f6d3b6e96578be96cafab4c3c44f4f97 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/3061b171f6d3b6e96578be96cafab4c3c44f4f97/test_subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 11241, 67, 14772, 12, 2890, 4672, 468, 4514, 19611, 293, 273, 6652, 18, 52, 3190, 3816, 9499, 18, 17751, 16, 3701, 71, 3113, 296, 5666, 2589, 31, 2589, 18, 11241, 18, 2626, 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, 1842, 67, 11241, 67, 14772, 12, 2890, 4672, 468, 4514, 19611, 293, 273, 6652, 18, 52, 3190, 3816, 9499, 18, 17751, 16, 3701, 71, 3113, 296, 5666, 2589, 31, 2589, 18, 11241, 18, 2626, 2...
"""
"""
def flps_invalidate_color_cache(): """ flps_invalidate_color_cache() """ _flps_invalidate_color_cache()
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, 1121, 67, 5387, 340, 67, 3266, 67, 2493, 13332, 3536, 1183, 1121, 67, 5387, 340, 67, 3266, 67, 2493, 1435, 3536, 225, 389, 2242, 1121, 67, 5387, 340, 67, 3266, 67, 2493, 1435, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1183, 1121, 67, 5387, 340, 67, 3266, 67, 2493, 13332, 3536, 1183, 1121, 67, 5387, 340, 67, 3266, 67, 2493, 1435, 3536, 225, 389, 2242, 1121, 67, 5387, 340, 67, 3266, 67, 2493, 1435, 28...
version='0.8.5',
version='0.9.0',
def publish(): """Publish to PyPi""" os.system("python setup.py sdist upload")
8d6e75ad20a2ae56ae7270ff7f4f8943af69e8db /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14944/8d6e75ad20a2ae56ae7270ff7f4f8943af69e8db/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3808, 13332, 3536, 6024, 358, 4707, 16539, 8395, 1140, 18, 4299, 2932, 8103, 3875, 18, 2074, 272, 4413, 3617, 7923, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3808, 13332, 3536, 6024, 358, 4707, 16539, 8395, 1140, 18, 4299, 2932, 8103, 3875, 18, 2074, 272, 4413, 3617, 7923, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
def testWindowedRead(self): r = IECore.Reader.create(self.testfile)
r = IECore.Reader.create(self.testfile)
def testHalf(self):
9faa9bf4945d330bb4737cd1f3b3eb60b0ab6258 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9042/9faa9bf4945d330bb4737cd1f3b3eb60b0ab6258/EXRReader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 16168, 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, 1842, 16168, 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, ...
self.changexaxis( self["entry1"] ) self.xList.append(self.FullDataList[0][:,0]) try: self.yList.append( eval(yaxis, self.entry)[:,1]) except NameError: self.theSession.printMessage( "name '%s' is not defined \n" % yaxis ) self["entry%i"%num].set_text ('') self.changeyaxis( self["entry%i"%num] ) self.yList.append(['None']) except (SyntaxError,TypeError): self.theSession.printMessage( "'%s' is SyntaxError or TypeError \n" % yaxis ) self["entry%i"%num].set_text ('') self.changeyaxis( self["entry%i"%num] ) self.yList.append(['None']) num += 1 if self.yaxis == None: num = 0 for LoggerData in self.LoggerDataList: if LoggerData == (): pass else:
self.changexaxis( self["entry1"] ) self.xList.append(self.FullDataList[0][:,0]) self.yList.append ( self.FullDataList[num][:,1] ) else: num = 2 for yaxis in self.yaxis: if yaxis == '': self.xList.append (['None']) self.yList.append (['None']) else: try: self.xList.append( eval(self.xaxis, self.entry)[:,1]) except NameError: self.theSession.printMessage( "name '%s' is not defined \n" % self.xaxis ) self["entry1"].set_text ('time') self.changexaxis( self["entry1"] ) self.xList.append(self.FullDataList[0][:,0]) except (SyntaxError,TypeError): self.theSession.printMessage( "'%s' is SyntaxError or TypeError\n" % self.xaxis ) self["entry1"].set_text ('time') self.changexaxis( self["entry1"] ) self.xList.append(self.FullDataList[0][:,0]) try: self.yList.append( eval(yaxis, self.entry)[:,1]) except NameError: self.theSession.printMessage( "name '%s' is not defined \n" % yaxis ) self["entry%i"%num].set_text ('') self.changeyaxis( self["entry%i"%num] ) self.yList.append(['None']) except (SyntaxError,TypeError): self.theSession.printMessage( "'%s' is SyntaxError or TypeError \n" % yaxis ) self["entry%i"%num].set_text ('') self.changeyaxis( self["entry%i"%num] ) self.yList.append(['None']) num += 1 if self.yaxis == None: num = 0 for LoggerData in self.LoggerDataList: if LoggerData == (): pass else: if theStateList[num] == 1: self.theDataList[num].set_points( None, None ) else: if self.scale == "log": if min(array(LoggerData)[:,1]) <= 0: self.theSession.printMessage( "value is under 0, set yaxis to linear scale\n" ) self.plot.set_yscale(PLOT_SCALE_LINEAR) self.scale = "linear" self.theDataList[num].set_points( self.xList[num], self.yList[num] ) num += 1 else: num = 0 for yaxis in self.yaxis:
def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)): self.xList.append(self.FullDataList[num][:,0]) self.yList.append(self.FullDataList[num][:,1])
e25a4482966107fd645b73fd395987a2d02216c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e25a4482966107fd645b73fd395987a2d02216c7/TracerWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 365, 262, 30, 309, 365, 18, 3175, 738, 1728, 422, 1381, 30, 326, 1119, 682, 273, 365, 18, 542, 1119, 682, 1435, 365, 18, 2725, 3328, 24274, 1435, 225, 309, 365, 18, 3328, 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, 1089, 12, 365, 262, 30, 309, 365, 18, 3175, 738, 1728, 422, 1381, 30, 326, 1119, 682, 273, 365, 18, 542, 1119, 682, 1435, 365, 18, 2725, 3328, 24274, 1435, 225, 309, 365, 18, 3328, 2...
global aniVal, rppVal, meshVal, materVal, frameVal, sceneVal, rppBtn, layerBtns, layers global rppBtn, layerBtns, layers, projectName, projectButton
global animation, sceneVal, layerBtns, layers, projectName, projectButton
def buttonEvent(evt): global aniVal, rppVal, meshVal, materVal, frameVal, sceneVal, rppBtn, layerBtns, layers global rppBtn, layerBtns, layers, projectName, projectButton if evt == 8: projectName = projectButton.val if evt == 1: doExport() if evt == 2: print "Rendering...\n" elif evt == 4: aniVal = 1 - aniVal elif evt == 5: rppVal = rppBtn.val elif evt == 6: for i in range(20): layers[i] = 1 layerBtns[i].val = 1 elif evt == 7: for i in range(20): layers[i] = 0 layerBtns[i].val = 0 elif evt == 10: sceneVal = 1 - sceneVal elif evt == 11: meshVal = 1 - meshVal elif evt == 12: materVal = 1 - materVal elif evt == 13: frameVal = 1 - frameVal elif evt >= layerBase and evt < layerBase + 20: layerNumber = evt - layerBase
4592ac1c6506933737691ef09136834b05443979 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1122/4592ac1c6506933737691ef09136834b05443979/adrt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3568, 1133, 12, 73, 11734, 4672, 2552, 8794, 16, 9065, 3053, 16, 3018, 38, 88, 2387, 16, 6623, 16, 17234, 16, 1984, 3616, 225, 309, 6324, 422, 1725, 30, 17234, 273, 1984, 3616, 18, 112...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3568, 1133, 12, 73, 11734, 4672, 2552, 8794, 16, 9065, 3053, 16, 3018, 38, 88, 2387, 16, 6623, 16, 17234, 16, 1984, 3616, 225, 309, 6324, 422, 1725, 30, 17234, 273, 1984, 3616, 18, 112...
paths.append(path + [dep])
paths.append(newpath)
def filterNodes(self, seedsIn, seedsOut = None, allInBetween = False):
f147d159c71527bdeb50ccdc541809b1fc6b4bf2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5315/f147d159c71527bdeb50ccdc541809b1fc6b4bf2/make_grapher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 3205, 12, 2890, 16, 19076, 382, 16, 19076, 1182, 273, 599, 16, 777, 382, 11831, 273, 1083, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 3205, 12, 2890, 16, 19076, 382, 16, 19076, 1182, 273, 599, 16, 777, 382, 11831, 273, 1083, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if encoding is None: stream = open(filename, mode) else: stream = codecs.open(filename, mode, encoding) StreamHandler.__init__(self, stream)
def __init__(self, filename, mode='a', encoding=None): """ Open the specified file and use it as the stream for logging. """ if codecs is None: encoding = None if encoding is None: stream = open(filename, mode) else: stream = codecs.open(filename, mode, encoding) StreamHandler.__init__(self, stream) #keep the absolute path, otherwise derived classes which use this #may come a cropper when the current directory changes self.baseFilename = os.path.abspath(filename) self.mode = mode
17056c62515b43a5b6239930b4a8f88dfd01401e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/17056c62515b43a5b6239930b4a8f88dfd01401e/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1544, 16, 1965, 2218, 69, 2187, 2688, 33, 7036, 4672, 3536, 3502, 326, 1269, 585, 471, 999, 518, 487, 326, 1407, 364, 2907, 18, 3536, 309, 17437, 353, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1544, 16, 1965, 2218, 69, 2187, 2688, 33, 7036, 4672, 3536, 3502, 326, 1269, 585, 471, 999, 518, 487, 326, 1407, 364, 2907, 18, 3536, 309, 17437, 353, 59...
log.error('File ID ' + str(fileId) + ' not on this FSServer') raise monitors.OmeroFSError('File ID ' + str(fileId) + ' not on this FSServer')
log.error('File ID ' + str(fileId) + ' not on this FSServer') raise monitors.OmeroFSError('File ID ' + str(fileId) + ' not on this FSServer')
def isDir(self, fileId, current=None): """ Return true if fileId represents a directory. :Parameters: fileId : string A string uniquely identifying a file on this Monitor. current An ICE context, this parameter is required to be present in an ICE interface method. :return: atime :rtype: float """ try: pathString = self._getPathString(fileId) except Exception, e: log.error('File ID ' + str(fileId) + ' not on this FSServer') raise monitors.OmeroFSError('File ID ' + str(fileId) + ' not on this FSServer')
c12bc7fb04f687c05f37bb5a6eba2577b9556cda /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/c12bc7fb04f687c05f37bb5a6eba2577b9556cda/MonitorServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17850, 12, 2890, 16, 21223, 16, 783, 33, 7036, 4672, 3536, 2000, 638, 309, 21223, 8686, 279, 1867, 18, 225, 294, 2402, 30, 21223, 294, 533, 432, 533, 30059, 29134, 279, 585, 603, 333, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17850, 12, 2890, 16, 21223, 16, 783, 33, 7036, 4672, 3536, 2000, 638, 309, 21223, 8686, 279, 1867, 18, 225, 294, 2402, 30, 21223, 294, 533, 432, 533, 30059, 29134, 279, 585, 603, 333, ...
num, cluster, password = station num = int(num) station_list[num] = (cluster, password)
if station: num, cluster, password = station num = int(num) station_list[num] = (cluster, password)
def do_init(configfile): """Load configuration and passwords and set up a logger handler This function will do one-time initialization. By using global variables, we eliminate the need to reread configuration and passwords on every request. """ # set up config global config try: config except NameError: config = ConfigParser.ConfigParser() config.read(configfile) # set up logger if not logger.handlers: file = config.get('General', 'log') + '-wsgi.%d' % os.getpid() handler = logging.handlers.TimedRotatingFileHandler(file, when='midnight', backupCount=14) handler.setFormatter(formatter) logger.addHandler(handler) level = LEVELS.get(config.get('General', 'loglevel'), logging.NOTSET) logger.setLevel(level=level) # read station list global station_list try: station_list except NameError: station_list = {} with open(config.get('General', 'station_list')) as file: reader = csv.reader(file) for station in reader: num, cluster, password = station num = int(num) station_list[num] = (cluster, password)
12e09305df3c534ae7cf38793f64ee961ffba626 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11539/12e09305df3c534ae7cf38793f64ee961ffba626/wsgi_app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2738, 12, 1425, 768, 4672, 3536, 2563, 1664, 471, 24210, 471, 444, 731, 279, 1194, 1838, 225, 1220, 445, 903, 741, 1245, 17, 957, 10313, 18, 225, 2525, 1450, 2552, 3152, 16, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2738, 12, 1425, 768, 4672, 3536, 2563, 1664, 471, 24210, 471, 444, 731, 279, 1194, 1838, 225, 1220, 445, 903, 741, 1245, 17, 957, 10313, 18, 225, 2525, 1450, 2552, 3152, 16, 7...
if item.isDeleted(): itemToSelect = master.getRecurrenceID(recurrenceID) or master itemToSelect = itemToSelect.itsItem
assert not newMaster.itsItem.isDeleted() occurrence = newMaster.getRecurrenceID(newMaster.recurrenceID) itemToSelect = occurrence.itsItem
def SetAttributeValue(self, item, attributeName, value): """ Set the value of the attribute given by the value. """ assert value != RecurrenceAttributeEditor.customIndex # Changing the recurrence period on a non-master item could delete # this very 'item'; we'll try to select the "same" occurrence # afterwards ... assert pim.has_stamp(item, pim.EventStamp) event = pim.EventStamp(item) master = event.getMaster() recurrenceID = event.recurrenceID or event.startTime if value == RecurrenceAttributeEditor.onceIndex: event.removeRecurrence() else: oldIndex = self.GetAttributeValue(event, attributeName) # If nothing has changed, return. This avoids building # a whole new ruleset, and the teardown of occurrences, # as in Bug 5526 if oldIndex == value: return interval = 1 if value == RecurrenceAttributeEditor.biweeklyIndex: interval = 2 value = RecurrenceAttributeEditor.weeklyIndex duFreq = Recurrence.toDateUtilFrequency(\ RecurrenceAttributeEditor.menuFrequencies[value]) rruleset = Recurrence.RecurrenceRuleSet(None, itsView=item.itsView) rruleset.setRuleFromDateUtil(Recurrence.dateutil.rrule.rrule(duFreq, interval=interval)) until = event.getLastUntil() if until is not None: rruleset.rrules.first().until = until elif hasattr(rruleset.rrules.first(), 'until'): del rruleset.rrules.first().until rruleset.rrules.first().untilIsDate = True event.changeThisAndFuture(pim.EventStamp.rruleset.name, rruleset)
11b8f583abddac7026bb8148cc6cfa8a4ea1070b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/11b8f583abddac7026bb8148cc6cfa8a4ea1070b/detail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 14942, 12, 2890, 16, 761, 16, 9734, 16, 460, 4672, 3536, 1000, 326, 460, 434, 326, 1566, 864, 635, 326, 460, 18, 3536, 1815, 460, 480, 868, 17131, 1499, 6946, 18, 3662, 1016, 468...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 14942, 12, 2890, 16, 761, 16, 9734, 16, 460, 4672, 3536, 1000, 326, 460, 434, 326, 1566, 864, 635, 326, 460, 18, 3536, 1815, 460, 480, 868, 17131, 1499, 6946, 18, 3662, 1016, 468...
if charAfter and chr(charAfter) in "[]{}()" and styleAfter == stc.STC_P_OPERATOR:
if charAfter and chr(charAfter) in "[]{}()" and styleAfter == stc.STC_C_OPERATOR:
def OnUpdateUI(self, evt): # check for matching braces braceAtCaret = -1 braceOpposite = -1 charBefore = None caretPos = self.GetCurrentPos()
50c444321a077c149eeb7545d767e753034d7fb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11200/50c444321a077c149eeb7545d767e753034d7fb8/Psycollider.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 1891, 5370, 12, 2890, 16, 6324, 4672, 468, 866, 364, 3607, 26852, 22500, 861, 39, 20731, 273, 300, 21, 22500, 3817, 4974, 273, 300, 21, 1149, 4649, 273, 599, 21683, 1616, 273, 365,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 1891, 5370, 12, 2890, 16, 6324, 4672, 468, 866, 364, 3607, 26852, 22500, 861, 39, 20731, 273, 300, 21, 22500, 3817, 4974, 273, 300, 21, 1149, 4649, 273, 599, 21683, 1616, 273, 365,...
self.client.server_response(self.server, response, statuscode, headers)
self.client.server_response(self.server, response, status, headers)
def server_response (self, response, statuscode, headers): """the server got a response""" # Okay, transfer control over to the real client if self.client.connected: config['requests']['valid'] += 1 self.server.client = self.client self.client.server_response(self.server, response, statuscode, headers) else: self.server.client_abort()
5aaaf0f8c7cbeb35466459a95e5888072c287921 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/5aaaf0f8c7cbeb35466459a95e5888072c287921/ClientServerMatchmaker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1438, 67, 2740, 261, 2890, 16, 766, 16, 1267, 710, 16, 1607, 4672, 3536, 5787, 1438, 2363, 279, 766, 8395, 468, 16154, 528, 16, 7412, 3325, 1879, 358, 326, 2863, 1004, 309, 365, 18, 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, 1438, 67, 2740, 261, 2890, 16, 766, 16, 1267, 710, 16, 1607, 4672, 3536, 5787, 1438, 2363, 279, 766, 8395, 468, 16154, 528, 16, 7412, 3325, 1879, 358, 326, 2863, 1004, 309, 365, 18, 26...
if not lc.IsOk():
if lc is None or not lc.IsOk():
def setWxLocale(locale, i18nMan): """ Sets the c{wx.Locale} to the value passed in c{str} locale argument.
56421d8e0e78b7cbb4f8e9fb940c24150df656c5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/56421d8e0e78b7cbb4f8e9fb940c24150df656c5/i18nmanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 59, 92, 3916, 12, 6339, 16, 277, 2643, 82, 5669, 4672, 3536, 11511, 326, 276, 95, 27226, 18, 3916, 97, 358, 326, 460, 2275, 316, 276, 95, 701, 97, 2573, 1237, 18, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 59, 92, 3916, 12, 6339, 16, 277, 2643, 82, 5669, 4672, 3536, 11511, 326, 276, 95, 27226, 18, 3916, 97, 358, 326, 460, 2275, 316, 276, 95, 701, 97, 2573, 1237, 18, 2, -100, -100,...
response = runner.run(server, (digest, server))
runner.run(server, (digest, server))
def check(self, args): getopt.getopt(args[1:], '')
56b0371912ebd45ae7c0303ca204f2a438aa4ff9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7249/56b0371912ebd45ae7c0303ca204f2a438aa4ff9/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 833, 4672, 336, 3838, 18, 588, 3838, 12, 1968, 63, 21, 30, 6487, 28707, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 833, 4672, 336, 3838, 18, 588, 3838, 12, 1968, 63, 21, 30, 6487, 28707, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for lfn,fileID in res['Value']:
for lfn, fileID in res['Value']:
def getTransformationProblematics(self,transID): req = "SELECT LFN,FileID FROM Problematics WHERE Status = 'New' AND LFN LIKE '%s/%s/%s';" % ('%',('%8.f' % prodID).replace(' ','0'),'%') res = self._query(req) if not res['OK']: return res problematics = {} for lfn,fileID in res['Value']: problematics[lfn] = fileID return S_OK(problematics)
c0ad35468416f798369c9462d5f8a11a19686a43 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/c0ad35468416f798369c9462d5f8a11a19686a43/DataIntegrityDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 15292, 13719, 270, 2102, 12, 2890, 16, 2338, 734, 4672, 1111, 273, 315, 4803, 18803, 50, 16, 812, 734, 4571, 21685, 270, 2102, 4852, 2685, 273, 296, 1908, 11, 4116, 18803, 50, 13161...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15292, 13719, 270, 2102, 12, 2890, 16, 2338, 734, 4672, 1111, 273, 315, 4803, 18803, 50, 16, 812, 734, 4571, 21685, 270, 2102, 4852, 2685, 273, 296, 1908, 11, 4116, 18803, 50, 13161...
if empty_to_zero and index == '':
if empty_to_zero and not index:
def _index_to_int(self, index, empty_to_zero=False): if empty_to_zero and index == '': return 0 try: return int(index) except ValueError: raise ValueError("Cannot convert index '%s' to an integer" % index)
1a30ca3f7347244c59d0f784ad3f1162492374e1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/1a30ca3f7347244c59d0f784ad3f1162492374e1/Collections.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1615, 67, 869, 67, 474, 12, 2890, 16, 770, 16, 1008, 67, 869, 67, 7124, 33, 8381, 4672, 309, 1008, 67, 869, 67, 7124, 471, 486, 770, 30, 327, 374, 775, 30, 327, 509, 12, 1615,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1615, 67, 869, 67, 474, 12, 2890, 16, 770, 16, 1008, 67, 869, 67, 7124, 33, 8381, 4672, 309, 1008, 67, 869, 67, 7124, 471, 486, 770, 30, 327, 374, 775, 30, 327, 509, 12, 1615,...
if not isinstance(b, bytes): if hasattr(b, "__index__"): raise TypeError("Can't write object of type %s" % type(b).__name__) b = bytes(b)
if isinstance(b, str): raise TypeError("can't write str to binary stream")
def write(self, b): if self.closed: raise ValueError("write to closed file") if not isinstance(b, bytes): if hasattr(b, "__index__"): raise TypeError("Can't write object of type %s" % type(b).__name__) b = bytes(b) # XXX we can implement some more tricks to try and avoid partial writes if len(self._write_buf) > self.buffer_size: # We're full, so let's pre-flush the buffer try: self.flush() except BlockingIOError as e: # We can't accept anything else. # XXX Why not just let the exception pass through? raise BlockingIOError(e.errno, e.strerror, 0) before = len(self._write_buf) self._write_buf.extend(b) written = len(self._write_buf) - before if len(self._write_buf) > self.buffer_size: try: self.flush() except BlockingIOError as e: if (len(self._write_buf) > self.max_buffer_size): # We've hit max_buffer_size. We have to accept a partial # write and cut back our buffer. overage = len(self._write_buf) - self.max_buffer_size self._write_buf = self._write_buf[:self.max_buffer_size] raise BlockingIOError(e.errno, e.strerror, overage) return written
ca2411b61de7457be2e1b8115f6254037cecf183 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/ca2411b61de7457be2e1b8115f6254037cecf183/io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 324, 4672, 309, 365, 18, 12204, 30, 1002, 2068, 2932, 2626, 358, 4375, 585, 7923, 309, 1549, 12, 70, 16, 609, 4672, 1002, 3580, 2932, 4169, 1404, 1045, 609, 358, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 324, 4672, 309, 365, 18, 12204, 30, 1002, 2068, 2932, 2626, 358, 4375, 585, 7923, 309, 1549, 12, 70, 16, 609, 4672, 1002, 3580, 2932, 4169, 1404, 1045, 609, 358, 31...
self.entry = gtk.Entry() self.pack_start(self.entry) self.entry.show() self.button = gtk.Button("...") self.button.connect("clicked", self.show_dialog) self.pack_start(self.button, expand=False)
self.button = gtk.FileChooserButton("Pick a file") self.pack_start(self.button, False, False, 6) self.button.set_filename (default)
def __init__(self, default=""): gtk.HBox.__init__(self, False, 5) self.entry = gtk.Entry() self.pack_start(self.entry) self.entry.show() self.button = gtk.Button("...") self.button.connect("clicked", self.show_dialog) self.pack_start(self.button, expand=False) self.button.show()
9396fb5b6609afc5f2bbe1d5c2eb54424e5b9330 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11058/9396fb5b6609afc5f2bbe1d5c2eb54424e5b9330/gimpui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 805, 1546, 6, 4672, 22718, 18, 44, 3514, 16186, 2738, 972, 12, 2890, 16, 1083, 16, 1381, 13, 365, 18, 5391, 273, 22718, 18, 812, 17324, 3616, 2932, 17968...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 805, 1546, 6, 4672, 22718, 18, 44, 3514, 16186, 2738, 972, 12, 2890, 16, 1083, 16, 1381, 13, 365, 18, 5391, 273, 22718, 18, 812, 17324, 3616, 2932, 17968...
o = open(self.pointOutput, 'w')
o = open(self.pointOutputFile, 'w')
def _grabPoints(self): """ Reads vertex indices from a pset file. """ f = file(self.ucdFile) lines = f.readlines() fileLen = len(lines) firstline = lines[0].split() numVerts = int(firstline[0]) numCells = int(firstline[1]) numVertAttrs = int(firstline[2]) vertInd = 0 ucdInd = 0 # Get vertex coordinates for lineCount in range(1, numVerts+1): vertex = self.indices[vertInd] if vertex == ucdInd: data = line[lineCount].split() pointCoords.append(float(data[1]), float(data[2]), float(data[3])) vertInd += 1 ucdInd += 1
ace54b3397b4474efcd5c466bf6bb37dfeef58a6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8645/ace54b3397b4474efcd5c466bf6bb37dfeef58a6/grabpoints.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2752, 70, 5636, 12, 2890, 4672, 3536, 29185, 5253, 4295, 628, 279, 293, 542, 585, 18, 3536, 284, 273, 585, 12, 2890, 18, 89, 4315, 812, 13, 2362, 273, 284, 18, 896, 3548, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2752, 70, 5636, 12, 2890, 4672, 3536, 29185, 5253, 4295, 628, 279, 293, 542, 585, 18, 3536, 284, 273, 585, 12, 2890, 18, 89, 4315, 812, 13, 2362, 273, 284, 18, 896, 3548, 1435, ...
file.Write("%s %s(%s);\n" % (func.return_type, func.original_name, func.MakeTypedOriginalArgString(""))) file.Write("\n") def WriteGLES2ImplementationHeader(self, func, file): """Writes the GLES2 Implemention."""
def WriteGLES2ImplementationDeclaration(self, func, file): """Writes the GLES2 Implemention declaration.""" file.Write("%s %s(%s);\n" % (func.return_type, func.original_name, func.MakeTypedOriginalArgString(""))) file.Write("\n")
b8fb1c2876060305792c0b72943407a8dd011c60 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/b8fb1c2876060305792c0b72943407a8dd011c60/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 43, 11386, 22, 13621, 6094, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 8368, 326, 611, 11386, 22, 10886, 285, 8266, 12123, 585, 18, 3067, 27188, 87, 738, 87, 9275, 87, 20472, 82, 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, 2598, 43, 11386, 22, 13621, 6094, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 8368, 326, 611, 11386, 22, 10886, 285, 8266, 12123, 585, 18, 3067, 27188, 87, 738, 87, 9275, 87, 20472, 82, 6...
local_sdp = SDPSession.new(self._invitation.sdp.active_local) local_sdp.version += 1 removed_streams = [stream for stream in self.streams if stream.index in removed_media_indexes] prev_on_hold_streams = set(stream for stream in self.streams if stream.hold_supported and stream.on_hold_by_remote) for stream in removed_streams:
self.state = 'connected' elif notification.data.state == 'disconnected': if self.state == 'incoming': self.state = 'terminated' if notification.data.originator == 'remote': notification_center.post_notification('SIPSessionDidProcessTransaction', self, TimestampedNotificationData(originator='remote', method='INVITE', code=487, reason='Session Canceled', ack_received='unknown')) notification_center.post_notification('SIPSessionDidFail', self, TimestampedNotificationData(originator='remote', code=487, reason='Session Canceled', failure_reason='user request', redirect_identities=None)) else: notification_center.post_notification('SIPSessionDidFail', self, TimestampedNotificationData(originator='local', code=0, reason=None, failure_reason=notification.data.disconnect_reason, redirect_identities=None)) else: notification_center.post_notification('SIPSessionWillEnd', self, TimestampedNotificationData(originator=notification.data.originator)) for stream in self.streams:
def _NH_SIPInvitationChangedState(self, notification): notification_center = NotificationCenter() if self.greenlet is not None and self.greenlet is not api.getcurrent(): if notification.data.state == 'disconnected' and notification.data.prev_state != 'disconnecting': self._channel.send_exception(InvitationDidFailError(notification.sender, notification.data)) else: self._channel.send(notification) else: if notification.data.state == 'connected' and notification.data.sub_state == 'received_proposal': self.state = 'received_proposal' try: proposed_remote_sdp = self._invitation.sdp.proposed_remote active_remote_sdp = self._invitation.sdp.active_remote for stream in self.streams: if not stream.validate_update(proposed_remote_sdp, stream.index): engine = Engine() self._invitation.send_response(488, extra_headers=[WarningHeader(399, engine.user_agent, 'Failed to update media stream index %d' % stream.index)]) self.state = 'connected' notification_center.post_notification('SIPSessionDidProcessTransaction', self, TimestampedNotificationData(originator='remote', method='INVITE', code=488, reason=sip_status_messages[488], ack_received='unknown')) return # These tests are here because some ALGs mess up the SDP and the behaviour # of pjsip in these situations is unexpected (eg. loss of audio). -Luci for attr in ('user', 'net_type', 'address_type', 'address'): if getattr(proposed_remote_sdp, attr) != getattr(active_remote_sdp, attr): engine = Engine() self._invitation.send_response(488, extra_headers=[WarningHeader(399, engine.user_agent, 'Difference in contents of o= line')]) self.state = 'connected' notification_center.post_notification('SIPSessionDidProcessTransaction', self, TimestampedNotificationData(originator='remote', method='INVITE', code=488, reason=sip_status_messages[488], ack_received='unknown')) return added_media_indexes = set() removed_media_indexes = set() for index, media_stream in enumerate(proposed_remote_sdp.media): if index >= len(active_remote_sdp.media): added_media_indexes.add(index) elif media_stream.media != active_remote_sdp.media[index].media: added_media_indexes.add(index) removed_media_indexes.add(index) elif not media_stream.port and active_remote_sdp.media[index].port: removed_media_indexes.add(index) removed_media_indexes.update(xrange(len(proposed_remote_sdp.media), len(active_remote_sdp.media))) if added_media_indexes and removed_media_indexes: engine = Engine() self._invitation.send_response(488, extra_headers=[WarningHeader(399, engine.user_agent, 'Both removing AND adding a media stream is currently not supported')]) notification_center.post_notification('SIPSessionDidProcessTransaction', self, TimestampedNotificationData(originator='remote', method='INVITE', code=488, reason=sip_status_messages[488], ack_received='unknown')) elif added_media_indexes: self.proposed_streams = [] for index in added_media_indexes: media_stream = proposed_remote_sdp.media[index] if media_stream.port != 0: for stream_type in MediaStreamRegistry(): try: stream = stream_type.new_from_sdp(self.account, proposed_remote_sdp, index) except InvalidStreamError: break except UnknownStreamError: continue else: stream.index = index self.proposed_streams.append(stream) break if self.proposed_streams: self._invitation.send_response(100) notification_center.post_notification('SIPSessionGotProposal', sender=self, data=TimestampedNotificationData(originator='remote', streams=self.proposed_streams)) return else: self._invitation.send_response(488) notification_center.post_notification('SIPSessionDidProcessTransaction', self, TimestampedNotificationData(originator='remote', method='INVITE', code=488, reason=sip_status_messages[488], ack_received='unknown')) else: local_sdp = SDPSession.new(self._invitation.sdp.active_local) local_sdp.version += 1 removed_streams = [stream for stream in self.streams if stream.index in removed_media_indexes] prev_on_hold_streams = set(stream for stream in self.streams if stream.hold_supported and stream.on_hold_by_remote) for stream in removed_streams: notification_center.remove_observer(self, sender=stream) stream.deactivate() self.streams.remove(stream) local_sdp.media[stream.index].port = 0 for stream in self.streams: local_sdp.media[stream.index] = stream.get_local_media(for_offer=False) self._invitation.send_response(200, sdp=local_sdp) for stream in removed_streams: stream.end() notification_center.post_notification('SIPSessionDidProcessTransaction', self, TimestampedNotificationData(originator='remote', method='INVITE', code=200, reason=sip_status_messages[200], ack_received='unknown'))
6da5670f0b72ac50f967cb615c5979d56c795edf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5703/6da5670f0b72ac50f967cb615c5979d56c795edf/session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 50, 44, 67, 17739, 19896, 5033, 1119, 12, 2890, 16, 3851, 4672, 3851, 67, 5693, 273, 8050, 8449, 1435, 309, 365, 18, 11571, 1810, 353, 486, 599, 471, 365, 18, 11571, 1810, 353, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 50, 44, 67, 17739, 19896, 5033, 1119, 12, 2890, 16, 3851, 4672, 3851, 67, 5693, 273, 8050, 8449, 1435, 309, 365, 18, 11571, 1810, 353, 486, 599, 471, 365, 18, 11571, 1810, 353, 48...
con = sqlite.connect(":memory:") cur = con.cursor()
cur = self.con.cursor()
def CheckPragmaAutocommit(self): """ Verifies that running a PRAGMA statement that does an autocommit does work. This did not work in 2.5.3/2.5.4. """ con = sqlite.connect(":memory:") cur = con.cursor() cur.execute("create table foo(bar)") cur.execute("insert into foo(bar) values (5)")
fbd6d66102d78b029d28c9f0068db30b8324be34 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/fbd6d66102d78b029d28c9f0068db30b8324be34/regression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 2050, 9454, 7150, 27159, 12, 2890, 4672, 3536, 6160, 5032, 716, 3549, 279, 11770, 1781, 5535, 3021, 716, 1552, 392, 2059, 27159, 1552, 1440, 18, 1220, 5061, 486, 1440, 316, 576, 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, 2073, 2050, 9454, 7150, 27159, 12, 2890, 4672, 3536, 6160, 5032, 716, 3549, 279, 11770, 1781, 5535, 3021, 716, 1552, 392, 2059, 27159, 1552, 1440, 18, 1220, 5061, 486, 1440, 316, 576, 18, ...
print 'variable selection changed'
def OnVarSelected(self,*args): print 'variable selection changed' selected = self.treeVariables.selectionModel().selectedIndexes() print '%i nodes selected' % len(selected) if len(selected)==0: return node = selected[0].internalPointer() print 'selected node: %s' % node if node.hasChildren(): return varname = node.getId() varpath = '/'.join(node.location) QtGui.QApplication.setOverrideCursor(QtGui.QCursor(QtCore.Qt.WaitCursor)) self.saveFigureSettings() self.varpath = varpath self.figurepanel.figure.setUpdating(False) # Plot; first try stored figures, otherwise plot anew. props = self.figurepanel.figure.properties if not self.result.getFigure('result/'+varpath,props): self.figurepanel.plot(varname,'result') self.figurepanel.figure.setUpdating(True) print 'plot update completed' QtGui.QApplication.restoreOverrideCursor()
388f690b937ee9998c95ea7cac9fbf0a7f9e42e6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/381/388f690b937ee9998c95ea7cac9fbf0a7f9e42e6/visualizer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 1537, 7416, 12, 2890, 16, 14, 1968, 4672, 3170, 273, 365, 18, 3413, 6158, 18, 10705, 1488, 7675, 8109, 8639, 1435, 1172, 1995, 77, 2199, 3170, 11, 738, 562, 12, 8109, 13, 309, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1537, 7416, 12, 2890, 16, 14, 1968, 4672, 3170, 273, 365, 18, 3413, 6158, 18, 10705, 1488, 7675, 8109, 8639, 1435, 1172, 1995, 77, 2199, 3170, 11, 738, 562, 12, 8109, 13, 309, 56...
self.assertEquals(x._objects, {"0": "spam", "1": "foo"})
self.assertEquals(x._objects, {"0": b"spam", "1": b"foo"})
def test_ccharp_struct(self): class X(Structure): _fields_ = [("a", c_char_p), ("b", c_char_p)] x = X() self.assertEquals(x._objects, None)
43cbc5943de9bed3b0b5b3645c16b4089c6df019 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/43cbc5943de9bed3b0b5b3645c16b4089c6df019/test_keeprefs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 71, 3001, 84, 67, 1697, 12, 2890, 4672, 667, 1139, 12, 6999, 4672, 389, 2821, 67, 273, 306, 2932, 69, 3113, 276, 67, 3001, 67, 84, 3631, 7566, 70, 3113, 276, 67, 3001, 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 71, 3001, 84, 67, 1697, 12, 2890, 4672, 667, 1139, 12, 6999, 4672, 389, 2821, 67, 273, 306, 2932, 69, 3113, 276, 67, 3001, 67, 84, 3631, 7566, 70, 3113, 276, 67, 3001, 67, ...
item.SetColumn(self.SecondColumn)
item.SetColumn(self.FileNamePerformerColumn)
def AddItemAtIndex ( self, index, song ): # Add the title column item = wx.ListItem() item.SetId(index) item.SetColumn(self.TitleCol) try: item.SetText(song.Title) except UnicodeError: item.SetText(song.Title.encode('UTF-8', 'replace')) item.SetData(index) self.Playlist.InsertItem(item)
7d6c2cead80b3d812ebc0d6027018fbc93b8714c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12653/7d6c2cead80b3d812ebc0d6027018fbc93b8714c/pykaraoke.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1436, 1180, 24499, 261, 365, 16, 770, 16, 17180, 262, 30, 468, 1436, 326, 2077, 1057, 761, 273, 7075, 18, 13575, 1435, 761, 18, 18523, 12, 1615, 13, 761, 18, 694, 1494, 12, 2890, 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, 1436, 1180, 24499, 261, 365, 16, 770, 16, 17180, 262, 30, 468, 1436, 326, 2077, 1057, 761, 273, 7075, 18, 13575, 1435, 761, 18, 18523, 12, 1615, 13, 761, 18, 694, 1494, 12, 2890, 18, ...
data = self.itkfilter.GetOutput()
data = self.itkfilter.GetOutput()
def execute(self, inputs, update = 0, last = 0): """ Created: 15.04.2006, KP Description: Execute the filter with given inputs and return the output """ if not ProcessingFilter.ProcessingFilter.execute(self, inputs): return None image = self.getInput(1) image = self.convertVTKtoITK(image, cast = types.FloatType) print "Feeding to watershed", image print "parameters=", self.parameters["Threshold"], self.parameters["Level"] self.itkfilter.SetInput(image) self.itkfilter.SetThreshold(self.parameters["Threshold"]) self.itkfilter.SetLevel(self.parameters["Level"]) self.setImageType("UL3") if update: self.itkfilter.Update() print "Updating..." data = self.itkfilter.GetOutput() print "Returning ", data #if last: # return self.convertITKtoVTK(data,imagetype="UL3") return data
6d7b572696d4ecdce2049b45a6e109836f3272c9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/6d7b572696d4ecdce2049b45a6e109836f3272c9/SegmentationFilters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 4540, 16, 1089, 273, 374, 16, 1142, 273, 374, 4672, 3536, 12953, 30, 4711, 18, 3028, 18, 6976, 26, 16, 1475, 52, 6507, 30, 7903, 326, 1034, 598, 864, 4540, 471, 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, 1836, 12, 2890, 16, 4540, 16, 1089, 273, 374, 16, 1142, 273, 374, 4672, 3536, 12953, 30, 4711, 18, 3028, 18, 6976, 26, 16, 1475, 52, 6507, 30, 7903, 326, 1034, 598, 864, 4540, 471, 3...
" LettError, Erik van Blokland, for the \n" " Python for Windows graphic.\n" " http://www.letterror.com/\n" "\n"
def add_ui(db): x = y = 50 w = 370 h = 300 title = "[ProductName] Setup" # see "Dialog Style Bits" modal = 3 # visible | modal modeless = 1 # visible track_disk_space = 32 add_data(db, 'ActionText', uisample.ActionText) add_data(db, 'UIText', uisample.UIText) # Bitmaps if not os.path.exists(srcdir+r"\PC\python_icon.exe"): raise "Run icons.mak in PC directory" add_data(db, "Binary", [("PythonWin", msilib.Binary(srcdir+r"\PCbuild\installer.bmp")), # 152x328 pixels ("py.ico",msilib.Binary(srcdir+r"\PC\py.ico")), ]) add_data(db, "Icon", [("python_icon.exe", msilib.Binary(srcdir+r"\PC\python_icon.exe"))]) # Scripts # CheckDir sets TargetExists if TARGETDIR exists. # UpdateEditIDLE sets the REGISTRY.tcl component into # the installed/uninstalled state according to both the # Extensions and TclTk features. if os.system("nmake /nologo /c /f msisupport.mak") != 0: raise "'nmake /f msisupport.mak' failed" add_data(db, "Binary", [("Script", msilib.Binary("msisupport.dll"))]) # See "Custom Action Type 1" if msilib.Win64: CheckDir = "CheckDir" UpdateEditIDLE = "UpdateEditIDLE" else: CheckDir = "_CheckDir@4" UpdateEditIDLE = "_UpdateEditIDLE@4" add_data(db, "CustomAction", [("CheckDir", 1, "Script", CheckDir)]) if have_tcl: add_data(db, "CustomAction", [("UpdateEditIDLE", 1, "Script", UpdateEditIDLE)]) # UI customization properties add_data(db, "Property", # See "DefaultUIFont Property" [("DefaultUIFont", "DlgFont8"), # See "ErrorDialog Style Bit" ("ErrorDialog", "ErrorDlg"), ("Progress1", "Install"), # modified in maintenance type dlg ("Progress2", "installs"), ("MaintenanceForm_Action", "Repair")]) # Fonts, see "TextStyle Table" add_data(db, "TextStyle", [("DlgFont8", "Tahoma", 9, None, 0), ("DlgFontBold8", "Tahoma", 8, None, 1), #bold ("VerdanaBold10", "Verdana", 10, None, 1), ("VerdanaRed9", "Verdana", 9, 255, 0), ]) compileargs = r"-Wi [TARGETDIR]Lib\compileall.py -f -x bad_coding|badsyntax|site-packages [TARGETDIR]Lib" # See "CustomAction Table" add_data(db, "CustomAction", [ # msidbCustomActionTypeFirstSequence + msidbCustomActionTypeTextData + msidbCustomActionTypeProperty # See "Custom Action Type 51", # "Custom Action Execution Scheduling Options" ("InitialTargetDir", 307, "TARGETDIR", "[WindowsVolume]Python%s%s" % (major, minor)), ("SetDLLDirToTarget", 307, "DLLDIR", "[TARGETDIR]"), ("SetDLLDirToSystem32", 307, "DLLDIR", SystemFolderName), # msidbCustomActionTypeExe + msidbCustomActionTypeSourceFile # See "Custom Action Type 18" ("CompilePyc", 18, "python.exe", compileargs), ("CompilePyo", 18, "python.exe", "-O "+compileargs), ]) # UI Sequences, see "InstallUISequence Table", "Using a Sequence Table" # Numbers indicate sequence; see sequence.py for how these action integrate add_data(db, "InstallUISequence", [("PrepareDlg", "Not Privileged or Windows9x or Installed", 140), ("WhichUsersDlg", "Privileged and not Windows9x and not Installed", 141), ("InitialTargetDir", 'TARGETDIR=""', 750), # In the user interface, assume all-users installation if privileged. ("SetDLLDirToSystem32", 'DLLDIR="" and ' + sys32cond, 751), ("SetDLLDirToTarget", 'DLLDIR="" and not ' + sys32cond, 752), ("SelectDirectoryDlg", "Not Installed", 1230), # XXX no support for resume installations yet #("ResumeDlg", "Installed AND (RESUME OR Preselected)", 1240), ("MaintenanceTypeDlg", "Installed AND NOT RESUME AND NOT Preselected", 1250), ("ProgressDlg", None, 1280)]) add_data(db, "AdminUISequence", [("InitialTargetDir", 'TARGETDIR=""', 750), ("SetDLLDirToTarget", 'DLLDIR=""', 751), ]) # Execute Sequences add_data(db, "InstallExecuteSequence", [("InitialTargetDir", 'TARGETDIR=""', 750), ("SetDLLDirToSystem32", 'DLLDIR="" and ' + sys32cond, 751), ("SetDLLDirToTarget", 'DLLDIR="" and not ' + sys32cond, 752), ("UpdateEditIDLE", None, 1050), ("CompilePyc", "COMPILEALL", 6800), ("CompilePyo", "COMPILEALL", 6801), ]) add_data(db, "AdminExecuteSequence", [("InitialTargetDir", 'TARGETDIR=""', 750), ("SetDLLDirToTarget", 'DLLDIR=""', 751), ("CompilePyc", "COMPILEALL", 6800), ("CompilePyo", "COMPILEALL", 6801), ]) ##################################################################### # Standard dialogs: FatalError, UserExit, ExitDialog fatal=PyDialog(db, "FatalError", x, y, w, h, modal, title, "Finish", "Finish", "Finish") fatal.title("[ProductName] Installer ended prematurely") fatal.back("< Back", "Finish", active = 0) fatal.cancel("Cancel", "Back", active = 0) fatal.text("Description1", 135, 70, 220, 80, 0x30003, "[ProductName] setup ended prematurely because of an error. Your system has not been modified. To install this program at a later time, please run the installation again.") fatal.text("Description2", 135, 155, 220, 20, 0x30003, "Click the Finish button to exit the Installer.") c=fatal.next("Finish", "Cancel", name="Finish") # See "ControlEvent Table". Parameters are the event, the parameter # to the action, and optionally the condition for the event, and the order # of events. c.event("EndDialog", "Exit") user_exit=PyDialog(db, "UserExit", x, y, w, h, modal, title, "Finish", "Finish", "Finish") user_exit.title("[ProductName] Installer was interrupted") user_exit.back("< Back", "Finish", active = 0) user_exit.cancel("Cancel", "Back", active = 0) user_exit.text("Description1", 135, 70, 220, 80, 0x30003, "[ProductName] setup was interrupted. Your system has not been modified. " "To install this program at a later time, please run the installation again.") user_exit.text("Description2", 135, 155, 220, 20, 0x30003, "Click the Finish button to exit the Installer.") c = user_exit.next("Finish", "Cancel", name="Finish") c.event("EndDialog", "Exit") exit_dialog = PyDialog(db, "ExitDialog", x, y, w, h, modal, title, "Finish", "Finish", "Finish") exit_dialog.title("Completing the [ProductName] Installer") exit_dialog.back("< Back", "Finish", active = 0) exit_dialog.cancel("Cancel", "Back", active = 0) exit_dialog.text("Acknowledgements", 135, 95, 220, 120, 0x30003, "Special Windows thanks to:\n" " LettError, Erik van Blokland, for the \n" " Python for Windows graphic.\n" " http://www.letterror.com/\n" "\n" " Mark Hammond, without whose years of freely \n" " shared Windows expertise, Python for Windows \n" " would still be Python for DOS.") c = exit_dialog.text("warning", 135, 200, 220, 40, 0x30003, "{\\VerdanaRed9}Warning: Python 2.5.x is the last " "Python release for Windows 9x.") c.condition("Hide", "NOT Version9X") exit_dialog.text("Description", 135, 235, 220, 20, 0x30003, "Click the Finish button to exit the Installer.") c = exit_dialog.next("Finish", "Cancel", name="Finish") c.event("EndDialog", "Return") ##################################################################### # Required dialog: FilesInUse, ErrorDlg inuse = PyDialog(db, "FilesInUse", x, y, w, h, 19, # KeepModeless|Modal|Visible title, "Retry", "Retry", "Retry", bitmap=False) inuse.text("Title", 15, 6, 200, 15, 0x30003, r"{\DlgFontBold8}Files in Use") inuse.text("Description", 20, 23, 280, 20, 0x30003, "Some files that need to be updated are currently in use.") inuse.text("Text", 20, 55, 330, 50, 3, "The following applications are using files that need to be updated by this setup. Close these applications and then click Retry to continue the installation or Cancel to exit it.") inuse.control("List", "ListBox", 20, 107, 330, 130, 7, "FileInUseProcess", None, None, None) c=inuse.back("Exit", "Ignore", name="Exit") c.event("EndDialog", "Exit") c=inuse.next("Ignore", "Retry", name="Ignore") c.event("EndDialog", "Ignore") c=inuse.cancel("Retry", "Exit", name="Retry") c.event("EndDialog","Retry") # See "Error Dialog". See "ICE20" for the required names of the controls. error = Dialog(db, "ErrorDlg", 50, 10, 330, 101, 65543, # Error|Minimize|Modal|Visible title, "ErrorText", None, None) error.text("ErrorText", 50,9,280,48,3, "") error.control("ErrorIcon", "Icon", 15, 9, 24, 24, 5242881, None, "py.ico", None, None) error.pushbutton("N",120,72,81,21,3,"No",None).event("EndDialog","ErrorNo") error.pushbutton("Y",240,72,81,21,3,"Yes",None).event("EndDialog","ErrorYes") error.pushbutton("A",0,72,81,21,3,"Abort",None).event("EndDialog","ErrorAbort") error.pushbutton("C",42,72,81,21,3,"Cancel",None).event("EndDialog","ErrorCancel") error.pushbutton("I",81,72,81,21,3,"Ignore",None).event("EndDialog","ErrorIgnore") error.pushbutton("O",159,72,81,21,3,"Ok",None).event("EndDialog","ErrorOk") error.pushbutton("R",198,72,81,21,3,"Retry",None).event("EndDialog","ErrorRetry") ##################################################################### # Global "Query Cancel" dialog cancel = Dialog(db, "CancelDlg", 50, 10, 260, 85, 3, title, "No", "No", "No") cancel.text("Text", 48, 15, 194, 30, 3, "Are you sure you want to cancel [ProductName] installation?") cancel.control("Icon", "Icon", 15, 15, 24, 24, 5242881, None, "py.ico", None, None) c=cancel.pushbutton("Yes", 72, 57, 56, 17, 3, "Yes", "No") c.event("EndDialog", "Exit") c=cancel.pushbutton("No", 132, 57, 56, 17, 3, "No", "Yes") c.event("EndDialog", "Return") ##################################################################### # Global "Wait for costing" dialog costing = Dialog(db, "WaitForCostingDlg", 50, 10, 260, 85, modal, title, "Return", "Return", "Return") costing.text("Text", 48, 15, 194, 30, 3, "Please wait while the installer finishes determining your disk space requirements.") costing.control("Icon", "Icon", 15, 15, 24, 24, 5242881, None, "py.ico", None, None) c = costing.pushbutton("Return", 102, 57, 56, 17, 3, "Return", None) c.event("EndDialog", "Exit") ##################################################################### # Preparation dialog: no user input except cancellation prep = PyDialog(db, "PrepareDlg", x, y, w, h, modeless, title, "Cancel", "Cancel", "Cancel") prep.text("Description", 135, 70, 220, 40, 0x30003, "Please wait while the Installer prepares to guide you through the installation.") prep.title("Welcome to the [ProductName] Installer") c=prep.text("ActionText", 135, 110, 220, 20, 0x30003, "Pondering...") c.mapping("ActionText", "Text") c=prep.text("ActionData", 135, 135, 220, 30, 0x30003, None) c.mapping("ActionData", "Text") prep.back("Back", None, active=0) prep.next("Next", None, active=0) c=prep.cancel("Cancel", None) c.event("SpawnDialog", "CancelDlg") ##################################################################### # Target directory selection seldlg = PyDialog(db, "SelectDirectoryDlg", x, y, w, h, modal, title, "Next", "Next", "Cancel") seldlg.title("Select Destination Directory") c = seldlg.text("Existing", 135, 25, 235, 30, 0x30003, "{\VerdanaRed9}This update will replace your existing [ProductLine] installation.") c.condition("Hide", 'REMOVEOLDVERSION="" and REMOVEOLDSNAPSHOT=""') seldlg.text("Description", 135, 50, 220, 40, 0x30003, "Please select a directory for the [ProductName] files.") seldlg.back("< Back", None, active=0) c = seldlg.next("Next >", "Cancel") c.event("DoAction", "CheckDir", "TargetExistsOk<>1", order=1) # If the target exists, but we found that we are going to remove old versions, don't bother # confirming that the target directory exists. Strictly speaking, we should determine that # the target directory is indeed the target of the product that we are going to remove, but # I don't know how to do that. c.event("SpawnDialog", "ExistingDirectoryDlg", 'TargetExists=1 and REMOVEOLDVERSION="" and REMOVEOLDSNAPSHOT=""', 2) c.event("SetTargetPath", "TARGETDIR", 'TargetExists=0 or REMOVEOLDVERSION<>"" or REMOVEOLDSNAPSHOT<>""', 3) c.event("SpawnWaitDialog", "WaitForCostingDlg", "CostingComplete=1", 4) c.event("NewDialog", "SelectFeaturesDlg", 'TargetExists=0 or REMOVEOLDVERSION<>"" or REMOVEOLDSNAPSHOT<>""', 5) c = seldlg.cancel("Cancel", "DirectoryCombo") c.event("SpawnDialog", "CancelDlg") seldlg.control("DirectoryCombo", "DirectoryCombo", 135, 70, 172, 80, 393219, "TARGETDIR", None, "DirectoryList", None) seldlg.control("DirectoryList", "DirectoryList", 135, 90, 208, 136, 3, "TARGETDIR", None, "PathEdit", None) seldlg.control("PathEdit", "PathEdit", 135, 230, 206, 16, 3, "TARGETDIR", None, "Next", None) c = seldlg.pushbutton("Up", 306, 70, 18, 18, 3, "Up", None) c.event("DirectoryListUp", "0") c = seldlg.pushbutton("NewDir", 324, 70, 30, 18, 3, "New", None) c.event("DirectoryListNew", "0") ##################################################################### # SelectFeaturesDlg features = PyDialog(db, "SelectFeaturesDlg", x, y, w, h, modal|track_disk_space, title, "Tree", "Next", "Cancel") features.title("Customize [ProductName]") features.text("Description", 135, 35, 220, 15, 0x30003, "Select the way you want features to be installed.") features.text("Text", 135,45,220,30, 3, "Click on the icons in the tree below to change the way features will be installed.") c=features.back("< Back", "Next") c.event("NewDialog", "SelectDirectoryDlg") c=features.next("Next >", "Cancel") c.mapping("SelectionNoItems", "Enabled") c.event("SpawnDialog", "DiskCostDlg", "OutOfDiskSpace=1", order=1) c.event("EndDialog", "Return", "OutOfDiskSpace<>1", order=2) c=features.cancel("Cancel", "Tree") c.event("SpawnDialog", "CancelDlg") # The browse property is not used, since we have only a single target path (selected already) features.control("Tree", "SelectionTree", 135, 75, 220, 95, 7, "_BrowseProperty", "Tree of selections", "Back", None) #c=features.pushbutton("Reset", 42, 243, 56, 17, 3, "Reset", "DiskCost") #c.mapping("SelectionNoItems", "Enabled") #c.event("Reset", "0") features.control("Box", "GroupBox", 135, 170, 225, 90, 1, None, None, None, None) c=features.xbutton("DiskCost", "Disk &Usage", None, 0.10) c.mapping("SelectionNoItems","Enabled") c.event("SpawnDialog", "DiskCostDlg") c=features.xbutton("Advanced", "Advanced", None, 0.30) c.event("SpawnDialog", "AdvancedDlg") c=features.text("ItemDescription", 140, 180, 210, 30, 3, "Multiline description of the currently selected item.") c.mapping("SelectionDescription","Text") c=features.text("ItemSize", 140, 210, 210, 45, 3, "The size of the currently selected item.") c.mapping("SelectionSize", "Text") ##################################################################### # Disk cost cost = PyDialog(db, "DiskCostDlg", x, y, w, h, modal, title, "OK", "OK", "OK", bitmap=False) cost.text("Title", 15, 6, 200, 15, 0x30003, "{\DlgFontBold8}Disk Space Requirements") cost.text("Description", 20, 20, 280, 20, 0x30003, "The disk space required for the installation of the selected features.") cost.text("Text", 20, 53, 330, 60, 3, "The highlighted volumes (if any) do not have enough disk space " "available for the currently selected features. You can either " "remove some files from the highlighted volumes, or choose to " "install less features onto local drive(s), or select different " "destination drive(s).") cost.control("VolumeList", "VolumeCostList", 20, 100, 330, 150, 393223, None, "{120}{70}{70}{70}{70}", None, None) cost.xbutton("OK", "Ok", None, 0.5).event("EndDialog", "Return") ##################################################################### # WhichUsers Dialog. Only available on NT, and for privileged users. # This must be run before FindRelatedProducts, because that will # take into account whether the previous installation was per-user # or per-machine. We currently don't support going back to this # dialog after "Next" was selected; to support this, we would need to # find how to reset the ALLUSERS property, and how to re-run # FindRelatedProducts. # On Windows9x, the ALLUSERS property is ignored on the command line # and in the Property table, but installer fails according to the documentation # if a dialog attempts to set ALLUSERS. whichusers = PyDialog(db, "WhichUsersDlg", x, y, w, h, modal, title, "AdminInstall", "Next", "Cancel") whichusers.title("Select whether to install [ProductName] for all users of this computer.") # A radio group with two options: allusers, justme g = whichusers.radiogroup("AdminInstall", 135, 60, 160, 50, 3, "WhichUsers", "", "Next") g.add("ALL", 0, 5, 150, 20, "Install for all users") g.add("JUSTME", 0, 25, 150, 20, "Install just for me") whichusers.back("Back", None, active=0) c = whichusers.next("Next >", "Cancel") c.event("[ALLUSERS]", "1", 'WhichUsers="ALL"', 1) c.event("EndDialog", "Return", order = 2) c = whichusers.cancel("Cancel", "AdminInstall") c.event("SpawnDialog", "CancelDlg") ##################################################################### # Advanced Dialog. advanced = PyDialog(db, "AdvancedDlg", x, y, w, h, modal, title, "CompilePyc", "Next", "Cancel") advanced.title("Advanced Options for [ProductName]") # A radio group with two options: allusers, justme advanced.checkbox("CompilePyc", 135, 60, 230, 50, 3, "COMPILEALL", "Compile .py files to byte code after installation", "Next") c = advanced.next("Finish", "Cancel") c.event("EndDialog", "Return") c = advanced.cancel("Cancel", "CompilePyc") c.event("SpawnDialog", "CancelDlg") ##################################################################### # Existing Directory dialog dlg = Dialog(db, "ExistingDirectoryDlg", 50, 30, 200, 80, modal, title, "No", "No", "No") dlg.text("Title", 10, 20, 180, 40, 3, "[TARGETDIR] exists. Are you sure you want to overwrite existing files?") c=dlg.pushbutton("Yes", 30, 60, 55, 17, 3, "Yes", "No") c.event("[TargetExists]", "0", order=1) c.event("[TargetExistsOk]", "1", order=2) c.event("EndDialog", "Return", order=3) c=dlg.pushbutton("No", 115, 60, 55, 17, 3, "No", "Yes") c.event("EndDialog", "Return") ##################################################################### # Installation Progress dialog (modeless) progress = PyDialog(db, "ProgressDlg", x, y, w, h, modeless, title, "Cancel", "Cancel", "Cancel", bitmap=False) progress.text("Title", 20, 15, 200, 15, 0x30003, "{\DlgFontBold8}[Progress1] [ProductName]") progress.text("Text", 35, 65, 300, 30, 3, "Please wait while the Installer [Progress2] [ProductName]. " "This may take several minutes.") progress.text("StatusLabel", 35, 100, 35, 20, 3, "Status:") c=progress.text("ActionText", 70, 100, w-70, 20, 3, "Pondering...") c.mapping("ActionText", "Text") #c=progress.text("ActionData", 35, 140, 300, 20, 3, None) #c.mapping("ActionData", "Text") c=progress.control("ProgressBar", "ProgressBar", 35, 120, 300, 10, 65537, None, "Progress done", None, None) c.mapping("SetProgress", "Progress") progress.back("< Back", "Next", active=False) progress.next("Next >", "Cancel", active=False) progress.cancel("Cancel", "Back").event("SpawnDialog", "CancelDlg") # Maintenance type: repair/uninstall maint = PyDialog(db, "MaintenanceTypeDlg", x, y, w, h, modal, title, "Next", "Next", "Cancel") maint.title("Welcome to the [ProductName] Setup Wizard") maint.text("BodyText", 135, 63, 230, 42, 3, "Select whether you want to repair or remove [ProductName].") g=maint.radiogroup("RepairRadioGroup", 135, 108, 230, 60, 3, "MaintenanceForm_Action", "", "Next") g.add("Change", 0, 0, 200, 17, "&Change [ProductName]") g.add("Repair", 0, 18, 200, 17, "&Repair [ProductName]") g.add("Remove", 0, 36, 200, 17, "Re&move [ProductName]") maint.back("< Back", None, active=False) c=maint.next("Finish", "Cancel") # Change installation: Change progress dialog to "Change", then ask # for feature selection c.event("[Progress1]", "Change", 'MaintenanceForm_Action="Change"', 1) c.event("[Progress2]", "changes", 'MaintenanceForm_Action="Change"', 2) # Reinstall: Change progress dialog to "Repair", then invoke reinstall # Also set list of reinstalled features to "ALL" c.event("[REINSTALL]", "ALL", 'MaintenanceForm_Action="Repair"', 5) c.event("[Progress1]", "Repairing", 'MaintenanceForm_Action="Repair"', 6) c.event("[Progress2]", "repairs", 'MaintenanceForm_Action="Repair"', 7) c.event("Reinstall", "ALL", 'MaintenanceForm_Action="Repair"', 8) # Uninstall: Change progress to "Remove", then invoke uninstall # Also set list of removed features to "ALL" c.event("[REMOVE]", "ALL", 'MaintenanceForm_Action="Remove"', 11) c.event("[Progress1]", "Removing", 'MaintenanceForm_Action="Remove"', 12) c.event("[Progress2]", "removes", 'MaintenanceForm_Action="Remove"', 13) c.event("Remove", "ALL", 'MaintenanceForm_Action="Remove"', 14) # Close dialog when maintenance action scheduled c.event("EndDialog", "Return", 'MaintenanceForm_Action<>"Change"', 20) c.event("NewDialog", "SelectFeaturesDlg", 'MaintenanceForm_Action="Change"', 21) maint.cancel("Cancel", "RepairRadioGroup").event("SpawnDialog", "CancelDlg")
33fd0774ce3cc2ca314f09138dd5d38e17286784 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/33fd0774ce3cc2ca314f09138dd5d38e17286784/msi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 4881, 12, 1966, 4672, 619, 273, 677, 273, 6437, 341, 273, 890, 7301, 366, 273, 11631, 2077, 273, 5158, 4133, 461, 65, 10939, 6, 225, 468, 2621, 315, 6353, 9767, 18690, 6, 1301...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 4881, 12, 1966, 4672, 619, 273, 677, 273, 6437, 341, 273, 890, 7301, 366, 273, 11631, 2077, 273, 5158, 4133, 461, 65, 10939, 6, 225, 468, 2621, 315, 6353, 9767, 18690, 6, 1301...
taskName = "AvatarControls%s"%(id(self),)
taskName = "AvatarControls-%s"%(id(self),)
def disableAvatarControls(self): """ Ignore the arrow keys, etc. """ assert(self.debugPrint("disableAvatarControls")) taskName = "AvatarControls%s"%(id(self),) taskMgr.remove(taskName)
018270a4e31f463af03b2fa3f806409b428cc147 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/018270a4e31f463af03b2fa3f806409b428cc147/NonPhysicsWalker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4056, 23999, 16795, 12, 2890, 4672, 3536, 8049, 326, 12274, 1311, 16, 5527, 18, 3536, 1815, 12, 2890, 18, 4148, 5108, 2932, 8394, 23999, 16795, 6, 3719, 20172, 273, 315, 23999, 16795, 6456...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4056, 23999, 16795, 12, 2890, 4672, 3536, 8049, 326, 12274, 1311, 16, 5527, 18, 3536, 1815, 12, 2890, 18, 4148, 5108, 2932, 8394, 23999, 16795, 6, 3719, 20172, 273, 315, 23999, 16795, 6456...
for source_dir, dest_dir in [(src_dir, dest_src_dir), (build_dir, dest_build_dir)]:
bundle_build_dirs = [] bundle_editable_dirs = [] for source_dir, dest_dir, dir_collection in [ (src_dir, dest_src_dir, bundle_editable_dirs), (build_dir, dest_build_dir, bundle_build_dirs)]:
def move_bundle_files(self, dest_build_dir, dest_src_dir): base = self._temp_build_dir assert base src_dir = os.path.join(base, 'src') build_dir = os.path.join(base, 'build') for source_dir, dest_dir in [(src_dir, dest_src_dir), (build_dir, dest_build_dir)]: if os.path.exists(source_dir): for dirname in os.listdir(source_dir): dest = os.path.join(dest_dir, dirname) if os.path.exists(dest): logger.warn('The directory %s (containing package %s) already exists; cannot move source from bundle %s' % (dest, dirname, self)) continue if not os.path.exists(dest_dir): logger.info('Creating directory %s' % dest_dir) os.makedirs(dest_dir) shutil.move(os.path.join(source_dir, dirname), dest)
3cc8c7972cf79da39a22d1c562a62b591fb6d792 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12982/3cc8c7972cf79da39a22d1c562a62b591fb6d792/pip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 67, 9991, 67, 2354, 12, 2890, 16, 1570, 67, 3510, 67, 1214, 16, 1570, 67, 4816, 67, 1214, 4672, 1026, 273, 365, 6315, 5814, 67, 3510, 67, 1214, 1815, 1026, 1705, 67, 1214, 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, 3635, 67, 9991, 67, 2354, 12, 2890, 16, 1570, 67, 3510, 67, 1214, 16, 1570, 67, 4816, 67, 1214, 4672, 1026, 273, 365, 6315, 5814, 67, 3510, 67, 1214, 1815, 1026, 1705, 67, 1214, 273, ...
red = lamp.col[0] green = lamp.col[1] blue = lamp.col[2]
def export_lights(lmp): # only lamps type 0, 1 and 4 supported at the moment # lamp types are: 0 - Lamp, 1 - Sun, 2 - Spot, 3 - Hemi, 4 - Area # Spots are replaced by directional (cylinrical) lights: adjust dist as close as possible to the ground receiving the # cone of light if you want Radius as close as possible lamp = lmp.getData() print "o exporting lamps" if lamp.type == 0: print " o exporting lamp "+lmp.name+"..." # get the rgb component for the lamp red = lamp.col[0] green = lamp.col[1] blue = lamp.col[2] power = lamp.energy * LAMPPOWER.val # get the location of the lamp objmatrix = lmp.matrix lampV = Mathutils.Vector([0, 0, 0, 1]) lampV = lampV * objmatrix FILE.write("\n\nlight {\n") FILE.write("\ttype point\n") FILE.write("\tcolor { \"sRGB nonlinear\" %.3f %.3f %.3f }\n" % (red, green, blue)) FILE.write("\tpower %s\n" % (power)) FILE.write("\tp %s %s %s\n" % (lampV[0], lampV[1], lampV[2])) FILE.write("}") elif lamp.type == 1: if IMP_SUN.val == 1: print " o exporting sun-light "+lmp.name+"..." invmatrix = Mathutils.Matrix(lmp.getInverseMatrix()) FILE.write("\nlight {\n") FILE.write("\ttype sunsky\n") FILE.write("\tup 0 0 1\n") FILE.write("\teast 0 1 0\n") FILE.write("\tsundir %f %f %f\n" % (invmatrix[0][2], invmatrix[1][2], invmatrix[2][2])) FILE.write("\tturbidity %s\n" % SUN_TURB.val) FILE.write("\tsamples %s\n" % SUN_SAMPLES.val) FILE.write("}") else: print " o exporting lamp "+lmp.name+"..." # get the rgb component for the lamp red = lamp.col[0] green = lamp.col[1] blue = lamp.col[2] power = lamp.energy * LAMPPOWER.val # get the location of the lamp objmatrix = lmp.matrix lampV = Mathutils.Vector([0, 0, 0, 1]) lampV = lampV * objmatrix FILE.write("\n\nlight {\n") FILE.write("\ttype point\n") FILE.write("\tcolor { \"sRGB nonlinear\" %.3f %.3f %.3f }\n" % (red, green, blue)) FILE.write("\tpower %s\n" % (power)) FILE.write("\tp %s %s %s\n" % (lampV[0], lampV[1], lampV[2])) FILE.write("}") elif lamp.type == 4: print " o exporting area-light "+lmp.name+"..." objmatrix = lmp.matrix xsize = lamp.areaSizeX * 0.5 if lamp.areaSizeY: # If rectangular area: print "o exporting rectangular area-light "+lmp.name+"..." ysize = lamp.areaSizeY * 0.5 else: # Else, square area: print "o exporting square area-light "+lmp.name+"..." ysize = xsize lampV0 = Mathutils.Vector([-xsize, ysize, 0, 1]) lampV1 = Mathutils.Vector([ xsize, ysize, 0, 1]) lampV2 = Mathutils.Vector([ xsize, -ysize, 0, 1]) lampV3 = Mathutils.Vector([-xsize, -ysize, 0, 1]) lampV0 = lampV0 * objmatrix lampV1 = lampV1 * objmatrix lampV2 = lampV2 * objmatrix lampV3 = lampV3 * objmatrix red = lamp.col[0] green = lamp.col[1] blue = lamp.col[2] radiance = lamp.energy * MESHLIGHTPOWER.val FILE.write("\n\nlight {\n") FILE.write("\ttype meshlight\n") FILE.write("\tname \"%s\"\n" % (lmp.name)) FILE.write("\temit { \"sRGB nonlinear\" %.3f %.3f %.3f }\n" % (red, green, blue)) FILE.write("\tradiance %s\n" % (radiance)) FILE.write("\tsamples %s\n" % DSAMPLES.val) FILE.write("\tpoints 4\n") FILE.write("\t\t%s %s %s\n" % (lampV0[0], lampV0[1], lampV0[2])) FILE.write("\t\t%s %s %s\n" % (lampV1[0], lampV1[1], lampV1[2])) FILE.write("\t\t%s %s %s\n" % (lampV2[0], lampV2[1], lampV2[2])) FILE.write("\t\t%s %s %s\n" % (lampV3[0], lampV3[1], lampV3[2])) FILE.write("\ttriangles 2\n") FILE.write("\t\t0 1 2\n") FILE.write("\t\t0 2 3\n") FILE.write("}") elif lamp.type == 2: print " o exporting spotlight "+lmp.name+"..." objmatrix = lmp.matrix targetV = Mathutils.Vector([0, 0, -1, 1]) targetV = targetV * objmatrix lampV = Mathutils.Vector([0, 0, 0, 1]) lampV = lampV * objmatrix angle = lamp.getSpotSize()*pi/360 dist = lamp.getDist() radius = dist/cos(angle)*sin(angle) red = lamp.col[0] green = lamp.col[1] blue = lamp.col[2] radiance = lamp.energy * LAMPPOWER.val FILE.write("\n\nlight {\n") FILE.write("\ttype directional\n") FILE.write("\tsource %s %s %s\n" % (lampV[0], lampV[1], lampV[2])) FILE.write("\ttarget %s %s %s\n" % (targetV[0], targetV[1], targetV[2])) FILE.write("\tradius %s\n" % (radius)) FILE.write("\temit { \"sRGB nonlinear\" %.3f %.3f %.3f }\n" % (red, green, blue)) FILE.write("}") elif lamp.type == 3: print " o exporting spherical light "+lmp.name+"..." objmatrix = lmp.matrix lampV = Mathutils.Vector([0, 0, 0, 1]) lampV = lampV * objmatrix dist = lamp.getDist() red = lamp.col[0] green = lamp.col[1] blue = lamp.col[2] power = lamp.energy * LAMPPOWER.val FILE.write("\n\nlight {\n") FILE.write("\ttype spherical\n") FILE.write("\tcolor { \"sRGB nonlinear\" %.3f %.3f %.3f }\n" % (red, green, blue)) FILE.write("\tradiance %s\n" % (power)) FILE.write("\tcenter %s %s %s\n" % (lampV[0], lampV[1], lampV[2])) FILE.write("\tradius %s\n" % (dist)) FILE.write("\tsamples %s\n" % DSAMPLES.val) FILE.write("}") else: print "Unsupported type lamp detected" if CONVLAMP.val == 1: print " o exporting lamp "+lmp.name+"..." # get the rgb component for the lamp red = lamp.col[0] green = lamp.col[1] blue = lamp.col[2] power = lamp.energy * LAMPPOWER.val # get the location of the lamp objmatrix = lmp.matrix lampV = Mathutils.Vector([0, 0, 0, 1]) lampV = lampV * objmatrix FILE.write("\n\nlight {\n") FILE.write("\ttype point\n") FILE.write("\tcolor { \"sRGB nonlinear\" %.3f %.3f %.3f }\n" % (red, green, blue)) FILE.write("\tpower %s\n" % (power)) FILE.write("\tp %s %s %s\n" % (lampV[0], lampV[1], lampV[2])) FILE.write("}")
223dfc1c7b8557f033095eceba9a38be84b7749e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12400/223dfc1c7b8557f033095eceba9a38be84b7749e/sunflow_export.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 5099, 87, 12, 80, 1291, 4672, 468, 1338, 328, 25508, 618, 374, 16, 404, 471, 1059, 3260, 622, 326, 10382, 468, 328, 931, 1953, 854, 30, 374, 300, 511, 931, 16, 404, 300, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 5099, 87, 12, 80, 1291, 4672, 468, 1338, 328, 25508, 618, 374, 16, 404, 471, 1059, 3260, 622, 326, 10382, 468, 328, 931, 1953, 854, 30, 374, 300, 511, 931, 16, 404, 300, 31...
def parse_comment(self, i):
def parse_comment(self, i, report=1):
def parse_comment(self, i): rawdata = self.rawdata assert rawdata[i:i+4] == '<!--', 'unexpected call to parse_comment()' match = commentclose.search(rawdata, i+4) if not match: return -1 j = match.start() self.handle_comment(rawdata[i+4: j]) j = match.end() return j
e1f1b158a9a19e3889890db85d5e537716820815 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e1f1b158a9a19e3889890db85d5e537716820815/HTMLParser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 3469, 12, 2890, 16, 277, 16, 2605, 33, 21, 4672, 1831, 892, 273, 365, 18, 1899, 892, 1815, 1831, 892, 63, 77, 30, 77, 15, 24, 65, 422, 2368, 22772, 2187, 296, 21248, 745, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 3469, 12, 2890, 16, 277, 16, 2605, 33, 21, 4672, 1831, 892, 273, 365, 18, 1899, 892, 1815, 1831, 892, 63, 77, 30, 77, 15, 24, 65, 422, 2368, 22772, 2187, 296, 21248, 745, ...
import base64
def asBase64(self): import base64 return base64.encodestring(self.data)
95387a18956b2ab60709a79aaa93cfddec8978d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/95387a18956b2ab60709a79aaa93cfddec8978d9/plistlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 487, 2171, 1105, 12, 2890, 4672, 327, 1026, 1105, 18, 1331, 1145, 371, 12, 2890, 18, 892, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 487, 2171, 1105, 12, 2890, 4672, 327, 1026, 1105, 18, 1331, 1145, 371, 12, 2890, 18, 892, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
else:
elif self.display == 2: table = "schTASK"
def start(self, stdscr): ring = 0 if curses.has_colors(): curses.start_color() curses.init_pair(8, curses.COLOR_WHITE, curses.COLOR_BLACK) curses.init_pair(1, curses.COLOR_WHITE, curses.COLOR_RED) curses.init_pair(2, curses.COLOR_GREEN, curses.COLOR_BLACK) curses.init_pair(3, curses.COLOR_MAGENTA, curses.COLOR_BLACK) curses.init_pair(4, curses.COLOR_RED, curses.COLOR_BLACK) curses.init_pair(5, curses.COLOR_BLUE, curses.COLOR_BLACK) curses.init_pair(6, curses.COLOR_CYAN, curses.COLOR_BLACK) curses.init_pair(7, curses.COLOR_YELLOW, curses.COLOR_BLACK)
621e32812dd0bb7f178db346fc028225f40d7a3d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/621e32812dd0bb7f178db346fc028225f40d7a3d/bibsched.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 16, 2044, 24638, 4672, 9221, 273, 374, 309, 30436, 18, 5332, 67, 9724, 13332, 30436, 18, 1937, 67, 3266, 1435, 30436, 18, 2738, 67, 6017, 12, 28, 16, 30436, 18, 10989, 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, 787, 12, 2890, 16, 2044, 24638, 4672, 9221, 273, 374, 309, 30436, 18, 5332, 67, 9724, 13332, 30436, 18, 1937, 67, 3266, 1435, 30436, 18, 2738, 67, 6017, 12, 28, 16, 30436, 18, 10989, 6...
shutil.rmtree('tmp/tmp')
try: shutil.rmtree('tmp/tmp') except: reason = 'Cannot remove tmp/tmp for drv = %s, nBands = %d, datatype = %s' % (drv.ShortName, nBands, gdal.GetDataTypeName(datatype)) gdaltest.post_reason(reason) return
def misc_5_internal(drv, datatype, nBands): #print 'drv = %s, nBands = %d, datatype = %s' % (drv.ShortName, nBands, gdal.GetDataTypeName(datatype)) os.mkdir('tmp/tmp') ds = drv.Create('tmp/tmp/foo', 100, 100, nBands, datatype) ds = None shutil.rmtree('tmp/tmp') return
6b534427e9ae64c95c4f17a9e5c73617b473475e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10289/6b534427e9ae64c95c4f17a9e5c73617b473475e/misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20448, 67, 25, 67, 7236, 12, 3069, 90, 16, 11172, 16, 290, 26554, 4672, 468, 1188, 296, 3069, 90, 273, 738, 87, 16, 290, 26554, 273, 738, 72, 16, 11172, 273, 738, 87, 11, 738, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20448, 67, 25, 67, 7236, 12, 3069, 90, 16, 11172, 16, 290, 26554, 4672, 468, 1188, 296, 3069, 90, 273, 738, 87, 16, 290, 26554, 273, 738, 72, 16, 11172, 273, 738, 87, 11, 738, 261, ...
return wc.i18n.get_translator(configdata.name, get_locdir(), lang,
return wc.i18n.get_translator(configdata.name, get_locdir(), [lang],
def get_translator (lang, translatorklass=None, fallbackklass=None): """ Return translator class. """ return wc.i18n.get_translator(configdata.name, get_locdir(), lang, translatorklass=translatorklass, fallback=True, fallbackklass=fallbackklass)
9b66c74660f2ae074fc1a8c43455209d7caf485c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/9b66c74660f2ae074fc1a8c43455209d7caf485c/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 17879, 261, 4936, 16, 8333, 22626, 33, 7036, 16, 5922, 22626, 33, 7036, 4672, 3536, 2000, 8333, 667, 18, 3536, 327, 14310, 18, 77, 2643, 82, 18, 588, 67, 17879, 12, 1425, 892,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17879, 261, 4936, 16, 8333, 22626, 33, 7036, 16, 5922, 22626, 33, 7036, 4672, 3536, 2000, 8333, 667, 18, 3536, 327, 14310, 18, 77, 2643, 82, 18, 588, 67, 17879, 12, 1425, 892,...
sage: sage.combinat.set_partition._listbloc(2,2,[1,2,3,4]) == l
sage: list(sage.combinat.set_partition._listbloc(2,2,[1,2,3,4])) == l
def _listbloc(n, nbrepets, listint=None): """ listbloc decomposes a set of n*nbrepets integers (the list listint) in nbrepets parts. It is used in the algorithm to generate all set partitions. Not to be called by the user. EXAMPLES: sage: sage.combinat.set_partition._listbloc(2,1) [{{1, 2}}] sage: l = [Set([Set([3, 4]), Set([1, 2])]), Set([Set([2, 4]), Set([1, 3])]), Set([Set([2, 3]), Set([1, 4])])] sage: sage.combinat.set_partition._listbloc(2,2,[1,2,3,4]) == l True """ if isinstance(listint, (int, sage.rings.integer.Integer)) or listint is None: listint = Set(range(1,n+1)) if nbrepets == 1: return [Set([listint])] l = __builtin__.list(listint) l.sort() smallest = Set(l[:1]) new_listint = Set(l[1:]) f = lambda u, v: u.union(_set_union([smallest,v])) res = [] for ssens in subset.Subsets(new_listint, n-1): for z in _listbloc(n, nbrepets-1, new_listint-ssens): res.append(f(z,ssens)) return res
9a6b5050d0dd868fd1f7db43e417529babaf7e6d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/9a6b5050d0dd868fd1f7db43e417529babaf7e6d/set_partition.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1098, 70, 1829, 12, 82, 16, 4264, 14462, 2413, 16, 666, 474, 33, 7036, 4672, 3536, 666, 70, 1829, 9862, 10522, 279, 444, 434, 290, 14, 82, 6073, 84, 2413, 12321, 261, 5787, 666, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1098, 70, 1829, 12, 82, 16, 4264, 14462, 2413, 16, 666, 474, 33, 7036, 4672, 3536, 666, 70, 1829, 9862, 10522, 279, 444, 434, 290, 14, 82, 6073, 84, 2413, 12321, 261, 5787, 666, ...
"""
def sqr(x, wait=0.0): time.sleep(wait) return x*x
9cbd5a7ebf2e75965579f3919b8cd9004fbf3411 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/9cbd5a7ebf2e75965579f3919b8cd9004fbf3411/test_multiprocessing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4744, 86, 12, 92, 16, 2529, 33, 20, 18, 20, 4672, 813, 18, 19607, 12, 7048, 13, 327, 619, 14, 92, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4744, 86, 12, 92, 16, 2529, 33, 20, 18, 20, 4672, 813, 18, 19607, 12, 7048, 13, 327, 619, 14, 92, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if context is None: context = {} id = self.search(cr, uid, [('user_id', '=', context.get('user_id', uid))], context=context) if id: journal = self.browse(cr, uid, id[0], context=context) if journal.journal_id: return journal.journal_id.id
md = self.pool.get('ir.model.data') try: result = md.get_object_reference(cr, uid, 'hr_timesheet', 'analytic_journal') return result[1] except ValueError, e: pass
def _getAnalyticJournal(self, cr, uid, context=None): if context is None: context = {} id = self.search(cr, uid, [('user_id', '=', context.get('user_id', uid))], context=context) if id: journal = self.browse(cr, uid, id[0], context=context) if journal.journal_id: return journal.journal_id.id return False
e61f615c7b892b10c291f8e43cb27f000cc3d6db /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/e61f615c7b892b10c291f8e43cb27f000cc3d6db/hr_timesheet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 979, 7834, 335, 16336, 12, 2890, 16, 4422, 16, 4555, 16, 819, 33, 7036, 4672, 3481, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 2284, 18, 892, 6134, 775, 30, 563, 273, 3481...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 979, 7834, 335, 16336, 12, 2890, 16, 4422, 16, 4555, 16, 819, 33, 7036, 4672, 3481, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 2284, 18, 892, 6134, 775, 30, 563, 273, 3481...
if fc != bc:
if fc != bc and fc != (bc[1], bc[0]):
def offset(freemanCodes, index, closed = True): fc = searchForwardQuadrant(freemanCodes, index, closed) bc = searchBackwardQuadrant(freemanCodes, index, closed) assert type(fc) == tuple and type(bc) == tuple if fc != bc: return Vector2(0, 0) dsl, ofs = tangentDSL(freemanCodes, index, closed) #dsl.convert8to4() alpha = (2.*dsl.pos+dsl.b-1)/(2*dsl.b) q = quadrant(*fc) if q == 0: print ofs, index, fc, bc, dsl return Vector2( alpha, -alpha) elif True: return Vector2(0, 0) elif q == 1: return Vector2(-alpha, -alpha) elif q == 2: return Vector2(-alpha, alpha) else: return Vector2( alpha, alpha)
b21e1a58e23598e8d5ffe0fe9bfec5020788028a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/b21e1a58e23598e8d5ffe0fe9bfec5020788028a/dsl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1384, 12, 74, 266, 351, 304, 6295, 16, 770, 16, 4375, 273, 1053, 4672, 8036, 273, 1623, 8514, 24483, 6890, 12, 74, 266, 351, 304, 6295, 16, 770, 16, 4375, 13, 6533, 273, 1623, 26283, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1384, 12, 74, 266, 351, 304, 6295, 16, 770, 16, 4375, 273, 1053, 4672, 8036, 273, 1623, 8514, 24483, 6890, 12, 74, 266, 351, 304, 6295, 16, 770, 16, 4375, 13, 6533, 273, 1623, 26283, ...
_namecheck_rgx = re.compile('([_a-zA-Z][_a-zA-Z0-9]*)+(\.[_a-zA-Z][_a-zA-Z0-9]*)*')
_namecheck_rgx = re.compile( '([_a-zA-Z][_a-zA-Z0-9]*)+(\.[_a-zA-Z][_a-zA-Z0-9]*)*')
def set(self, object, name, value): if self.iostatus is 'out': raise TraitError('%s is an output trait and cannot be set' % name) if self.trait: value = self.trait.validate(object, name, value) setattr(self._ref() or self._resolve(object), self._last_name, value)
8586d67f5d42158f614b7fc3ff6c91066cfdb680 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12610/8586d67f5d42158f614b7fc3ff6c91066cfdb680/container.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12, 2890, 16, 733, 16, 508, 16, 460, 4672, 309, 365, 18, 77, 669, 996, 353, 296, 659, 4278, 1002, 2197, 305, 668, 29909, 87, 353, 392, 876, 13517, 471, 2780, 506, 444, 11, 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, 444, 12, 2890, 16, 733, 16, 508, 16, 460, 4672, 309, 365, 18, 77, 669, 996, 353, 296, 659, 4278, 1002, 2197, 305, 668, 29909, 87, 353, 392, 876, 13517, 471, 2780, 506, 444, 11, 738, ...
t.type,
t.type_id,
def init(self, cr): tools.sql.drop_view_if_exists(cr, 'report_project_task_user') cr.execute(""" CREATE view report_project_task_user as SELECT (select 1 ) AS nbr, t.id as id, to_char(date_start, 'YYYY') as year, to_char(date_start, 'MM') as month, to_char(date_start, 'YYYY-MM-DD') as day, date_trunc('day',t.date_start) as date_start, date_trunc('day',t.date_end) as date_end, to_date(to_char(t.date_deadline, 'dd-MM-YYYY'),'dd-MM-YYYY') as date_deadline,
233223b2a5102d950d6803b118283109f97dbb94 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/233223b2a5102d950d6803b118283109f97dbb94/project_report.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 12, 2890, 16, 4422, 4672, 8513, 18, 4669, 18, 7285, 67, 1945, 67, 430, 67, 1808, 12, 3353, 16, 296, 6006, 67, 4406, 67, 4146, 67, 1355, 6134, 4422, 18, 8837, 2932, 3660, 13278, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 12, 2890, 16, 4422, 4672, 8513, 18, 4669, 18, 7285, 67, 1945, 67, 430, 67, 1808, 12, 3353, 16, 296, 6006, 67, 4406, 67, 4146, 67, 1355, 6134, 4422, 18, 8837, 2932, 3660, 13278, ...
iax.appendValue(self, "host", "defaultip")
if self.host != '': iax.appendValue(self, "host", "defaultip")
def createAsteriskConfig(self): needModule("res_crypto") needModule("chan_iax2") iax = AstConf("iax.conf") iax.setSection(self.name) iax.append("type=friend") iax.appendValue(self, "secret") iax.append("host=dynamic") iax.appendValue(self, "host", "defaultip") iax.append("context=out-%s" % self.name) if self.calleridname and self.calleridnum: iax.append('callerid="%s" <%s>' % (self.calleridname, self.calleridnum)) elif self.calleridname: iax.append('callerid="%s"' % self.calleridname) elif self.calleridnum: iax.append('callerid=<%s>' % self.calleridnum) if self.enablecallgroup: iax.append('callgroup=%s' % self.callgroup) iax.append('pickupgroup=%s' % self.callgroup)
70efb43ead493334ac1159933394ce60894cd584 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2627/70efb43ead493334ac1159933394ce60894cd584/cfg_phone_iax.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 37, 8190, 10175, 809, 12, 2890, 4672, 1608, 3120, 2932, 455, 67, 18489, 7923, 1608, 3120, 2932, 7472, 67, 77, 651, 22, 7923, 225, 277, 651, 273, 16614, 3976, 2932, 77, 651, 18, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 37, 8190, 10175, 809, 12, 2890, 4672, 1608, 3120, 2932, 455, 67, 18489, 7923, 1608, 3120, 2932, 7472, 67, 77, 651, 22, 7923, 225, 277, 651, 273, 16614, 3976, 2932, 77, 651, 18, 39...
from docutils.core import publih_string
from docutils.core import publish_string
def setSaneLocale(localestring=''): """Set a sane local configuration for LC_NUMERIC. `locale` is the locale string to be set, e.g. 'en_US.UTF-8' This will change the ``LC_ALL`` setting to the specified string, and set the ``LC_NUMBERIC`` to 'C'. Changing the LC_NUMERIC setting is a very bad idea! It makes floating point values to be read or written with a comma instead of a the decimal point. Of course this makes input and output files completely incompatible. You will often not be able to process these files any further and create a lot of troubles for yourself and other people if you use an LC_NUMERIC setting different from the standard. Because we do not want to help you shoot yourself in the foot, this function always sets ``LC_NUMERIC`` back to a sane value and we call this function when pyFormex is starting up. """ import locale locale.setlocale(locale.LC_ALL,localestring) locale.setlocale(locale.LC_NUMERIC, 'C')
1d676bfc5f289ea5bcfbd29fa112e31219bb716c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2499/1d676bfc5f289ea5bcfbd29fa112e31219bb716c/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13928, 8806, 3916, 12, 22638, 371, 2218, 11, 4672, 3536, 694, 279, 30426, 1191, 1664, 364, 27727, 67, 22998, 18, 225, 1375, 6339, 68, 353, 326, 2573, 533, 358, 506, 444, 16, 425, 18, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13928, 8806, 3916, 12, 22638, 371, 2218, 11, 4672, 3536, 694, 279, 30426, 1191, 1664, 364, 27727, 67, 22998, 18, 225, 1375, 6339, 68, 353, 326, 2573, 533, 358, 506, 444, 16, 425, 18, 7...
total = total + t_power * R(sigma[k].lift())
total = total + t_power * sigma[k].lift()
def height(P, check=True): if P.is_finite_order(): return K(0) if check: assert P.curve() == E, "the point P must lie on the curve " \ "from which the height function was created"
65c3f320038580074d5807d5c1512949277d8800 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/65c3f320038580074d5807d5c1512949277d8800/ell_rational_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2072, 12, 52, 16, 866, 33, 5510, 4672, 309, 453, 18, 291, 67, 9551, 67, 1019, 13332, 327, 1475, 12, 20, 13, 309, 866, 30, 1815, 453, 18, 16683, 1435, 422, 512, 16, 315, 5787, 1634, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2072, 12, 52, 16, 866, 33, 5510, 4672, 309, 453, 18, 291, 67, 9551, 67, 1019, 13332, 327, 1475, 12, 20, 13, 309, 866, 30, 1815, 453, 18, 16683, 1435, 422, 512, 16, 315, 5787, 1634, ...
child_stdout, child_stdin, child_stderr = popen3("ffmpeg -h") error = child_stderr.read()
child_stdout_and_stderr, child_stdin = popen4("ffmpeg -h") error = child_stdout_and_stderr.read()
def _check_ffmpeg(): """Checks if ffmpeg is available. If ffmpeg is not installed with the proper options (libmp3lame) a MediaConverterError exception will be raised. """ status = os.system("ffmpeg -h") if sys.platform != 'win32' and os.WIFEXITED(status): # TODO: portable way to get the exit code exit_code = os.WEXITSTATUS(status) else: exit_code = status if exit_code: raise MediaConverterError('could not run ffmpeg: "ffmpeg -h" has exited with code %s' % (exit_code, )) child_stdout, child_stdin, child_stderr = popen3("ffmpeg -h") error = child_stderr.read() if "--enable-libmp3lame" not in error: raise MediaConverterError('ffmpeg was not compiled with --enable-libmp3lame; ffmpeg -h returned: %s' % (error, ))
52f3809723dcae84258d3b4598aa55ca36ef8cad /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/52f3809723dcae84258d3b4598aa55ca36ef8cad/MediaConverter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 1403, 19951, 13332, 3536, 4081, 309, 6875, 19951, 353, 2319, 18, 225, 971, 6875, 19951, 353, 486, 5876, 598, 326, 5338, 702, 261, 2941, 1291, 23, 80, 339, 13, 279, 6128, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1893, 67, 1403, 19951, 13332, 3536, 4081, 309, 6875, 19951, 353, 2319, 18, 225, 971, 6875, 19951, 353, 486, 5876, 598, 326, 5338, 702, 261, 2941, 1291, 23, 80, 339, 13, 279, 6128, ...
hdf5DataStoreDir = \ gromacsWorkingDir + os.sep + \ gromacsFullBaseFileInfo.completeBaseName() os.mkdir(hdf5DataStoreDir)
if (launchNV1): hdf5DataStoreDir = \ gromacsWorkingDir + os.sep + \ gromacsFullBaseFileInfo.completeBaseName() os.mkdir(hdf5DataStoreDir)
def run_using_old_movie_obj_to_hold_sim_params(self, movie): self._movie = movie # general kluge for old-code compat # (lots of our methods still use this and modify it) # note, this movie object (really should be a simsetup object?) # does not yet know a proper alist (or any alist, I hope) [bruce 050404] self.errcode = self.set_options_errQ( ) # set movie alist, output filenames, sim executable pathname (verify it exists) #obs comment [about the options arg i removed?? or smth else?] # options include everything that affects the run except the set of atoms and the part if self.errcode: # used to be a local var 'r' # bruce 051115 comment: more than one reason this can happen; # one is sim executable missing return self.sim_input_file = self.sim_input_filename() # might get name from options or make up a temporary filename if (self.mflag == 1 and self.useGromacs): if (not self.verifyGromacsPlugin()): self.errcode = FAILURE_ALREADY_DOCUMENTED return if (self.background): if (not self.verifyNanoVision1Plugin()): self.errcode = FAILURE_ALREADY_DOCUMENTED return self.set_waitcursor(True) progressBar = self.win.statusBar().progressBar
0d723b48183c53759eeb7acb5b16b25588d30624 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/0d723b48183c53759eeb7acb5b16b25588d30624/runSim.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 9940, 67, 1673, 67, 8683, 13120, 67, 2603, 67, 869, 67, 21056, 67, 9812, 67, 2010, 12, 2890, 16, 21360, 4672, 365, 6315, 8683, 13120, 273, 21360, 468, 7470, 15290, 21627, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 9940, 67, 1673, 67, 8683, 13120, 67, 2603, 67, 869, 67, 21056, 67, 9812, 67, 2010, 12, 2890, 16, 21360, 4672, 365, 6315, 8683, 13120, 273, 21360, 468, 7470, 15290, 21627, 364, ...
return bool(self.flag & DEF_STAR)
return bool(self.__flags & DEF_STAR)
def is_vararg(self): return bool(self.flag & DEF_STAR)
5030cf1c2db98d5e83ef0c2b21e3d7a1fed50047 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/5030cf1c2db98d5e83ef0c2b21e3d7a1fed50047/symtable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 24823, 12, 2890, 4672, 327, 1426, 12, 2890, 18, 6420, 473, 25957, 67, 20943, 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, ...
[ 1, 1, 1, 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, 353, 67, 24823, 12, 2890, 4672, 327, 1426, 12, 2890, 18, 6420, 473, 25957, 67, 20943, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return "<a href='%s' title='View recent builds for %s'>%s:%s</a>" % (tree.name, tree.name, tree.branch)
return "<a href='%s' title='View recent builds for %s'>%s:%s</a>" % (tree_uri(myself, tree), tree.name, tree.name, tree.branch)
def tree_link(myself, tree): """return a link to a particular tree""" return "<a href='%s' title='View recent builds for %s'>%s:%s</a>" % (tree.name, tree.name, tree.branch)
181ed9854e8909f56eb12a6ccc924680273734c6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/181ed9854e8909f56eb12a6ccc924680273734c6/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2151, 67, 1232, 12, 4811, 2890, 16, 2151, 4672, 3536, 2463, 279, 1692, 358, 279, 6826, 2151, 8395, 327, 3532, 69, 3897, 28713, 87, 11, 2077, 2218, 1767, 8399, 10736, 364, 738, 87, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2151, 67, 1232, 12, 4811, 2890, 16, 2151, 4672, 3536, 2463, 279, 1692, 358, 279, 6826, 2151, 8395, 327, 3532, 69, 3897, 28713, 87, 11, 2077, 2218, 1767, 8399, 10736, 364, 738, 87, 11, ...
cannotMove = not self.shownAttributes or len(self.selectedShown) != 1 self.buttonUPAttr.setDisabled(cannotMove or not self.selectedShown[0]) self.buttonDOWNAttr.setDisabled(cannotMove or self.selectedShown[0] >= len(self.shownAttributes)-1)
if self.selectedShown: mini, maxi = min(self.selectedShown), max(self.selectedShown) tightSelection = maxi - mini == len(self.selectedShown) - 1 self.buttonUPAttr.setEnabled(self.selectedShown != [] and tightSelection and mini) self.buttonDOWNAttr.setEnabled(self.selectedShown != [] and tightSelection and maxi < len(self.shownAttributes)-1)
def resetAttrManipulation(self): cannotMove = not self.shownAttributes or len(self.selectedShown) != 1 self.buttonUPAttr.setDisabled(cannotMove or not self.selectedShown[0]) self.buttonDOWNAttr.setDisabled(cannotMove or self.selectedShown[0] >= len(self.shownAttributes)-1) self.attrAddButton.setDisabled(not self.selectedHidden or self.showAllAttributes) self.attrRemoveButton.setDisabled(not self.selectedShown or self.showAllAttributes) if self.hiddenAttributes and self.hiddenAttributes[0][0]!=self.data.domain.classVar.name: self.showAllCB.setChecked(0)
00556450e32f27a7d6376545381692844e321e27 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/00556450e32f27a7d6376545381692844e321e27/OWLinProj.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 3843, 19308, 6234, 12, 2890, 4672, 309, 365, 18, 8109, 27042, 30, 21959, 16, 943, 77, 273, 1131, 12, 2890, 18, 8109, 27042, 3631, 943, 12, 2890, 18, 8109, 27042, 13, 26066, 6233, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 3843, 19308, 6234, 12, 2890, 4672, 309, 365, 18, 8109, 27042, 30, 21959, 16, 943, 77, 273, 1131, 12, 2890, 18, 8109, 27042, 3631, 943, 12, 2890, 18, 8109, 27042, 13, 26066, 6233, ...
except: raise 'BadRequest', ( '<strong>Invalid entry for <em>%s</em> </strong>' % argument_name)
else: args.append(v)
def function_with_empty_signature(): pass
6e60c63abb35f639b7efc369be01caf096484aa1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/6e60c63abb35f639b7efc369be01caf096484aa1/Publish.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 445, 67, 1918, 67, 5531, 67, 8195, 13332, 1342, 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, 445, 67, 1918, 67, 5531, 67, 8195, 13332, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
def availableSplitter(self):
def availableSplitters(self):
def availableSplitter(self): """ splitter we can add """ return Splitter.availableSplitters
fa6133bc34f4051342345000f969926e3ef7baf7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/fa6133bc34f4051342345000f969926e3ef7baf7/ZCatalog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2319, 5521, 5432, 12, 2890, 4672, 3536, 21553, 732, 848, 527, 3536, 327, 5385, 387, 18, 5699, 5521, 5432, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2319, 5521, 5432, 12, 2890, 4672, 3536, 21553, 732, 848, 527, 3536, 327, 5385, 387, 18, 5699, 5521, 5432, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def parseConfigurationFile( self, afile ): try: self.configuration.data = bb.parse.handle( afile, self.configuration.data )
def parseConfigurationFile( self, afiles ): try: for afile in afiles: self.configuration.data = bb.parse.handle( afile, self.configuration.data )
def parseConfigurationFile( self, afile ): try: self.configuration.data = bb.parse.handle( afile, self.configuration.data )
cb8684f9bce2ba06f42f1f49e4feb4675c311c24 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8123/cb8684f9bce2ba06f42f1f49e4feb4675c311c24/cooker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1750, 812, 12, 365, 16, 279, 768, 262, 30, 775, 30, 365, 18, 7025, 18, 892, 273, 7129, 18, 2670, 18, 4110, 12, 279, 768, 16, 365, 18, 7025, 18, 892, 262, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1750, 812, 12, 365, 16, 279, 768, 262, 30, 775, 30, 365, 18, 7025, 18, 892, 273, 7129, 18, 2670, 18, 4110, 12, 279, 768, 16, 365, 18, 7025, 18, 892, 262, 2, -100, -100, -100,...
return "Dg:%s[%s]" % (dtella_local.version, get_os())
return "Dt:%s[%s]" % (dtella_local.version, get_os())
def get_version_string(): return "Dg:%s[%s]" % (dtella_local.version, get_os())
82dfdf054a9b9ae5e5d12020e186ff0189144557 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8524/82dfdf054a9b9ae5e5d12020e186ff0189144557/dtella_util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1589, 67, 1080, 13332, 327, 315, 19739, 5319, 87, 14451, 87, 4279, 738, 261, 7510, 1165, 69, 67, 3729, 18, 1589, 16, 336, 67, 538, 10756, 282, 2, 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, 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, 336, 67, 1589, 67, 1080, 13332, 327, 315, 19739, 5319, 87, 14451, 87, 4279, 738, 261, 7510, 1165, 69, 67, 3729, 18, 1589, 16, 336, 67, 538, 10756, 282, 2, -100, -100, -100, -100, -100,...
else: do_exec(cvs+' co reportlab', 'the checkout phase')
def cvs_checkout(d): os.chdir(d) recursive_rmdir(cvsdir) cvs = find_exe('cvs') if cvs is None: os.exit(1) os.environ['CVSROOT']=':pserver:%s@cvs.reportlab.sourceforge.net:/cvsroot/reportlab' % USER if release: do_exec(cvs+(' export -r %s reportlab' % tagname), 'the export phase') else: if py2pdf: do_exec(cvs+' co reportlab', 'the checkout phase') # now we need to move the files & delete those we don't need dst = py2pdf_dir recursive_rmdir(dst) os.mkdir(dst) do_exec("mv reportlab/demos/py2pdf/py2pdf.py %s"%dst, "mv py2pdf.py") do_exec("mv reportlab/demos/py2pdf/PyFontify.py %s" % dst, "mv pyfontify.py") do_exec("rm -r reportlab/demos reportlab/platypus reportlab/lib/styles.py reportlab/README.pdfgen.txt", "rm") do_exec("mv reportlab %s" % dst) CVS_remove(dst) else: do_exec(cvs+' co reportlab', 'the checkout phase')
b44cd49e99d91cc912ae3ae1309819e6423841a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/b44cd49e99d91cc912ae3ae1309819e6423841a9/daily.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 6904, 67, 17300, 12, 72, 4672, 1140, 18, 343, 1214, 12, 72, 13, 5904, 67, 8864, 1214, 12, 71, 6904, 1214, 13, 225, 276, 6904, 273, 1104, 67, 14880, 2668, 71, 6904, 6134, 309, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 6904, 67, 17300, 12, 72, 4672, 1140, 18, 343, 1214, 12, 72, 13, 5904, 67, 8864, 1214, 12, 71, 6904, 1214, 13, 225, 276, 6904, 273, 1104, 67, 14880, 2668, 71, 6904, 6134, 309, 27...
utils.run_cmd("git config remote.origin.url=%s"%self.git_repo)
utils.run_cmd("git config remote.origin.url %s"%self.git_repo)
def push(self): os.chdir(self.co_path) if (self.branch is not None): effective_branch = "remotes/origin/%s:%s" % (self.branch, self.branch) else: effective_branch = "" utils.run_cmd("git config remote.origin.url=%s"%self.git_repo) utils.run_cmd("git push origin %s"%effective_branch)
6db6155aeec89813cfd10e9fc08b782780202266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4427/6db6155aeec89813cfd10e9fc08b782780202266/git.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1817, 12, 2890, 4672, 1140, 18, 343, 1214, 12, 2890, 18, 2894, 67, 803, 13, 309, 261, 2890, 18, 7500, 353, 486, 599, 4672, 11448, 67, 7500, 273, 315, 2764, 6366, 19, 10012, 5258, 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, 1817, 12, 2890, 4672, 1140, 18, 343, 1214, 12, 2890, 18, 2894, 67, 803, 13, 309, 261, 2890, 18, 7500, 353, 486, 599, 4672, 11448, 67, 7500, 273, 315, 2764, 6366, 19, 10012, 5258, 87, ...
try: sysroot = argv[1] except IndexError: sys.stderr.write('usage: %s /path/to/sysroot\n' % argv[0]) return 1
parser = optparse.OptionParser() parser.add_option('-s', '--sysroot', default='/', help='sysroot to prepend') parser.add_option('-p', '--strip-prefix', default='', help='prefix to strip') opts, args = parser.parse_args(argv[1:])
def main(argv): try: sysroot = argv[1] except IndexError: sys.stderr.write('usage: %s /path/to/sysroot\n' % argv[0]) return 1 for line in sys.stdin.readlines(): line = RewriteLine(line.strip(), sysroot) print line return 0
090e84f6c261bf1557fa3074a65c518eb7fc03c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/090e84f6c261bf1557fa3074a65c518eb7fc03c0/rewrite_dirs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 4672, 2082, 273, 2153, 2670, 18, 1895, 2678, 1435, 2082, 18, 1289, 67, 3482, 2668, 17, 87, 2187, 3534, 9499, 3085, 2187, 805, 2218, 19, 2187, 2809, 2218, 9499, 3085, 358...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 4672, 2082, 273, 2153, 2670, 18, 1895, 2678, 1435, 2082, 18, 1289, 67, 3482, 2668, 17, 87, 2187, 3534, 9499, 3085, 2187, 805, 2218, 19, 2187, 2809, 2218, 9499, 3085, 358...
def show(self, network):
def update(self):
def show(self, network): for child in self.get_children(): self.remove(child) network_info = conf.get('networks', {}).get(network, {})
4e3fce086a885558cfbd2aca990b3731ca541fa8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10693/4e3fce086a885558cfbd2aca990b3731ca541fa8/servers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 364, 1151, 316, 365, 18, 588, 67, 5906, 13332, 365, 18, 4479, 12, 3624, 13, 225, 2483, 67, 1376, 273, 2195, 18, 588, 2668, 19982, 2187, 2618, 2934, 588, 12, 5185,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 12, 2890, 4672, 364, 1151, 316, 365, 18, 588, 67, 5906, 13332, 365, 18, 4479, 12, 3624, 13, 225, 2483, 67, 1376, 273, 2195, 18, 588, 2668, 19982, 2187, 2618, 2934, 588, 12, 5185,...
formattedParentIds = ','.join(parentIds) formattedJobIds = ','.join(jobIds) command = 'python ' + self.commandQueryPath \ + 'GLiteStatusQuery.py --parentId=%s --jobId=%s' \ % (formattedParentIds, formattedJobIds) outJson, ret = self.ExecuteCommand( self.prefixCommandQuery + \ self.proxyString + command ) try: out = json.loads(outJson) except ValueError: raise SchedulerError('error parsing JSON', out ) if ret != 0 or out['errors']: obj.warnings.append( "Errors: " + str(out['errors']) ) raise SchedulerError('error executing GLiteStatusQuery', \ str(out['errors'])) count = 0 newStates = out['statusQuery'] for jobId in jobIds.values() : obj.jobs[jobId].runningJob['status'] = \ newStates[count]['status'] obj.jobs[jobId].runningJob['scheduledAtSite'] = \ newStates[count]['scheduledAtSite'] obj.jobs[jobId].runningJob['startTime'] = \ newStates[count]['startTime'] obj.jobs[jobId].runningJob['service'] = \ newStates[count]['service'] obj.jobs[jobId].runningJob['statusScheduler'] = \ newStates[count]['statusScheduler'] obj.jobs[jobId].runningJob['destination'] = \ newStates[count]['destination'] obj.jobs[jobId].runningJob['statusReason'] = \ newStates[count]['statusReason'] obj.jobs[jobId].runningJob['lbTimestamp'] = \ newStates[count]['lbTimestamp'] obj.jobs[jobId].runningJob['stopTime'] = \ newStates[count]['stopTime'] count += 1
if jobIds : formattedParentIds = ','.join(parentIds) formattedJobIds = ','.join(jobIds) command = 'python ' + self.commandQueryPath \ + 'GLiteStatusQuery.py --parentId=%s --jobId=%s' \ % (formattedParentIds, formattedJobIds) outJson, ret = self.ExecuteCommand( self.prefixCommandQuery + \ self.proxyString + command) try: out = json.loads(outJson) except ValueError: raise SchedulerError('error parsing JSON', out ) if ret != 0 or out['errors']: obj.warnings.append( "Errors: " + str(out['errors']) ) raise SchedulerError('error executing GLiteStatusQuery', \ str(out['errors'])) count = 0 newStates = out['statusQuery'] for jobId in jobIds.values() : obj.jobs[jobId].runningJob['status'] = \ newStates[count]['status'] obj.jobs[jobId].runningJob['scheduledAtSite'] = \ newStates[count]['scheduledAtSite'] obj.jobs[jobId].runningJob['startTime'] = \ newStates[count]['startTime'] obj.jobs[jobId].runningJob['service'] = \ newStates[count]['service'] obj.jobs[jobId].runningJob['statusScheduler'] = \ newStates[count]['statusScheduler'] obj.jobs[jobId].runningJob['destination'] = \ newStates[count]['destination'] obj.jobs[jobId].runningJob['statusReason'] = \ newStates[count]['statusReason'] obj.jobs[jobId].runningJob['lbTimestamp'] = \ newStates[count]['lbTimestamp'] obj.jobs[jobId].runningJob['stopTime'] = \ newStates[count]['stopTime'] count += 1
def query(self, obj, service='', objType='node') : """ query status and eventually other scheduler related information """
0edd8f75f81c08242d2ef1f97a4d036f302634bf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8886/0edd8f75f81c08242d2ef1f97a4d036f302634bf/SchedulerGLite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 12, 2890, 16, 1081, 16, 1156, 2218, 2187, 30078, 2218, 2159, 6134, 294, 3536, 843, 1267, 471, 18011, 1308, 8129, 3746, 1779, 3536, 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, 843, 12, 2890, 16, 1081, 16, 1156, 2218, 2187, 30078, 2218, 2159, 6134, 294, 3536, 843, 1267, 471, 18011, 1308, 8129, 3746, 1779, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
def test_search_help_page_availability(self): """websearch - availability of Search Help page"""
def test_help_page_availability(self): """websearch - availability of Help Central page"""
def test_search_help_page_availability(self): """websearch - availability of Search Help page"""
c88cd4f1af40a1ac6a3f16aff626c22f3fcd06d6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2139/c88cd4f1af40a1ac6a3f16aff626c22f3fcd06d6/websearch_regression_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3072, 67, 5201, 67, 2433, 67, 24318, 12, 2890, 4672, 3536, 4875, 3072, 300, 13395, 434, 5167, 11288, 1363, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3072, 67, 5201, 67, 2433, 67, 24318, 12, 2890, 4672, 3536, 4875, 3072, 300, 13395, 434, 5167, 11288, 1363, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
m = Marshaller(encoding)
m = Marshaller(encoding, allow_none)
def dumps(params, methodname=None, methodresponse=None, encoding=None): """data [,options] -> marshalled data Convert an argument tuple or a Fault instance to an XML-RPC request (or response, if the methodresponse option is used). In addition to the data object, the following options can be given as keyword arguments: methodname: the method name for a methodCall packet methodresponse: true to create a methodResponse packet. If this option is used with a tuple, the tuple must be a singleton (i.e. it can contain only one element). encoding: the packet encoding (default is UTF-8) All 8-bit strings in the data structure are assumed to use the packet encoding. Unicode strings are automatically converted, where necessary. """ assert isinstance(params, TupleType) or isinstance(params, Fault),\ "argument must be tuple or Fault instance" if isinstance(params, Fault): methodresponse = 1 elif methodresponse and isinstance(params, TupleType): assert len(params) == 1, "response tuple must be a singleton" if not encoding: encoding = "utf-8" if FastMarshaller: m = FastMarshaller(encoding) else: m = Marshaller(encoding) data = m.dumps(params) if encoding != "utf-8": xmlheader = "<?xml version='1.0' encoding='%s'?>\n" % str(encoding) else: xmlheader = "<?xml version='1.0'?>\n" # utf-8 is default # standard XML-RPC wrappings if methodname: # a method call if not isinstance(methodname, StringType): methodname = methodname.encode(encoding) data = ( xmlheader, "<methodCall>\n" "<methodName>", methodname, "</methodName>\n", data, "</methodCall>\n" ) elif methodresponse: # a method response, or a fault structure data = ( xmlheader, "<methodResponse>\n", data, "</methodResponse>\n" ) else: return data # return as is return string.join(data, "")
a4c2b7485b6c33d0d6221d1a4505350ea9353668 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a4c2b7485b6c33d0d6221d1a4505350ea9353668/xmlrpclib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6711, 12, 2010, 16, 707, 529, 33, 7036, 16, 707, 2740, 33, 7036, 16, 2688, 33, 7036, 4672, 3536, 892, 306, 16, 2116, 65, 317, 10893, 1259, 501, 225, 4037, 392, 1237, 3193, 578, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6711, 12, 2010, 16, 707, 529, 33, 7036, 16, 707, 2740, 33, 7036, 16, 2688, 33, 7036, 4672, 3536, 892, 306, 16, 2116, 65, 317, 10893, 1259, 501, 225, 4037, 392, 1237, 3193, 578, 279, ...
for line in text.splitlines():
for line in content.splitlines():
def parse_clone_text(self, text): url = rev = None for line in text.splitlines(): if not line.strip() or line.strip().startswith('#'): continue url_match = re.search(r'git\s*remote\s*add\s*origin(.*)\s*-f', line) if url_match: url = url_match.group(1).strip() rev_match = re.search(r'^git\s*checkout\s*-q\s*(.*)\s*', line) if rev_match: rev = rev_match.group(1).strip() if url and rev: return url, rev return None, None
4faa7a5f6c74f814cee91ccd722060b26857a0d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12982/4faa7a5f6c74f814cee91ccd722060b26857a0d3/pip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 14056, 67, 955, 12, 2890, 16, 977, 4672, 880, 273, 5588, 273, 599, 364, 980, 316, 913, 18, 4939, 3548, 13332, 309, 486, 980, 18, 6406, 1435, 578, 980, 18, 6406, 7675, 17514, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 14056, 67, 955, 12, 2890, 16, 977, 4672, 880, 273, 5588, 273, 599, 364, 980, 316, 913, 18, 4939, 3548, 13332, 309, 486, 980, 18, 6406, 1435, 578, 980, 18, 6406, 7675, 17514, ...
mac = hmac.new(s, self.secret, digestmod=sha1).digest()
mac = hmac.new(self.secret, s, digestmod=sha1).digest()
def generateUniqueId(self): """Generate a new, random, unique id.
630282f38e5bf38464385a13dc5beab4b6d7d65e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9756/630282f38e5bf38464385a13dc5beab4b6d7d65e/http.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 24174, 12, 2890, 4672, 3536, 4625, 279, 394, 16, 2744, 16, 3089, 612, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 24174, 12, 2890, 4672, 3536, 4625, 279, 394, 16, 2744, 16, 3089, 612, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if isinstance(fp, file):
if isfile(fp):
def write_array(fp, array, version=(1,0)): """ Write an array to an NPY file, including a header. If the array is neither C-contiguous or Fortran-contiguous AND if the filelike object is not a real file object, then this function will have to copy data in memory. Parameters ---------- fp : filelike object An open, writable file object or similar object with a `.write()` method. array : numpy.ndarray The array to write to disk. version : (int, int), optional The version number of the format. Raises ------ ValueError If the array cannot be persisted. Various other errors If the array contains Python objects as part of its dtype, the process of pickling them may raise arbitrary errors if the objects are not picklable. """ if version != (1, 0): msg = "we only support format version (1,0), not %s" raise ValueError(msg % (version,)) fp.write(magic(*version)) write_array_header_1_0(fp, header_data_from_array_1_0(array)) if array.dtype.hasobject: # We contain Python objects so we cannot write out the data directly. # Instead, we will pickle it out with version 2 of the pickle protocol. cPickle.dump(array, fp, protocol=2) elif array.flags.f_contiguous and not array.flags.c_contiguous: # Use a suboptimal, possibly memory-intensive, but correct way to # handle Fortran-contiguous arrays. fp.write(array.data) else: if isinstance(fp, file): array.tofile(fp) else: # XXX: We could probably chunk this using something like # arrayterator. fp.write(array.tostring('C'))
906d21e1b3ef6e6cd68847c427c185137a151314 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/906d21e1b3ef6e6cd68847c427c185137a151314/format.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 1126, 12, 7944, 16, 526, 16, 1177, 28657, 21, 16, 20, 3719, 30, 3536, 2598, 392, 526, 358, 392, 423, 16235, 585, 16, 6508, 279, 1446, 18, 225, 971, 326, 526, 353, 15826, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 1126, 12, 7944, 16, 526, 16, 1177, 28657, 21, 16, 20, 3719, 30, 3536, 2598, 392, 526, 358, 392, 423, 16235, 585, 16, 6508, 279, 1446, 18, 225, 971, 326, 526, 353, 15826, 38...
if rt[0]: rt = (rt[0] + reget_length, rt[1])
if rt[0] is None: rt = (0, rt[1]) rt = (rt[0] + reget_length, rt[1])
def _build_range(self): reget_length = 0 rt = None if self.opts.reget and type(self.filename) in types.StringTypes: # we have reget turned on and we're dumping to a file try: s = os.stat(self.filename) except OSError: pass else: self.reget_time = s[stat.ST_MTIME] reget_length = s[stat.ST_SIZE]
e44c45c1684bd8e4175b4ab862377340932d4b94 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7001/e44c45c1684bd8e4175b4ab862377340932d4b94/grabber.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3510, 67, 3676, 12, 2890, 4672, 283, 588, 67, 2469, 273, 374, 8253, 273, 599, 309, 365, 18, 4952, 18, 266, 588, 471, 618, 12, 2890, 18, 3459, 13, 316, 1953, 18, 780, 2016, 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, 389, 3510, 67, 3676, 12, 2890, 4672, 283, 588, 67, 2469, 273, 374, 8253, 273, 599, 309, 365, 18, 4952, 18, 266, 588, 471, 618, 12, 2890, 18, 3459, 13, 316, 1953, 18, 780, 2016, 30, ...
self.accounts = self.check_accounts(e.get_text()) config.set('plugins', self.c_accounts, join(self.accounts))
self.accounts = e.get_text().split() config.set('plugins', self.c_accounts, e.get_text())
def accounts_e_changed(self, e): self.accounts = self.check_accounts(e.get_text()) config.set('plugins', self.c_accounts, join(self.accounts))
d57aa4a777cfcfe18cb9cedff8cf760d5ec3651c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/d57aa4a777cfcfe18cb9cedff8cf760d5ec3651c/gajim_status.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9484, 67, 73, 67, 6703, 12, 2890, 16, 425, 4672, 365, 18, 13739, 273, 365, 18, 1893, 67, 13739, 12, 73, 18, 588, 67, 955, 10756, 642, 18, 542, 2668, 8057, 2187, 365, 18, 71, 67, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9484, 67, 73, 67, 6703, 12, 2890, 16, 425, 4672, 365, 18, 13739, 273, 365, 18, 1893, 67, 13739, 12, 73, 18, 588, 67, 955, 10756, 642, 18, 542, 2668, 8057, 2187, 365, 18, 71, 67, 13...
class RegistrationController(BaseController, Create, Update):
class RegistrationController(SecureController, Create, Update):
def _from_python(self, value): return value.id
f0bf4741599b356896367dc3abd3ed67333b6c9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12856/f0bf4741599b356896367dc3abd3ed67333b6c9b/registration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2080, 67, 8103, 12, 2890, 16, 460, 4672, 327, 460, 18, 350, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2080, 67, 8103, 12, 2890, 16, 460, 4672, 327, 460, 18, 350, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
return datetime.time(hour, minute, second)
return time(hour, minute, second)
def decode(data): if not data: return None
de0550af8b8d14401327d7ab8661d54b6765c9c5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/de0550af8b8d14401327d7ab8661d54b6765c9c5/datetime_.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 892, 4672, 309, 486, 501, 30, 327, 599, 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, 2495, 12, 892, 4672, 309, 486, 501, 30, 327, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
p.add_constraint(v[x] + b[x][y] - v[y], min=0, max=0)
p.add_constraint(v[x] + b[x][y] - v[y], min=0)
def edge_cut(self, s, t, value_only=True, use_edge_labels=False, vertices=False, solver=None, verbose=0): r""" Returns a minimum edge cut between vertices `s` and `t` represented by a list of edges.
c689b5410fb1054bf00912c776e7aa93a3ae72ec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/c689b5410fb1054bf00912c776e7aa93a3ae72ec/generic_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3591, 67, 5150, 12, 2890, 16, 272, 16, 268, 16, 460, 67, 3700, 33, 5510, 16, 999, 67, 7126, 67, 5336, 33, 8381, 16, 6928, 33, 8381, 16, 12776, 33, 7036, 16, 3988, 33, 20, 4672, 436...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3591, 67, 5150, 12, 2890, 16, 272, 16, 268, 16, 460, 67, 3700, 33, 5510, 16, 999, 67, 7126, 67, 5336, 33, 8381, 16, 6928, 33, 8381, 16, 12776, 33, 7036, 16, 3988, 33, 20, 4672, 436...
isofstype = self.__isofstype,
isofstype = self._isofstype,
def __write_yaboot_config(isodir, bit): cfg = self.__get_basic_yaboot_config(name = self.name, timeout = self._timeout * 100)
4a670c764a1a949c866539b8a6a60e2729747acb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9342/4a670c764a1a949c866539b8a6a60e2729747acb/live.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2626, 67, 93, 378, 1632, 67, 1425, 12, 291, 369, 481, 16, 2831, 4672, 2776, 273, 365, 16186, 588, 67, 13240, 67, 93, 378, 1632, 67, 1425, 12, 529, 273, 365, 18, 529, 16, 2021, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2626, 67, 93, 378, 1632, 67, 1425, 12, 291, 369, 481, 16, 2831, 4672, 2776, 273, 365, 16186, 588, 67, 13240, 67, 93, 378, 1632, 67, 1425, 12, 529, 273, 365, 18, 529, 16, 2021, ...
return self.posToColumn (self.PositionFromPoint (point))
return self.GetColumn (self.PositionFromPoint (point))
def getLeftmostColumn (self): point = wx.Point () point.x = self.GetXOffset () point.y = 0 return self.posToColumn (self.PositionFromPoint (point))
a6939f364c8be53bdb79671ac6f692647d50a667 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9028/a6939f364c8be53bdb79671ac6f692647d50a667/candy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15930, 10329, 1494, 261, 2890, 4672, 1634, 273, 7075, 18, 2148, 1832, 1634, 18, 92, 273, 365, 18, 967, 60, 2335, 1832, 1634, 18, 93, 273, 374, 327, 365, 18, 917, 774, 1494, 261, 2890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15930, 10329, 1494, 261, 2890, 4672, 1634, 273, 7075, 18, 2148, 1832, 1634, 18, 92, 273, 365, 18, 967, 60, 2335, 1832, 1634, 18, 93, 273, 374, 327, 365, 18, 917, 774, 1494, 261, 2890, ...
port = int(OptionalEnvironmentVariable('UPLOAD_PORT'))
port = OptionalEnvironmentVariable('UPLOAD_PORT') if port is not None: port = int(port)
def UploadFiles(user, host, path, files, verbose=False, port=None, ssh_key=None, base_path=None, post_upload_command=None): """Upload each file in the list files to user@host:path. Optionally pass port and ssh_key to the ssh commands. If base_path is not None, upload files including their path relative to base_path. If post_upload_command is not None, execute that command on the remote host after uploading all files, passing it the upload path, and the full paths to all files uploaded. If verbose is True, print status updates while working.""" if not path.endswith("/"): path += "/" if base_path is not None: base_path = os.path.abspath(base_path) remote_files = [] for file in files: file = os.path.abspath(file) if not os.path.isfile(file): raise IOError("File not found: %s" % file) # first ensure that path exists remotely remote_path = GetRemotePath(path, file, base_path) DoSSHCommand("mkdir -p " + remote_path, user, host, port=port, ssh_key=ssh_key) if verbose: print "Uploading " + file DoSCPFile(file, remote_path, user, host, port=port, ssh_key=ssh_key) remote_files.append(remote_path + '/' + os.path.basename(file)) if post_upload_command is not None: if verbose: print "Running post-upload command: " + post_upload_command file_list = '"' + '" "'.join(remote_files) + '"' DoSSHCommand('%s "%s" %s' % (post_upload_command, path, file_list), user, host, port=port, ssh_key=ssh_key) if verbose: print "Upload complete"
6d8fb610166733ee9d58d5c2c4ceb0b780dfa719 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/6d8fb610166733ee9d58d5c2c4ceb0b780dfa719/upload.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9414, 2697, 12, 1355, 16, 1479, 16, 589, 16, 1390, 16, 3988, 33, 8381, 16, 1756, 33, 7036, 16, 7056, 67, 856, 33, 7036, 16, 1026, 67, 803, 33, 7036, 16, 1603, 67, 6327, 67, 3076, 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, 9414, 2697, 12, 1355, 16, 1479, 16, 589, 16, 1390, 16, 3988, 33, 8381, 16, 1756, 33, 7036, 16, 7056, 67, 856, 33, 7036, 16, 1026, 67, 803, 33, 7036, 16, 1603, 67, 6327, 67, 3076, 3...
msg += "0x%X" % text
msg += "0x%X" % ord(text)
def nextToken(self): while True: # save state pos = self.pos line = self.line col = self.col
89e4d819e47e716c2c27fb9b7f247c57bdfc18ed /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3689/89e4d819e47e716c2c27fb9b7f247c57bdfc18ed/antlrre.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9617, 12, 2890, 4672, 1323, 1053, 30, 468, 1923, 919, 949, 273, 365, 18, 917, 980, 273, 365, 18, 1369, 645, 273, 365, 18, 1293, 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, 9617, 12, 2890, 4672, 1323, 1053, 30, 468, 1923, 919, 949, 273, 365, 18, 917, 980, 273, 365, 18, 1369, 645, 273, 365, 18, 1293, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if self.debug > 0: print 'default calculation required'
def calculation_required(self, atoms=None, quantities=None): ''' determines if a calculation is needed.
efb0053a692e68241ce5b5d3e00d105383545b1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5572/efb0053a692e68241ce5b5d3e00d105383545b1a/jacapo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11096, 67, 4718, 12, 2890, 16, 9006, 33, 7036, 16, 10251, 1961, 33, 7036, 4672, 9163, 12949, 309, 279, 11096, 353, 3577, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11096, 67, 4718, 12, 2890, 16, 9006, 33, 7036, 16, 10251, 1961, 33, 7036, 4672, 9163, 12949, 309, 279, 11096, 353, 3577, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
file(path_init, "w").write(sql)
print >> file(path_init, "w"), sql
def __init__(self, outdir, sql): name = _get_name(sql) path = join(outdir, name) mkdir(path)
d2d193af7d66a40aaea16aca4906a638579d9edb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10616/d2d193af7d66a40aaea16aca4906a638579d9edb/cmd_mysql2fs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 15398, 16, 1847, 4672, 508, 273, 389, 588, 67, 529, 12, 4669, 13, 225, 589, 273, 1233, 12, 659, 1214, 16, 508, 13, 6535, 12, 803, 13, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 15398, 16, 1847, 4672, 508, 273, 389, 588, 67, 529, 12, 4669, 13, 225, 589, 273, 1233, 12, 659, 1214, 16, 508, 13, 6535, 12, 803, 13, 2, -100, -100, ...
if name.upper() != original_name:
if orignal_name.upper() != original_name:
def case_insensitive_tests(class_): """Class decorator that nullifies tests that require a case-insensitive file system.""" if sys.platform not in ('win32', 'darwin', 'cygwin'): original_name = os.listdir('.')[0] if name.upper() != original_name: changed_name = original_name.upper() else: changed_name = original_name.lower() if os.path.exists(changed_name): return class_ return unittest.TestCase else: return class_
c2bf892fda69f458da574f3796794908e0d4f16a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/c2bf892fda69f458da574f3796794908e0d4f16a/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 648, 67, 31940, 67, 16341, 12, 1106, 67, 4672, 3536, 797, 7367, 716, 446, 5032, 7434, 716, 2583, 279, 648, 17, 31940, 585, 2619, 12123, 309, 2589, 18, 9898, 486, 316, 7707, 8082, 1578, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 648, 67, 31940, 67, 16341, 12, 1106, 67, 4672, 3536, 797, 7367, 716, 446, 5032, 7434, 716, 2583, 279, 648, 17, 31940, 585, 2619, 12123, 309, 2589, 18, 9898, 486, 316, 7707, 8082, 1578, ...
return "CC_PACKET:=" + cmpl.get()
return "CC_PACKET:= " + cmpl.get()
def repl_compil(m): return "CC_PACKET:=" + cmpl.get()
e2b0b7a15665e7f5130b4f9e830fd32651df813f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2128/e2b0b7a15665e7f5130b4f9e830fd32651df813f/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6831, 67, 2919, 330, 12, 81, 4672, 327, 315, 6743, 67, 12231, 1584, 30, 33, 315, 397, 5003, 412, 18, 588, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 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, 6831, 67, 2919, 330, 12, 81, 4672, 327, 315, 6743, 67, 12231, 1584, 30, 33, 315, 397, 5003, 412, 18, 588, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
t1 = time.millitimer()
t1 = time.time()
def record(v, info, filename, audiofilename, mono, grey, greybits, \ monotreshold, fields, preallocspace): import thread format, x, y, qsize, rate = info fps = 59.64 # Fields per second # XXX (Strange: need fps of Indigo monitor, not of PAL or NTSC!) tpf = 1000.0 / fps # Time per field in msec if filename: vout = VFile.VoutFile(filename) if mono: format = 'mono' elif grey and greybits == 8: format = 'grey' elif grey: format = 'grey'+`abs(greybits)` else: format = 'rgb8' vout.setformat(format) vout.setsize(x, y) if fields: vout.setpf((1, -2)) vout.writeheader() if preallocspace: print 'Preallocating space...' vout.prealloc(preallocspace) print 'done.' MAXSIZE = 20 # XXX should be a user option import Queue queue = Queue.Queue(MAXSIZE) done = thread.allocate_lock() done.acquire_lock() convertor = None if grey: if greybits == 2: convertor = imageop.grey2grey2 elif greybits == 4: convertor = imageop.grey2grey4 elif greybits == -2: convertor = imageop.dither2grey2 thread.start_new_thread(saveframes, \ (vout, queue, done, mono, monotreshold, convertor)) if audiofilename: audiodone = thread.allocate_lock() audiodone.acquire_lock() audiostop = [] initaudio(audiofilename, audiostop, audiodone) gl.wintitle('(rec) ' + filename) lastid = 0 t0 = time.millitimer() count = 0 ids = [] v.InitContinuousCapture(info) while not gl.qtest(): try: cd, id = v.GetCaptureData() except sv.error: #time.millisleep(10) # XXX is this necessary? sgi.nap(1) # XXX Try by Jack continue ids.append(id) id = id + 2*rate
7911430d00ceaac39d086959bf7b8de3452bd9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/7911430d00ceaac39d086959bf7b8de3452bd9fc/Vrec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1409, 12, 90, 16, 1123, 16, 1544, 16, 20232, 77, 792, 2550, 16, 6921, 83, 16, 5174, 93, 16, 5174, 93, 6789, 16, 521, 6921, 352, 3444, 16, 1466, 16, 675, 9853, 2981, 4672, 1930, 2650,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1409, 12, 90, 16, 1123, 16, 1544, 16, 20232, 77, 792, 2550, 16, 6921, 83, 16, 5174, 93, 16, 5174, 93, 6789, 16, 521, 6921, 352, 3444, 16, 1466, 16, 675, 9853, 2981, 4672, 1930, 2650,...
self.recall(self.text.get(next[0], next[1]))
self.recall(self.text.get(next[0], next[1]), event)
def enter_callback(self, event): if self.executing and not self.reading: return # Let the default binding (insert '\n') take over # If some text is selected, recall the selection # (but only if this before the I/O mark) try: sel = self.text.get("sel.first", "sel.last") if sel: if self.text.compare("sel.last", "<=", "iomark"): self.recall(sel) return "break" except: pass # If we're strictly before the line containing iomark, recall # the current line, less a leading prompt, less leading or # trailing whitespace if self.text.compare("insert", "<", "iomark linestart"): # Check if there's a relevant stdin range -- if so, use it prev = self.text.tag_prevrange("stdin", "insert") if prev and self.text.compare("insert", "<", prev[1]): self.recall(self.text.get(prev[0], prev[1])) return "break" next = self.text.tag_nextrange("stdin", "insert") if next and self.text.compare("insert lineend", ">=", next[0]): self.recall(self.text.get(next[0], next[1])) return "break" # No stdin mark -- just get the current line, less any prompt line = self.text.get("insert linestart", "insert lineend") last_line_of_prompt = sys.ps1.split('\n')[-1] if line.startswith(last_line_of_prompt): line = line[len(last_line_of_prompt):] self.recall(line) return "break" # If we're between the beginning of the line and the iomark, i.e. # in the prompt area, move to the end of the prompt if self.text.compare("insert", "<", "iomark"): self.text.mark_set("insert", "iomark") # If we're in the current input and there's only whitespace # beyond the cursor, erase that whitespace first s = self.text.get("insert", "end-1c") if s and not s.strip(): self.text.delete("insert", "end-1c") # If we're in the current input before its last line, # insert a newline right at the insert point if self.text.compare("insert", "<", "end-1c linestart"): self.newline_and_indent_event(event) return "break" # We're in the last line; append a newline and submit it self.text.mark_set("insert", "end-1c") if self.reading: self.text.insert("insert", "\n") self.text.see("insert") else: self.newline_and_indent_event(event) self.text.tag_add("stdin", "iomark", "end-1c") self.text.update_idletasks() if self.reading: self.top.quit() # Break out of recursive mainloop() in raw_input() else: self.runit() return "break"
e88225f2d5060953d48573a5934561756edf7326 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/e88225f2d5060953d48573a5934561756edf7326/PyShell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6103, 67, 3394, 12, 2890, 16, 871, 4672, 309, 365, 18, 4177, 8490, 471, 486, 365, 18, 21803, 30, 327, 468, 10559, 326, 805, 5085, 261, 6387, 2337, 82, 6134, 4862, 1879, 468, 971, 2690,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6103, 67, 3394, 12, 2890, 16, 871, 4672, 309, 365, 18, 4177, 8490, 471, 486, 365, 18, 21803, 30, 327, 468, 10559, 326, 805, 5085, 261, 6387, 2337, 82, 6134, 4862, 1879, 468, 971, 2690,...
uses floating points methods based on elliptic logarithms to
uses floating point methods based on elliptic logarithms to
def saturate(self, max_prime=-1, odd_primes_only=False): r""" Saturate this subgroup of the Mordell-Weil group. INPUT: - ``max_prime`` (int, default -1) -- saturation is performed for all primes up to `max_prime`. If `-1` (default) then an upper bound is computed for the primes at which the subgroup may not be saturated, and this is used; however, if the computed bound is greater than a value set by the eclib library (currently 97) then no saturation will be attempted at primes above this. - ``odd_primes_only`` (bool, default False) -- only do saturation at odd primes. (If the points have been found via 2-descent they should alreday be 2-saturated.)
1cc4edc9aafb88d044d853b60331d1432546cf60 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/1cc4edc9aafb88d044d853b60331d1432546cf60/interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5942, 295, 340, 12, 2890, 16, 943, 67, 16382, 29711, 21, 16, 14800, 67, 683, 4485, 67, 3700, 33, 8381, 4672, 436, 8395, 25793, 295, 340, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5942, 295, 340, 12, 2890, 16, 943, 67, 16382, 29711, 21, 16, 14800, 67, 683, 4485, 67, 3700, 33, 8381, 4672, 436, 8395, 25793, 295, 340, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, ...
model._meta.object_name,
poss_ormise(app, model, model._meta.object_name),
"\n ".join(["('%s', %s)," % (fname, fdef) for fname, fdef in fields.items()]),
dad4fe1c4d9728a1634d573389487d8ad3b15860 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13142/dad4fe1c4d9728a1634d573389487d8ad3b15860/startmigration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1548, 82, 5411, 3552, 5701, 3816, 6, 29909, 87, 2187, 738, 87, 3631, 6, 738, 261, 12749, 16, 284, 536, 13, 364, 5299, 16, 284, 536, 316, 1466, 18, 3319, 1435, 65, 3631, 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, 1548, 82, 5411, 3552, 5701, 3816, 6, 29909, 87, 2187, 738, 87, 3631, 6, 738, 261, 12749, 16, 284, 536, 13, 364, 5299, 16, 284, 536, 316, 1466, 18, 3319, 1435, 65, 3631, 2, -100, -100, -100...