project_name string | class_name string | class_modifiers string | class_implements int64 | class_extends int64 | function_name string | function_body string | cyclomatic_complexity int64 | NLOC int64 | num_parameter int64 | num_token int64 | num_variable int64 | start_line int64 | end_line int64 | function_index int64 | function_params string | function_variable string | function_return_type string | function_body_line_type string | function_num_functions int64 | function_num_lines int64 | outgoing_function_count int64 | outgoing_function_names string | incoming_function_count int64 | incoming_function_names string | lexical_representation string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | G2FileBrowser.OnNumSelect | def OnNumSelect(event):'responds to a selection of a file range'i = numSel.GetSelection()first = i*maxFiles+1last = int((i+1.1)*maxFiles)dlg.choices=dlg.filelist[first-1:last]listbox.SetItems([os.path.split(f)[1] for f in dlg.choices]) | 2 | 7 | 1 | 72 | 0 | 4,271 | 4,277 | 4,271 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (G2FileBrowser.OnNumSelect) defined within the public class called public.The function start at line 4271 and ends at 4277. It contains 7 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | G2FileBrowser | def G2FileBrowser(parent, message, defaultDir, *args, style=wx.FD_OPEN,wildcard="any file (*.*)|*.*", **kwargs):'''Create a file browser for selecting one or more files froma directory. The user may select the directory where the files and must select an extension from a specified list. Optionally, a filter may be supp... | 10 | 100 | 7 | 923 | 27 | 4,178 | 4,380 | 4,178 | null | ['filterTxt', 'fb', 'i', 'dirVal', 'subSizer', 'txt', 'extSel', 'dlg', 'typeTxt', 'nam', 'maxFiles', 'last', 'selections', 'first', 'CNbtn', 'numSel', 'lbl', 'ranges', 'extDict', 'btnsizer', 'typeSel', 'choices', 'numfiles', 'OKbtn', 'multiple', 'mainSizer', 'listbox'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (G2FileBrowser) defined within the public class called public.The function start at line 4178 and ends at 4380. It contains 100 lines of code and it has a cyclomatic complexity of 10. It takes 7 parameters, represented as [4178.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetImportPath | def GetImportPath(G2frame):'''Determines the default location to use for importing files. Tries sequentiallyG2frame.TutorialImportDir, config var Import_directory, G2frame.LastImportDirand G2frame.LastGPXdir:returns: a string containing the path to be used when reading files or '.'if none of the above are specified.'''... | 11 | 22 | 1 | 147 | 1 | 4,382 | 4,410 | 4,382 | null | ['pth'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetImportPath) defined within the public class called public.The function start at line 4382 and ends at 4410. It contains 22 lines of code and it has a cyclomatic complexity of 11. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetExportPath | def GetExportPath(G2frame):'''Determines the default location to use for writing files. Tries sequentiallyG2frame.LastExportDir and G2frame.LastGPXdir.:returns: a string containing the path to be used when writing files or '.'if none of the above are specified.'''if G2frame.LastExportDir:return G2frame.LastExportDireli... | 3 | 7 | 1 | 30 | 0 | 4,412 | 4,424 | 4,412 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetExportPath) defined within the public class called public.The function start at line 4412 and ends at 4424. It contains 7 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__.OnPrintOps | def OnPrintOps(event):print(' Symmetry operations for %s:'%self.text[0].split(':')[1])for iop,opText in enumerate(G2spc.TextOps(self.text,self.table,reverse=True)):if self.useAlt:opText = opText.replace('x','x1').replace('y','x2').replace('z','x3').replace('t','x4')if len(self.spins):if self.spins[iop] > 0:print('%s,+%... | 5 | 12 | 1 | 162 | 0 | 4,468 | 4,479 | 4,468 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__.OnPrintOps) defined within the public class called public.The function start at line 4468 and ends at 4479. It contains 12 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__.OnAlt | def OnAlt(event):self.useAlt = altBtn.GetValue() | 1 | 2 | 1 | 14 | 0 | 4,481 | 4,482 | 4,481 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__.OnAlt) defined within the public class called public.The function start at line 4481 and ends at 4482. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__ | def __init__(self,parent,title,text,table,spins=[],):wx.Dialog.__init__(self,parent,wx.ID_ANY,title,pos=wx.DefaultPosition,style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)self.text = textself.table = tableself.panel = wx.Panel(self)self.spins = spinsself.useAlt = FalsemainSizer = wx.BoxSizer(wx.VERTICAL)mainSizer.Add((0... | 9 | 55 | 6 | 581 | 0 | 4,432 | 4,501 | 4,432 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 4432 and ends at 4501. It contains 55 lines of code and it has a cyclomatic complexity of 9. It takes 6 parameters, represented as [4432.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | Show | def Show(self):'''Use this method after creating the dialog to post it'''self.ShowModal()return | 1 | 3 | 1 | 12 | 0 | 4,503 | 4,507 | 4,503 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (Show) defined within the public class called public.The function start at line 4503 and ends at 4507. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnOk | def OnOk(self,event):parent = self.GetParent()if parent is not None: parent.Raise()self.EndModal(wx.ID_OK) | 2 | 4 | 2 | 33 | 0 | 4,509 | 4,512 | 2,570 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnOk) defined within the public class called public.The function start at line 4509 and ends at 4512. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [2570.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__.OnPrintOps | def OnPrintOps(event):for item in self.PrintTable:print(item) | 2 | 3 | 1 | 16 | 0 | 4,595 | 4,597 | 4,595 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__.OnPrintOps) defined within the public class called public.The function start at line 4595 and ends at 4597. It contains 3 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__ | def __init__(self,parent,title,text,table,Cents,names,spins,ifGray):wx.Dialog.__init__(self,parent,wx.ID_ANY,title,pos=wx.DefaultPosition,style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER,size=wx.Size(420,350))self.text = textself.table = tableself.names = namesNnames = len(self.names)self.spins = spinsself.ifGray = ifGra... | 19 | 88 | 9 | 840 | 0 | 4,518 | 4,612 | 4,518 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 4518 and ends at 4612. It contains 88 lines of code and it has a cyclomatic complexity of 19. It takes 9 parameters, represented as [4518.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | Show | def Show(self):'''Use this method after creating the dialog to post it'''self.ShowModal()return | 1 | 3 | 1 | 12 | 0 | 4,615 | 4,619 | 4,503 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (Show) defined within the public class called public.The function start at line 4615 and ends at 4619. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__ | def __init__(self,parent,data,default,Reset=True,Angle=True):text = 'Distance Angle Controls'if not Angle:text = 'Distance Controls'wx.Dialog.__init__(self,parent,wx.ID_ANY,text,pos=wx.DefaultPosition,style=wx.DEFAULT_DIALOG_STYLE)self.default = defaultself.Reset = Resetself.Angle = Angleself.panel = Noneself._default(... | 2 | 13 | 6 | 100 | 0 | 4,639 | 4,651 | 4,639 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 4639 and ends at 4651. It contains 13 lines of code and it has a cyclomatic complexity of 2. It takes 6 parameters, represented as [4639.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | _default | def _default(self,data,default):'''Set starting values for the search values, either fromthe input array or from defaults, if input is null'''if data:self.data = copy.deepcopy(data) # don't mess with originalselse:self.data = {}self.data['Name'] = default['Name']self.data['Factors'] = [0.85,0.85]self.data['AtomTypes'] ... | 2 | 10 | 3 | 97 | 0 | 4,653 | 4,665 | 4,653 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_default) defined within the public class called public.The function start at line 4653 and ends at 4665. It contains 10 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [4653.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | Draw | def Draw(self,data):'''Creates the contents of the dialog. Normally calledby :meth:`__init__`.'''if self.panel: self.panel.Destroy()self.panel = wx.Panel(self)mainSizer = wx.BoxSizer(wx.VERTICAL)mainSizer.Add(wx.StaticText(self.panel,-1,'Controls for phase '+data['Name']),0,wx.LEFT,10)mainSizer.Add((10,10),1)ncol = 3if... | 9 | 46 | 2 | 561 | 0 | 4,667 | 4,717 | 4,667 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (Draw) defined within the public class called public.The function start at line 4667 and ends at 4717. It contains 46 lines of code and it has a cyclomatic complexity of 9. It takes 2 parameters, represented as [4667.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetData | def GetData(self):'Returns the modified ParmData'return self.ParmData | 1 | 3 | 1 | 10 | 0 | 4,719 | 4,721 | 3,675 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetData) defined within the public class called public.The function start at line 4719 and ends at 4721. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnOk | def OnOk(self,event):'Called when the OK button is pressed'parent = self.GetParent()if parent is not None: parent.Raise()self.EndModal(wx.ID_OK) | 2 | 5 | 2 | 34 | 0 | 4,723 | 4,727 | 4,723 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnOk) defined within the public class called public.The function start at line 4723 and ends at 4727. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [4723.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnReset | def OnReset(self,event):'Called when the Reset button is pressed'data = {}self._default(data,self.default)wx.CallAfter(self.Draw,self.data) | 1 | 5 | 2 | 34 | 0 | 4,729 | 4,733 | 4,729 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnReset) defined within the public class called public.The function start at line 4729 and ends at 4733. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [4729.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__ | def __init__(self,G2frame,title,parmDict,varyList,fullVaryList, Controls, size=(650,430)):wx.Dialog.__init__(self,G2frame,wx.ID_ANY,title,size=size, style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)self.parmChoice = 'Phase'self.G2frame = G2frameself.parmDict = parmDictself.varyList = varyListself.fullVaryList = fullVaryL... | 37 | 50 | 9 | 687 | 0 | 4,739 | 4,792 | 4,739 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 4739 and ends at 4792. It contains 50 lines of code and it has a cyclomatic complexity of 37. It takes 9 parameters, represented as [4739.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | repaintScrollTbl | def repaintScrollTbl(self):'''Shows the selected variables in a ListCtrl'''#start = time.time()self.varBox.SetContents(self)self.SendSizeEvent() | 1 | 3 | 1 | 19 | 0 | 4,794 | 4,799 | 4,794 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (repaintScrollTbl) defined within the public class called public.The function start at line 4794 and ends at 4799. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | DrawPanel._OnParmSel | def _OnParmSel(event):'New parameter type, reset var name choice as list changes'self.parmChoice = parmSel.GetStringSelection()if varSel:varSel.SetSelection(0)self.varName = ' 'wx.CallLater(100,self.DrawPanel) | 2 | 7 | 1 | 39 | 0 | 4,806 | 4,812 | 4,806 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (DrawPanel._OnParmSel) defined within the public class called public.The function start at line 4806 and ends at 4812. It contains 7 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | DrawPanel.OnPhasSel | def OnPhasSel(event):'phase has been selected'event.Skip()self.phasNum = phasSel.GetValue()if varSel:try:varSel.SetSelection(varSel.GetItems().index(self.varName))except:varSel.SetSelection(0)self.varName = ' 'wx.CallAfter(self.repaintScrollTbl) | 3 | 11 | 1 | 63 | 0 | 4,814 | 4,824 | 4,814 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (DrawPanel.OnPhasSel) defined within the public class called public.The function start at line 4814 and ends at 4824. It contains 11 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | DrawPanel.OnHistSel | def OnHistSel(event):'histogram has been selected'event.Skip()self.hisNum = histSel.GetValue()if varSel:try:varSel.SetSelection(varSel.GetItems().index(self.varName))except:varSel.SetSelection(0)self.varName = ' 'wx.CallAfter(self.repaintScrollTbl) | 3 | 11 | 1 | 63 | 0 | 4,826 | 4,836 | 4,826 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (DrawPanel.OnHistSel) defined within the public class called public.The function start at line 4826 and ends at 4836. It contains 11 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | DrawPanel.OnVarSel | def OnVarSel(event):'parameter name has been selected'event.Skip()self.varName = varSel.GetValue()if phasSel:try:phasSel.SetSelection(phasSel.GetItems().index(self.phasNum))except:phasSel.SetSelection(0)self.phasNum = '*'if histSel:try:histSel.SetSelection(histSel.GetItems().index(self.hisNum))except:histSel.SetSelecti... | 5 | 17 | 1 | 98 | 0 | 4,838 | 4,854 | 4,838 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (DrawPanel.OnVarSel) defined within the public class called public.The function start at line 4838 and ends at 4854. It contains 17 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | DrawPanel.OnListSel | def OnListSel(event):self.listSel = listSel.GetStringSelection()wx.CallLater(100,self.DrawPanel) | 1 | 3 | 1 | 24 | 0 | 4,856 | 4,858 | 4,856 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (DrawPanel.OnListSel) defined within the public class called public.The function start at line 4856 and ends at 4858. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | DrawPanel.OnVarSpin | def OnVarSpin(event):'''Respond when any of the SpinButton widgets are pressed'''event.Skip()Spinner = event.GetEventObject()move = Spinner.GetValue()Spinner.SetValue(0)varSel,binding = self.SpinDict[Spinner.GetId()]i = varSel.GetSelection() - moveif i < 0:i = varSel.GetCount()-1elif i >= varSel.GetCount():i = 0varSel.... | 3 | 13 | 1 | 96 | 0 | 4,860 | 4,873 | 4,860 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (DrawPanel.OnVarSpin) defined within the public class called public.The function start at line 4860 and ends at 4873. It contains 13 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | DrawPanel.AddSpinner | def AddSpinner(varSizer,label,SelCtrl,binding):'''Add a label and a SpinButton to a Combo widget (SelCtrl)Saves a pointer to the combo widget and the callback used by that widget'''SelCtrl.Bind(wx.EVT_COMBOBOX,binding)varSizer.Add(wx.StaticText(self,label=label))varSelSizer = wx.BoxSizer(wx.HORIZONTAL)varSelSizer.Add(S... | 1 | 12 | 4 | 124 | 0 | 4,875 | 4,889 | 4,875 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (DrawPanel.AddSpinner) defined within the public class called public.The function start at line 4875 and ends at 4889. It contains 12 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [4875.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | DrawPanel | def DrawPanel(self):'''Draws the contents of the entire dialog. Called initially & when radio buttons are pressed'''def _OnParmSel(event):'New parameter type, reset var name choice as list changes'self.parmChoice = parmSel.GetStringSelection()if varSel:varSel.SetSelection(0)self.varName = ' 'wx.CallLater(100,self.DrawP... | 18 | 102 | 1 | 988 | 0 | 4,803 | 4,990 | 4,803 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (DrawPanel) defined within the public class called public.The function start at line 4803 and ends at 4990. It contains 102 lines of code and it has a cyclomatic complexity of 18. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | _onClose | def _onClose(self,event):self.EndModal(wx.ID_CANCEL) | 1 | 2 | 2 | 15 | 0 | 4,992 | 4,993 | 4,992 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_onClose) defined within the public class called public.The function start at line 4992 and ends at 4993. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [4992.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__ | def __init__(self, parent):self.parmWin = parent#patch (added Oct 2020) convert variable names for parm limits to G2VarObjG2obj.patchControls(self.parmWin.Controls)# end patchwx.ListCtrl.__init__(self, parent, -1,style=wx.LC_REPORT|wx.LC_VIRTUAL|wx.LC_HRULES|wx.LC_VRULES)for i,(lbl,wid) in enumerate(zip(('#', "Paramete... | 3 | 19 | 2 | 171 | 0 | 4,996 | 5,020 | 4,996 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 4996 and ends at 5020. It contains 19 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [4996.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | SetContents | def SetContents(self,parent):self.varList = []for name in parent.choiceDict[parent.parmChoice]:if '2' in platform.python_version_tuple()[0]:basestr = basestringelse:basestr = strif isinstance(parent.parmDict[name],basestr): continueif 'Refined' in parent.listSel and (name not in parent.fullVaryList) and (name not in pa... | 18 | 22 | 2 | 208 | 0 | 5,022 | 5,044 | 5,022 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (SetContents) defined within the public class called public.The function start at line 5022 and ends at 5044. It contains 22 lines of code and it has a cyclomatic complexity of 18. It takes 2 parameters, represented as [5022.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnRowSelected.ResetFrozen | def ResetFrozen(event):'''release a frozen parameter (from all histograms in the case of asequential fit).'''if name in self.parmWin.frozenList:del self.parmWin.frozenList[self.parmWin.frozenList.index(name)]parmFrozen = self.parmWin.Controls.get('parmFrozen',{})if self.parmWin.G2frame.testSeqRefineMode():for h in parm... | 8 | 14 | 1 | 138 | 0 | 5,048 | 5,064 | 5,048 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnRowSelected.ResetFrozen) defined within the public class called public.The function start at line 5048 and ends at 5064. It contains 14 lines of code and it has a cyclomatic complexity of 8. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnRowSelected.delM | def delM(event):'Get event info & prepare to delete Max or Min limit'if hasattr(event.EventObject,'max'):d = self.parmWin.Controls['parmMaxDict']else:d = self.parmWin.Controls['parmMinDict']# close sub-dialog then delete item and redrawdlg.EndModal(wx.ID_OK)wx.CallAfter(delMafter,d,name) | 2 | 8 | 1 | 56 | 0 | 5,066 | 5,074 | 5,066 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnRowSelected.delM) defined within the public class called public.The function start at line 5066 and ends at 5074. It contains 8 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnRowSelected.delMafter | def delMafter(d,name):'Delete Max or Min limit once dialog is deleted'key,val = G2obj.prmLookup(name,d) # is this a wild-card?if val is not None:del d[key]self.OnRowSelected(None, row) | 2 | 6 | 2 | 39 | 0 | 5,075 | 5,080 | 5,075 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnRowSelected.delMafter) defined within the public class called public.The function start at line 5075 and ends at 5080. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [5075.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnRowSelected.AddM | def AddM(event):'Get event info & add a Max or Min limit'if hasattr(event.EventObject,'max'):d = self.parmWin.Controls['parmMaxDict']else:d = self.parmWin.Controls['parmMinDict']# close sub-dialog then delete item and redrawdlg.EndModal(wx.ID_OK)wx.CallAfter(AddMafter,d,name) | 2 | 8 | 1 | 56 | 0 | 5,082 | 5,090 | 5,082 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnRowSelected.AddM) defined within the public class called public.The function start at line 5082 and ends at 5090. It contains 8 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnRowSelected.AddMafter | def AddMafter(d,name):'Add a Max or Min limit & redraw'try:d[G2obj.G2VarObj(name)] = float(value)except:passself.OnRowSelected(None, row) | 2 | 7 | 2 | 35 | 0 | 5,091 | 5,097 | 5,091 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnRowSelected.AddMafter) defined within the public class called public.The function start at line 5091 and ends at 5097. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [5091.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnRowSelected.SetWild | def SetWild(event):'Get event info & prepare to set/clear item as wildcard'if hasattr(event.EventObject,'max'):d = self.parmWin.Controls['parmMaxDict']else:d = self.parmWin.Controls['parmMinDict']ns = name.split(':')if hasattr(event.EventObject,'hist'):ns[1] = '*'else:ns[3] = '*'wname = ':'.join(ns)# close sub-dialog t... | 3 | 14 | 1 | 106 | 0 | 5,098 | 5,112 | 5,098 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnRowSelected.SetWild) defined within the public class called public.The function start at line 5098 and ends at 5112. It contains 14 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnRowSelected.SetWildAfter | def SetWildAfter(d,name,wname,mode):'Set/clear item as wildcard & delete old name(s), redraw'n,val = G2obj.prmLookup(name,d) # is this a wild-card?if val is None:print('Error: Limit for parameter {} not found. Should not happen'.format(name))returnif mode: # make wildcardfor n in list(d.keys()): # delete names matching... | 6 | 16 | 4 | 110 | 0 | 5,113 | 5,128 | 5,113 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnRowSelected.SetWildAfter) defined within the public class called public.The function start at line 5113 and ends at 5128. It contains 16 lines of code and it has a cyclomatic complexity of 6. It takes 4 parameters, represented as [5113.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnRowSelected | def OnRowSelected(self, event, row=None):'Creates an edit window when a parameter is selected'def ResetFrozen(event):'''release a frozen parameter (from all histograms in the case of asequential fit).'''if name in self.parmWin.frozenList:del self.parmWin.frozenList[self.parmWin.frozenList.index(name)]parmFrozen = self.... | 28 | 148 | 3 | 1,509 | 0 | 5,046 | 5,278 | 5,046 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnRowSelected) defined within the public class called public.The function start at line 5046 and ends at 5278. It contains 148 lines of code and it has a cyclomatic complexity of 28. It takes 3 parameters, represented as [5046.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnGetItemText | def OnGetItemText(self, item, col):name = self.varList[item]if col == 0:return str(item)elif col == 1:return nameelif col == 2:if name in self.parmWin.fullVaryList and name in self.parmWin.frozenList:return "F"elif name in self.parmWin.varyList:return "R"elif name in self.parmWin.fullVaryList:return "C"return ""elif co... | 20 | 41 | 3 | 258 | 0 | 5,282 | 5,322 | 5,282 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnGetItemText) defined within the public class called public.The function start at line 5282 and ends at 5322. It contains 41 lines of code and it has a cyclomatic complexity of 20. It takes 3 parameters, represented as [5282.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnGetItemAttr | def OnGetItemAttr(self, item):name = self.varList[item]if name in self.parmWin.varyList and name in self.parmWin.frozenList:return self.attr1else:return None | 3 | 6 | 2 | 40 | 0 | 5,324 | 5,329 | 5,324 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnGetItemAttr) defined within the public class called public.The function start at line 5324 and ends at 5329. It contains 6 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [5324.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__ | def __init__(self, parent, name=''):wg.Grid.__init__(self,parent,-1,name=name)if hasattr(parent.TopLevelParent,'currentGrids'):parent.TopLevelParent.currentGrids.append(self)# save a reference to the grid in the Frameself.SetScrollRate(0,0) #GSAS-II grids have no scroll bars by default | 2 | 5 | 3 | 56 | 0 | 5,335 | 5,339 | 5,335 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 5335 and ends at 5339. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [5335.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | Clear | def Clear(self):wg.Grid.ClearGrid(self) | 1 | 2 | 1 | 13 | 0 | 5,341 | 5,342 | 5,341 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (Clear) defined within the public class called public.The function start at line 5341 and ends at 5342. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | SetCellReadOnly | def SetCellReadOnly(self,r,c,readonly=True):self.SetReadOnly(r,c,isReadOnly=readonly) | 1 | 2 | 4 | 25 | 0 | 5,344 | 5,345 | 5,344 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (SetCellReadOnly) defined within the public class called public.The function start at line 5344 and ends at 5345. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [5344.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | SetCellStyle | def SetCellStyle(self,r,c,color="white",readonly=True):self.SetCellBackgroundColour(r,c,color)self.SetReadOnly(r,c,isReadOnly=readonly) | 1 | 3 | 5 | 39 | 0 | 5,347 | 5,349 | 5,347 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (SetCellStyle) defined within the public class called public.The function start at line 5347 and ends at 5349. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [5347.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | SetTable | def SetTable(self, table, *args, **kwargs):'''Overrides the standard SetTable method with one that usesGridFractionEditor for all numeric columns (unless useFracEditis false)'''setFracEdit = kwargs.get('useFracEdit',True)if 'useFracEdit' in kwargs: del kwargs['useFracEdit']wg.Grid.SetTable(self, table, *args, **kwargs)... | 5 | 11 | 4 | 108 | 0 | 5,351 | 5,365 | 5,351 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (SetTable) defined within the public class called public.The function start at line 5351 and ends at 5365. It contains 11 lines of code and it has a cyclomatic complexity of 5. It takes 4 parameters, represented as [5351.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetSelection | def GetSelection(self):#this is to satisfy structure drawing stuff in G2plt when focus changesreturn None | 1 | 2 | 1 | 7 | 0 | 5,367 | 5,369 | 5,367 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetSelection) defined within the public class called public.The function start at line 5367 and ends at 5369. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | InstallGridToolTip.OnMouseMotion | def OnMouseMotion(event):# event.GetRow() and event.GetCol() would be nice to have here,# but as this is a mouse event, not a grid event, they are not# available and we need to compute them by hand.x, y = self.CalcUnscrolledPosition(event.GetPosition())row = self.YToRow(y)col = self.XToCol(x)hinttext = ''win = event.Ge... | 16 | 25 | 1 | 196 | 0 | 5,391 | 5,418 | 5,391 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (InstallGridToolTip.OnMouseMotion) defined within the public class called public.The function start at line 5391 and ends at 5418. It contains 25 lines of code and it has a cyclomatic complexity of 16. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | InstallGridToolTip | def InstallGridToolTip(self, rowcolhintcallback, colLblCallback=None,rowLblCallback=None):'''code to display a tooltip for each item on a gridfrom http://wiki.wxpython.org/wxGrid%20ToolTips (buggy!), expanded tocolumn and row labels using hints fromhttps://groups.google.com/forum/#!topic/wxPython-users/bm8OARRVDCs:para... | 6 | 12 | 4 | 128 | 0 | 5,371 | 5,426 | 5,371 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (InstallGridToolTip) defined within the public class called public.The function start at line 5371 and ends at 5426. It contains 12 lines of code and it has a cyclomatic complexity of 6. It takes 4 parameters, represented as [5371.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | setupPopup.setupPopup.createPopup.OnPopup | def OnPopup(event):callback = callList[menuIndx.index(event.GetId())]self.ClearSelection()for r in indx:self.SelectRow(r,True)callback(event) | 2 | 6 | 1 | 42 | 0 | 5,455 | 5,460 | 5,455 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (setupPopup.setupPopup.createPopup.OnPopup) defined within the public class called public.The function start at line 5455 and ends at 5460. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | setupPopup.createPopup | def createPopup(event):def OnPopup(event):callback = callList[menuIndx.index(event.GetId())]self.ClearSelection()for r in indx:self.SelectRow(r,True)callback(event)# get selectionsindx = self.GetSelectedRows()indx += [row for row,col in self.GetSelectedCells()]for top,bottom in zip([r for r,c in self.GetSelectionBlockT... | 8 | 21 | 1 | 188 | 0 | 5,454 | 5,481 | 5,454 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (setupPopup.createPopup) defined within the public class called public.The function start at line 5454 and ends at 5481. It contains 21 lines of code and it has a cyclomatic complexity of 8. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | setupPopup | def setupPopup(self,lblList,callList):'''define a callback that creates a popup menu. The rows associatedwith the items selected items are selected in the table and ifan item is called from the menu, the corresponding functionis called to perform an action on the:param list lblList: list of str items that will be place... | 1 | 3 | 3 | 14 | 0 | 5,428 | 5,482 | 5,428 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (setupPopup) defined within the public class called public.The function start at line 5428 and ends at 5482. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [5428.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | completeEdits | def completeEdits(self):'complete any outstanding edits'if self.IsCellEditControlEnabled(): # complete any grid edits in progressself.SaveEditControlValue()self.HideCellEditControl()self.DisableCellEditControl() | 2 | 6 | 1 | 28 | 0 | 5,484 | 5,489 | 5,484 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (completeEdits) defined within the public class called public.The function start at line 5484 and ends at 5489. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__ | def __init__(self, data=[], rowLabels=None, colLabels=None, types = None):wg.GridTableBase.__init__(self)self.colLabels = colLabelsself.rowLabels = rowLabelsself.dataTypes = typesself.data = data | 1 | 6 | 5 | 50 | 0 | 5,495 | 5,500 | 5,495 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 5495 and ends at 5500. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [5495.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | AppendRows | def AppendRows(self, numRows=1):self.data.append([])return True | 1 | 3 | 2 | 20 | 0 | 5,502 | 5,504 | 5,502 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (AppendRows) defined within the public class called public.The function start at line 5502 and ends at 5504. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [5502.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | CanGetValueAs | def CanGetValueAs(self, row, col, typeName):if self.dataTypes:colType = self.dataTypes[col].split(':')[0]if typeName == colType:return Trueelse:return Falseelse:return False | 3 | 9 | 4 | 47 | 0 | 5,506 | 5,514 | 5,506 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (CanGetValueAs) defined within the public class called public.The function start at line 5506 and ends at 5514. It contains 9 lines of code and it has a cyclomatic complexity of 3. It takes 4 parameters, represented as [5506.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | CanSetValueAs | def CanSetValueAs(self, row, col, typeName):return self.CanGetValueAs(row, col, typeName) | 1 | 2 | 4 | 22 | 0 | 5,516 | 5,517 | 5,516 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (CanSetValueAs) defined within the public class called public.The function start at line 5516 and ends at 5517. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [5516.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | DeleteRow | def DeleteRow(self,pos):data = self.GetData()self.SetData([])new = []for irow,row in enumerate(data):if irow != pos:new.append(row)self.SetData(new) | 3 | 8 | 2 | 52 | 0 | 5,519 | 5,526 | 5,519 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (DeleteRow) defined within the public class called public.The function start at line 5519 and ends at 5526. It contains 8 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [5519.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetColLabelValue | def GetColLabelValue(self, col):if self.colLabels:return self.colLabels[col] | 2 | 3 | 2 | 19 | 0 | 5,528 | 5,530 | 5,528 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetColLabelValue) defined within the public class called public.The function start at line 5528 and ends at 5530. It contains 3 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [5528.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetData | def GetData(self):data = []for row in range(self.GetNumberRows()):data.append(self.GetRowValues(row))return data | 2 | 5 | 1 | 34 | 0 | 5,532 | 5,536 | 5,532 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetData) defined within the public class called public.The function start at line 5532 and ends at 5536. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetNumberCols | def GetNumberCols(self):try:return len(self.colLabels)except TypeError:return None | 2 | 5 | 1 | 19 | 0 | 5,538 | 5,542 | 5,538 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetNumberCols) defined within the public class called public.The function start at line 5538 and ends at 5542. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetNumberRows | def GetNumberRows(self):return len(self.data) | 1 | 2 | 1 | 12 | 0 | 5,544 | 5,545 | 5,544 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetNumberRows) defined within the public class called public.The function start at line 5544 and ends at 5545. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetRowLabelValue | def GetRowLabelValue(self, row):if self.rowLabels:return self.rowLabels[row] | 2 | 3 | 2 | 19 | 0 | 5,547 | 5,549 | 5,547 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetRowLabelValue) defined within the public class called public.The function start at line 5547 and ends at 5549. It contains 3 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [5547.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetColValues | def GetColValues(self, col):data = []for row in range(self.GetNumberRows()):data.append(self.GetValue(row, col))return data | 2 | 5 | 2 | 38 | 0 | 5,551 | 5,555 | 5,551 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetColValues) defined within the public class called public.The function start at line 5551 and ends at 5555. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [5551.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetRowValues | def GetRowValues(self, row):data = []for col in range(self.GetNumberCols()):data.append(self.GetValue(row, col))return data | 2 | 5 | 2 | 38 | 0 | 5,557 | 5,561 | 5,557 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetRowValues) defined within the public class called public.The function start at line 5557 and ends at 5561. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [5557.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetTypeName | def GetTypeName(self, row, col):try:if self.data[row][col] is None:return wg.GRID_VALUE_STRINGreturn self.dataTypes[col]except (TypeError,IndexError):return wg.GRID_VALUE_STRING | 3 | 7 | 3 | 46 | 0 | 5,563 | 5,569 | 5,563 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetTypeName) defined within the public class called public.The function start at line 5563 and ends at 5569. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [5563.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetValue | def GetValue(self, row, col):try:if self.data[row][col] is None: return ""return self.data[row][col]except IndexError:return None | 3 | 6 | 3 | 41 | 0 | 5,571 | 5,576 | 5,571 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetValue) defined within the public class called public.The function start at line 5571 and ends at 5576. It contains 6 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [5571.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | InsertRows | def InsertRows(self, pos, rows):for row in range(rows):self.data.insert(pos,[])pos += 1 | 2 | 4 | 3 | 31 | 0 | 5,578 | 5,581 | 5,578 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (InsertRows) defined within the public class called public.The function start at line 5578 and ends at 5581. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [5578.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | IsEmptyCell | def IsEmptyCell(self,row,col):try:return not self.data[row][col]except IndexError:return True | 2 | 5 | 3 | 27 | 0 | 5,583 | 5,587 | 5,583 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (IsEmptyCell) defined within the public class called public.The function start at line 5583 and ends at 5587. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [5583.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnKeyPress | def OnKeyPress(self, event):dellist = self.GetSelectedRows()if event.GetKeyCode() == wx.WXK_DELETE and dellist:grid = self.GetView()for i in dellist: grid.DeleteRow(i) | 4 | 5 | 2 | 45 | 0 | 5,589 | 5,593 | 5,589 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnKeyPress) defined within the public class called public.The function start at line 5589 and ends at 5593. It contains 5 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [5589.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | SetColLabelValue | def SetColLabelValue(self, col, label):numcols = self.GetNumberCols()if col > numcols-1:self.colLabels.append(label)else:self.colLabels[col]=label | 2 | 6 | 3 | 41 | 0 | 5,595 | 5,600 | 5,595 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (SetColLabelValue) defined within the public class called public.The function start at line 5595 and ends at 5600. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [5595.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | SetData | def SetData(self,data):for row in range(len(data)):self.SetRowValues(row,data[row]) | 2 | 3 | 2 | 29 | 0 | 5,602 | 5,604 | 5,602 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (SetData) defined within the public class called public.The function start at line 5602 and ends at 5604. It contains 3 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [5602.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | SetRowLabelValue | def SetRowLabelValue(self, row, label):self.rowLabels[row]=label | 1 | 2 | 3 | 17 | 0 | 5,606 | 5,607 | 5,606 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (SetRowLabelValue) defined within the public class called public.The function start at line 5606 and ends at 5607. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [5606.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | SetRowValues | def SetRowValues(self,row,data):self.data[row] = data | 1 | 2 | 3 | 17 | 0 | 5,609 | 5,610 | 5,609 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (SetRowValues) defined within the public class called public.The function start at line 5609 and ends at 5610. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [5609.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | SetValue.innerSetValue | def innerSetValue(row, col, value):try:self.data[row][col] = valueexcept TypeError:returnexcept IndexError: # has this been tested?#print row,col,valueif self.GetNumberRows() == 0: return# add a new rowif row > self.GetNumberRows():self.data.append([''] * self.GetNumberCols())elif col > self.GetNumberCols():for row in ... | 7 | 13 | 3 | 107 | 0 | 5,613 | 5,628 | 5,613 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (SetValue.innerSetValue) defined within the public class called public.The function start at line 5613 and ends at 5628. It contains 13 lines of code and it has a cyclomatic complexity of 7. It takes 3 parameters, represented as [5613.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | SetValue | def SetValue(self, row, col, value):def innerSetValue(row, col, value):try:self.data[row][col] = valueexcept TypeError:returnexcept IndexError: # has this been tested?#print row,col,valueif self.GetNumberRows() == 0: return# add a new rowif row > self.GetNumberRows():self.data.append([''] * self.GetNumberCols())elif co... | 1 | 3 | 4 | 21 | 0 | 5,612 | 5,629 | 5,612 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (SetValue) defined within the public class called public.The function start at line 5612 and ends at 5629. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [5612.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__ | def __init__(self,grid):if 'phoenix' in wx.version():wg.GridCellEditor.__init__(self)else:wg.PyGridCellEditor.__init__(self) | 2 | 5 | 2 | 34 | 0 | 5,640 | 5,644 | 5,640 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 5640 and ends at 5644. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [5640.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | Create | def Create(self, parent, id, evtHandler):self._tc = wx.TextCtrl(parent, id, "")self._tc.SetInsertionPoint(0)self.SetControl(self._tc)if evtHandler:self._tc.PushEventHandler(evtHandler)self._tc.Bind(wx.EVT_CHAR, self.OnChar) | 2 | 7 | 4 | 66 | 0 | 5,646 | 5,654 | 5,646 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (Create) defined within the public class called public.The function start at line 5646 and ends at 5654. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [5646.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | SetSize | def SetSize(self, rect):if 'phoenix' in wx.version():self._tc.SetSize(rect.x, rect.y, rect.width+2, rect.height+2, wx.SIZE_ALLOW_MINUS_ONE)else:self._tc.SetDimensions(rect.x, rect.y, rect.width+2, rect.height+2,wx.SIZE_ALLOW_MINUS_ONE) | 2 | 6 | 2 | 78 | 0 | 5,656 | 5,661 | 5,656 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (SetSize) defined within the public class called public.The function start at line 5656 and ends at 5661. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [5656.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | BeginEdit | def BeginEdit(self, row, col, grid):self.startValue = grid.GetTable().GetValue(row, col)self._tc.SetValue(str(self.startValue))self._tc.SetInsertionPointEnd()self._tc.SetFocus()self._tc.SetSelection(0, self._tc.GetLastPosition()) | 1 | 6 | 4 | 70 | 0 | 5,663 | 5,668 | 5,663 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (BeginEdit) defined within the public class called public.The function start at line 5663 and ends at 5668. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [5663.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | EndEdit | def EndEdit(self, row, col, grid, oldVal=None):changed = Falseself.nextval = self.startValueval = self._tc.GetValue().lower().strip()val = val.replace(',','.') # allow , for decimalif val != str(self.startValue):changed = Trueneg = Falsemult = Falsedivide = Falseadd = Falseif val.startswith('*'):mult = Trueval = val[1:... | 17 | 46 | 5 | 297 | 0 | 5,670 | 5,719 | 5,670 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (EndEdit) defined within the public class called public.The function start at line 5670 and ends at 5719. It contains 46 lines of code and it has a cyclomatic complexity of 17. It takes 5 parameters, represented as [5670.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | ApplyEdit | def ApplyEdit(self, row, col, grid):""" Called only in wx >= 2.9Save the value of the control into the grid if EndEdit() returns as True"""grid.GetTable().SetValue(row, col, self.nextval) # update the table | 1 | 2 | 4 | 28 | 0 | 5,721 | 5,725 | 5,721 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (ApplyEdit) defined within the public class called public.The function start at line 5721 and ends at 5725. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [5721.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | Reset | def Reset(self):self._tc.SetValue(str(self.startValue))self._tc.SetInsertionPointEnd() | 1 | 3 | 1 | 25 | 0 | 5,727 | 5,729 | 5,727 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (Reset) defined within the public class called public.The function start at line 5727 and ends at 5729. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | Clone | def Clone(self,grid):return GridFractionEditor(grid) | 1 | 2 | 2 | 12 | 0 | 5,731 | 5,732 | 5,731 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (Clone) defined within the public class called public.The function start at line 5731 and ends at 5732. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [5731.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | StartingKey | def StartingKey(self, evt):self.OnChar(evt)if evt.GetSkipped():self._tc.EmulateKeyPress(evt) | 2 | 4 | 2 | 28 | 0 | 5,734 | 5,737 | 5,734 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (StartingKey) defined within the public class called public.The function start at line 5734 and ends at 5737. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [5734.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnChar | def OnChar(self, evt):key = evt.GetKeyCode()if key < 32 or key >= 127: # outside printable ascii range; needed for backspace etc.evt.Skip()elif chr(key).lower() in '.+-*/0123456789cosind(),':evt.Skip()else:evt.StopPropagation() | 4 | 8 | 2 | 52 | 0 | 5,739 | 5,746 | 5,739 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnChar) defined within the public class called public.The function start at line 5739 and ends at 5746. It contains 8 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [5739.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | askSaveFile | def askSaveFile(G2frame,defnam,extension,longFormatName,parent=None):'''Ask the user to supply a file name:param wx.Frame G2frame: The main GSAS-II window:param str defnam: a default file name:param str extension: the default file extension beginning with a '.':param str longFormatName: a description of the type of fil... | 4 | 18 | 5 | 130 | 4 | 5,749 | 5,779 | 5,749 | null | ['pth', 'parent', 'filename', 'dlg'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (askSaveFile) defined within the public class called public.The function start at line 5749 and ends at 5779. It contains 18 lines of code and it has a cyclomatic complexity of 4. It takes 5 parameters, represented as [5749.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | askSaveDirectory | def askSaveDirectory(G2frame):'''Ask the user to supply a directory name. Path name is used as thestarting point for the next export path search.:returns: a directory name (str) or None if Cancel is pressed'''pth = GetExportPath(G2frame)dlg = wx.DirDialog(G2frame,'Input directory where file(s) will be written',pth,wx.D... | 3 | 13 | 1 | 72 | 3 | 5,781 | 5,798 | 5,781 | null | ['pth', 'filename', 'dlg'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (askSaveDirectory) defined within the public class called public.The function start at line 5781 and ends at 5798. It contains 13 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__ | def __init__(self, parent, name='',size = None,style=wxaui_NB_TOPSCROLL):wx.aui.AuiNotebook.__init__(self, parent, style=style)if size: self.SetSize(size)self.parent = parentself.PageChangeHandler = None | 2 | 5 | 5 | 54 | 0 | 5,804 | 5,808 | 5,804 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 5804 and ends at 5808. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 5 parameters, represented as [5804.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | PageChangeEvent | def PageChangeEvent(self,event):pass | 1 | 2 | 2 | 8 | 0 | 5,810 | 5,811 | 5,810 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (PageChangeEvent) defined within the public class called public.The function start at line 5810 and ends at 5811. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [5810.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | Clear | def Clear(self):GSNoteBook.DeleteAllPages(self) | 1 | 2 | 1 | 11 | 0 | 5,813 | 5,814 | 5,813 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (Clear) defined within the public class called public.The function start at line 5813 and ends at 5814. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | FindPage | def FindPage(self,name):numPage = self.GetPageCount()for page in range(numPage):if self.GetPageText(page) == name:return pagereturn None | 3 | 6 | 2 | 36 | 0 | 5,816 | 5,821 | 5,816 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (FindPage) defined within the public class called public.The function start at line 5816 and ends at 5821. It contains 6 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [5816.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | ChangeSelection | def ChangeSelection(self,page):# in wx.Notebook ChangeSelection is like SetSelection, but it# does not invoke the event related to pressing the tab button# I don't see a way to do that in aui.oldPage = self.GetSelection()self.SetSelection(page)return oldPage | 1 | 4 | 2 | 22 | 0 | 5,823 | 5,829 | 5,823 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (ChangeSelection) defined within the public class called public.The function start at line 5823 and ends at 5829. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [5823.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__ | def __init__(self,frame,includeTree=False,morehelpitems=[]):wx.Menu.__init__(self,'')self.HelpById = {}self.frame = frameself.Append(wx.ID_ABOUT,'&About GSAS-II','Shows version and citation info')frame.Bind(wx.EVT_MENU, self.OnHelpAbout, id=wx.ID_ABOUT)if GSASIIpath.HowIsG2Installed().startswith('git'):helpobj = self.A... | 8 | 45 | 4 | 436 | 0 | 5,866 | 5,913 | 5,866 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 5866 and ends at 5913. It contains 45 lines of code and it has a cyclomatic complexity of 8. It takes 4 parameters, represented as [5866.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnHelpById | def OnHelpById(self,event):'''Called when Help on... is pressed in a menu. Brings up a web pagefor documentation. Uses the G2frame.dataWindow.helpKey value to selectwhat help is shown, unless a special help key value has been defined for the calling menu id (via a lookup in self.HelpById[], which is usedfor Tutorials &... | 4 | 14 | 2 | 87 | 0 | 5,915 | 5,941 | 5,915 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnHelpById) defined within the public class called public.The function start at line 5915 and ends at 5941. It contains 14 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [5915.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnHelpAbout | def OnHelpAbout(self, event):"Display an 'About GSAS-II' box"try:import wx.adv as wxadv# AboutBox moved here in Phoenixexcept:wxadv = wxinfo = wxadv.AboutDialogInfo()info.Name = 'GSAS-II'info.SetVersion(GSASIIpath.getG2VersionInfo())info.Developers = ['Robert B. Von Dreele','Brian H. Toby']info.WebSite = ("https://gsas... | 2 | 22 | 2 | 84 | 0 | 5,943 | 5,968 | 5,943 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnHelpAbout) defined within the public class called public.The function start at line 5943 and ends at 5968. It contains 22 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [5943.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnCheckUpdates | def OnCheckUpdates(self,event):'''Check if the GSAS-II repository has an update for the current source filesand perform that update if requested.'''if GSASIIpath.HowIsG2Installed().startswith('git'):gitCheckUpdates(self.frame)else:dlg = wx.MessageDialog(self.frame, 'Cannot update GSAS-II because it was not installed wi... | 2 | 10 | 2 | 57 | 0 | 5,970 | 5,982 | 5,970 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnCheckUpdates) defined within the public class called public.The function start at line 5970 and ends at 5982. It contains 10 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [5970.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnSelectVersion | def OnSelectVersion(self,event):'''Allow the user to select a specific version of GSAS-II'''if GSASIIpath.HowIsG2Installed().startswith('git'):gitSelectVersion(self.frame)else:dlg = wx.MessageDialog(self.frame, 'Cannot update GSAS-II because it was not installed with a version control system or the VCS system could not... | 2 | 10 | 2 | 57 | 0 | 5,984 | 5,995 | 5,984 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnSelectVersion) defined within the public class called public.The function start at line 5984 and ends at 5995. It contains 10 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [5984.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | ShowCitations.copy2clip | def copy2clip(event):'copy citation info to clipboard'if wx.TheClipboard.Open():wx.TheClipboard.SetData(wx.TextDataObject(msg))wx.TheClipboard.Close()else:G2frame.ErrorDialog('Clipboard locked','Sorry, unable to access the clipboard, try again later. You might need to restart GSAS-II or reboot')returnG2MessageBox(paren... | 2 | 12 | 1 | 70 | 0 | 6,001 | 6,012 | 6,001 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (ShowCitations.copy2clip) defined within the public class called public.The function start at line 6001 and ends at 6012. It contains 12 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | ShowCitations | def ShowCitations(event):'''Show all work that GSAS-II users may wish to cite'''parent = wx.GetApp().GetMainTopWindow()def copy2clip(event):'copy citation info to clipboard'if wx.TheClipboard.Open():wx.TheClipboard.SetData(wx.TextDataObject(msg))wx.TheClipboard.Close()else:G2frame.ErrorDialog('Clipboard locked','Sorry,... | 2 | 18 | 1 | 93 | 2 | 5,997 | 6,027 | 5,997 | null | ['parent', 'msg'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (ShowCitations) defined within the public class called public.The function start at line 5997 and ends at 6027. It contains 18 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.