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 | _onClose | def _onClose(self,event):'Used on Cancel: Restore original values & close the window'for d,i,v in zip(self.dictlst,self.elemlst,self.orig):d[i] = vfor i in range(len(self.checkdictlst)):self.checkdictlst[i][self.checkelemlst[i]] = self.StartCheckValues[i]self.EndModal(wx.ID_CANCEL) | 3 | 7 | 2 | 78 | 0 | 1,695 | 1,701 | 1,695 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_onClose) defined within the public class called public.The function start at line 1695 and ends at 1701. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [1695.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | ControlOKButton | def ControlOKButton(self,setvalue):'''Enable or Disable the OK button for the dialog. Note that this ispassed into the ValidatedTxtCtrl for use by validators.:param bool setvalue: if True, all entries in the dialog arechecked for validity. if False then the OK button is disabled.'''if setvalue: # turn button on, do onl... | 4 | 10 | 2 | 49 | 0 | 1,703 | 1,719 | 1,703 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (ControlOKButton) defined within the public class called public.The function start at line 1703 and ends at 1719. It contains 10 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [1703.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__ | def __init__(self,parent, title, header, ChoiceList, toggle=True, monoFont=False, filterBox=True, extraOpts={}, selected=[], **kw):# process keyword parameters, notably styleoptions = {'size':(320,310), # default Frame keywords 'style':wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.CENTRE| wx.OK | wx.CANCEL, }options.upda... | 16 | 100 | 11 | 1,163 | 0 | 1,750 | 1,857 | 1,750 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 1750 and ends at 1857. It contains 100 lines of code and it has a cyclomatic complexity of 16. It takes 11 parameters, represented as [1750.0] 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 | 1,859 | 1,862 | 1,859 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (onOk) defined within the public class called public.The function start at line 1859 and ends at 1862. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [1859.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | onCancel | def onCancel(self,event):parent = self.GetParent()if parent is not None: parent.Raise()self.EndModal(wx.ID_CANCEL) | 2 | 4 | 2 | 33 | 0 | 1,864 | 1,867 | 1,864 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (onCancel) defined within the public class called public.The function start at line 1864 and ends at 1867. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [1864.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnStride | def OnStride(self,event):self.Stride = int(self.stride.GetValue()) | 1 | 2 | 2 | 21 | 0 | 1,869 | 1,870 | 1,869 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnStride) defined within the public class called public.The function start at line 1869 and ends at 1870. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1869.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | SetRange | def SetRange(self,event):'''Respond to a press of the Set Range button. Set the range flag andthe caption next to the button'''self.settingRange = self.rangeBut.GetValue()if self.settingRange:self.rangeCapt.SetLabel('Select range start')else:self.rangeCapt.SetLabel('')self.rangeFirst = None | 2 | 7 | 2 | 47 | 0 | 1,872 | 1,881 | 1,872 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (SetRange) defined within the public class called public.The function start at line 1872 and ends at 1881. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [1872.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetSelections | def GetSelections(self):'Returns a list of the indices for the selected choices'# update self.Selections with settings for displayed itemsfor i in range(len(self.filterlist)):self.Selections[self.filterlist[i]] = self.clb.IsChecked(i)# return all selections, shown or hiddenreturn [i for i in range(len(self.Selections))... | 4 | 5 | 1 | 62 | 0 | 1,883 | 1,889 | 1,883 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetSelections) defined within the public class called public.The function start at line 1883 and ends at 1889. It contains 5 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | SetSelections | def SetSelections(self,selList):'''Sets the selection indices in selList as selected. Resets any previousselections for compatibility with wx.MultiChoiceDialog. Note thatthe state for only the filtered items is shown.:param list selList: indices of items to be selected. These indicesare referenced to the order in self.... | 2 | 5 | 2 | 41 | 0 | 1,891 | 1,902 | 1,891 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (SetSelections) defined within the public class called public.The function start at line 1891 and ends at 1902. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [1891.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | _ShowSelections | def _ShowSelections(self):'Show the selection state for displayed items'if 'phoenix' in wx.version():self.clb.SetCheckedItems([i for i in range(len(self.filterlist)) if self.Selections[self.filterlist[i]]]) # Note anything previously checked will be cleared.else:self.clb.SetChecked([i for i in range(len(self.filterlist... | 6 | 10 | 1 | 85 | 0 | 1,904 | 1,913 | 1,904 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_ShowSelections) defined within the public class called public.The function start at line 1904 and ends at 1913. It contains 10 lines of code and it has a cyclomatic complexity of 6. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | _SetAll | def _SetAll(self,event):'Set all viewed choices on'if 'phoenix' in wx.version():self.clb.SetCheckedItems(range(0,len(self.filterlist),self.Stride))else:self.clb.SetChecked(range(0,len(self.filterlist),self.Stride))self.stride.SetValue('1')self.Stride = 1 | 2 | 8 | 2 | 76 | 0 | 1,915 | 1,922 | 1,915 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_SetAll) defined within the public class called public.The function start at line 1915 and ends at 1922. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [1915.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | _ToggleAll | def _ToggleAll(self,event):'flip the state of all viewed choices'for i in range(len(self.filterlist)):self.clb.Check(i,not self.clb.IsChecked(i)) | 2 | 4 | 2 | 39 | 0 | 1,924 | 1,927 | 1,924 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_ToggleAll) defined within the public class called public.The function start at line 1924 and ends at 1927. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [1924.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | onChar | def onChar(self,event):'Respond to keyboard events in the Filter box'self.OKbtn.Enable(False)if self.timer.IsRunning():self.timer.Stop()self.timer.Start(1000,oneShot=True)if event: event.Skip() | 3 | 7 | 2 | 52 | 0 | 1,929 | 1,935 | 1,929 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (onChar) defined within the public class called public.The function start at line 1929 and ends at 1935. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [1929.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnCheck | def OnCheck(self,event):'''for CheckListBox events; if Set Range is in use, this sets/clears allentries in range between start and end according to the value in start.Repeated clicks on the start change the checkbox state, but do not triggerthe range copy.The caption next to the button is updated on the first button pr... | 5 | 15 | 2 | 128 | 0 | 1,937 | 1,957 | 1,937 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnCheck) defined within the public class called public.The function start at line 1937 and ends at 1957. It contains 15 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [1937.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | Filter | def Filter(self,event):'''Read text from filter control and select entries that match. Called byTimer after a delay with no input or if Enter is pressed.'''if self.timer.IsRunning():self.timer.Stop()self.GetSelections() # record current selectionstxt = self.filterBox.GetValue()txt = txt.lower()self.clb.Clear()self.Upda... | 6 | 24 | 2 | 164 | 0 | 1,959 | 1,986 | 1,959 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (Filter) defined within the public class called public.The function start at line 1959 and ends at 1986. It contains 24 lines of code and it has a cyclomatic complexity of 6. It takes 2 parameters, represented as [1959.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__ | def __init__(self, parent, title, ChoiceList, SelectList, toggle=True, monoFont=False, filterBox=True, OnChange=None, OnChangeArgs=[], helpText=None):self.SelectList = SelectListself.ChoiceList = ['%4d) %s'%(i,item) for i,item in enumerate(ChoiceList)] # numbered list of choices (list of str values)self.frm = parentsel... | 8 | 61 | 11 | 840 | 0 | 2,011 | 2,074 | 2,011 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 2011 and ends at 2074. It contains 61 lines of code and it has a cyclomatic complexity of 8. It takes 11 parameters, represented as [2011.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnStride | def OnStride(self,event):self.Stride = int(self.stride.GetValue()) | 1 | 2 | 2 | 21 | 0 | 2,076 | 2,077 | 1,869 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnStride) defined within the public class called public.The function start at line 2076 and ends at 2077. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1869.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | SetRange | def SetRange(self,event):'''Respond to a press of the Set Range button. Set the range flag andthe caption next to the button'''self.settingRange = self.rangeBut.GetValue()if self.settingRange:self.rangeCapt.SetLabel('Select range start')else:self.rangeCapt.SetLabel('')self.rangeFirst = None | 2 | 7 | 2 | 47 | 0 | 2,079 | 2,088 | 1,872 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (SetRange) defined within the public class called public.The function start at line 2079 and ends at 2088. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [1872.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetSelections | def GetSelections(self):'Returns a list of the indices for the selected choices'# update self.Selections with settings for displayed itemsfor i in range(len(self.filterlist)):self.Selections[self.filterlist[i]] = self.clb.IsChecked(i)# return all selections, shown or hiddenreturn [i for i in range(len(self.Selections))... | 4 | 5 | 1 | 62 | 0 | 2,090 | 2,096 | 1,883 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetSelections) defined within the public class called public.The function start at line 2090 and ends at 2096. It contains 5 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | SetSelections | def SetSelections(self,selList):'''Sets the selection indices in selList as selected. Resets any previousselections for compatibility with wx.MultiChoiceDialog. Note thatthe state for only the filtered items is shown.:param list selList: indices of items to be selected. These indicesare referenced to the order in self.... | 2 | 5 | 2 | 41 | 0 | 2,098 | 2,109 | 1,891 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (SetSelections) defined within the public class called public.The function start at line 2098 and ends at 2109. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [1891.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | _ShowSelections | def _ShowSelections(self):'Show the selection state for displayed items'if 'phoenix' in wx.version():self.clb.SetCheckedItems([i for i in range(len(self.filterlist)) if self.Selections[self.filterlist[i]]]) # Note anything previously checked will be cleared.else:self.clb.SetChecked([i for i in range(len(self.filterlist... | 11 | 19 | 1 | 164 | 0 | 2,111 | 2,129 | 2,111 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_ShowSelections) defined within the public class called public.The function start at line 2111 and ends at 2129. It contains 19 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 | _SetAll | def _SetAll(self,event):'Set all viewed choices on'if 'phoenix' in wx.version():self.clb.SetCheckedItems(range(0,len(self.filterlist),self.Stride))else:self.clb.SetChecked(range(0,len(self.filterlist),self.Stride))self.stride.SetValue('1')self.Stride = 1self.GetSelections() # record current selectionsself._ShowSelectio... | 2 | 10 | 2 | 86 | 0 | 2,131 | 2,140 | 2,131 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_SetAll) defined within the public class called public.The function start at line 2131 and ends at 2140. It contains 10 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [2131.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | _ToggleAll | def _ToggleAll(self,event):'flip the state of all viewed choices'for i in range(len(self.filterlist)):self.clb.Check(i,not self.clb.IsChecked(i))self.GetSelections() # record current selectionsself._ShowSelections() | 2 | 6 | 2 | 49 | 0 | 2,142 | 2,147 | 2,142 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_ToggleAll) defined within the public class called public.The function start at line 2142 and ends at 2147. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [2142.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | onChar | def onChar(self,event):'Respond to keyboard events in the Filter box'if self.timer.IsRunning():self.timer.Stop()self.timer.Start(1000,oneShot=True)if event: event.Skip() | 3 | 6 | 2 | 44 | 0 | 2,149 | 2,154 | 2,149 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (onChar) defined within the public class called public.The function start at line 2149 and ends at 2154. It contains 6 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [2149.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnCheck | def OnCheck(self,event):'''for CheckListBox events; if Set Range is in use, this sets/clears allentries in range between start and end according to the value in start.Repeated clicks on the start change the checkbox state, but do not triggerthe range copy.The caption next to the button is updated on the first button pr... | 5 | 18 | 2 | 147 | 0 | 2,156 | 2,179 | 2,156 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnCheck) defined within the public class called public.The function start at line 2156 and ends at 2179. It contains 18 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [2156.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | Filter | def Filter(self,event):'''Read text from filter control and select entries that match. Called byTimer after a delay with no input or if Enter is pressed.'''if self.timer.IsRunning():self.timer.Stop()self.GetSelections() # record current selectionstxt = self.filterBox.GetValue()self.clb.Clear()self.filterlist = []if txt... | 5 | 19 | 2 | 139 | 0 | 2,181 | 2,203 | 2,181 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (Filter) defined within the public class called public.The function start at line 2181 and ends at 2203. It contains 19 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [2181.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | SelectEdit1Var.unkey | def unkey(dct,keylist):'''dive into a nested set of dicts/lists applying keys in keylistconsecutively'''d = dctfor k in keylist:d = d[k]return d | 2 | 5 | 2 | 24 | 0 | 2,230 | 2,237 | 2,230 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (SelectEdit1Var.unkey) defined within the public class called public.The function start at line 2230 and ends at 2237. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [2230.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | SelectEdit1Var.OnChoice | def OnChoice(event):'Respond when a parameter is selected in the Choice box'if 'phoenix' in wx.version():valSizer.Clear(True)else:valSizer.DeleteWindows()lbl = event.GetString()copyopts['currentsel'] = lbli = labelLst.index(lbl)OKbtn.Enable(True)ch.SetLabel(lbl)args = {}if dspLst[i]:args = {'nDig':dspLst[i]}Val = Valid... | 3 | 22 | 1 | 147 | 0 | 2,239 | 2,261 | 2,239 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (SelectEdit1Var.OnChoice) defined within the public class called public.The function start at line 2239 and ends at 2261. It contains 22 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 | SelectEdit1Var | def SelectEdit1Var(G2frame,array,labelLst,elemKeysLst,dspLst,refFlgElem):'''Select a variable from a list, then edit it and select histogramsto copy it to.:param wx.Frame G2frame: main GSAS-II frame:param dict array: the array (dict or list) where values to be edited are kept:param list labelLst: labels for each data i... | 19 | 114 | 6 | 1,018 | 31 | 2,205 | 2,382 | 2,205 | null | ['args', 'hData', 'i', 'histList', 'refkeys', 'copyList', 'refdictlst', 'ch', 'msg', 'subSizer', 'd', 'hstData', 'saveArray', 'dlg', 'copyopts', 'hst', 'instData', 'prelbl', 'btn', 'Val', 'lbl', 'dictlst', 'btnsizer', 'OKbtn', 'keyLst', 'valSizer', 'TreeItemType', 'mainSizer', 'Id', 'ttl', 'valNow'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (SelectEdit1Var) defined within the public class called public.The function start at line 2205 and ends at 2382. It contains 114 lines of code and it has a cyclomatic complexity of 19. It takes 6 parameters, represented as [2205.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__ | def __init__(self,parent, title, header, ChoiceList, monoFont=False, filterBox=True, **kw):# process keyword parameters, notably styleoptions = {'size':(320,310), # default Frame keywords 'style':wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.CENTRE| wx.OK | wx.CANCEL, }options.update(kw)self.ChoiceList = ChoiceListself.f... | 7 | 53 | 8 | 599 | 0 | 2,418 | 2,475 | 2,418 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 2418 and ends at 2475. It contains 53 lines of code and it has a cyclomatic complexity of 7. It takes 8 parameters, represented as [2418.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetSelection | def GetSelection(self):'Returns the index of the selected choice'i = self.clb.GetSelection()if i < 0 or i >= len(self.filterlist):return wx.NOT_FOUNDreturn self.filterlist[i] | 3 | 6 | 1 | 40 | 0 | 2,476 | 2,481 | 2,476 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetSelection) defined within the public class called public.The function start at line 2476 and ends at 2481. It contains 6 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 | onChar | def onChar(self,event):self.OKbtn.Enable(False)if self.timer.IsRunning():self.timer.Stop()self.timer.Start(1000,oneShot=True)if event: event.Skip() | 3 | 6 | 2 | 51 | 0 | 2,482 | 2,487 | 2,482 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (onChar) defined within the public class called public.The function start at line 2482 and ends at 2487. It contains 6 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [2482.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | Filter | def Filter(self,event):if self.timer.IsRunning():self.timer.Stop()txt = self.filterBox.GetValue()self.clb.Clear()self.Update()self.filterlist = []if txt:txt = txt.lower()ChoiceList = []for i,item in enumerate(self.ChoiceList):if item.lower().find(txt) != -1:ChoiceList.append(item)self.filterlist.append(i)else:self.filt... | 5 | 19 | 2 | 141 | 0 | 2,488 | 2,506 | 2,488 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (Filter) defined within the public class called public.The function start at line 2488 and ends at 2506. It contains 19 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [2488.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | onDoubleClick | def onDoubleClick(self,event):self.EndModal(wx.ID_OK) | 1 | 2 | 2 | 15 | 0 | 2,507 | 2,508 | 2,507 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (onDoubleClick) defined within the public class called public.The function start at line 2507 and ends at 2508. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [2507.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__ | def __init__(self,parent,title,colnames,rownames,flags):wx.Dialog.__init__(self,parent,-1,title,pos=wx.DefaultPosition,style=wx.DEFAULT_DIALOG_STYLE)self.panel = Noneself.colnames = colnamesself.rownames = rownamesself.flags = flagsself.newflags = copy.copy(flags)self.Draw() | 1 | 9 | 6 | 77 | 0 | 2,514 | 2,522 | 2,514 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 2514 and ends at 2522. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 6 parameters, represented as [2514.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | Draw.OnSelection | def OnSelection(event):Obj = event.GetEventObject()[name,ia] = Indx[Obj.GetId()]self.newflags[name][ia] = Obj.GetValue() | 1 | 4 | 1 | 41 | 0 | 2,527 | 2,530 | 2,527 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (Draw.OnSelection) defined within the public class called public.The function start at line 2527 and ends at 2530. It contains 4 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 | Draw | def Draw(self):Indx = {}def OnSelection(event):Obj = event.GetEventObject()[name,ia] = Indx[Obj.GetId()]self.newflags[name][ia] = Obj.GetValue()if self.panel:self.panel.DestroyChildren()#safe: wx.Panelself.panel.Destroy()self.panel = wx.Panel(self)mainSizer = wx.BoxSizer(wx.VERTICAL)flagSizer = wx.FlexGridSizer(0,len(s... | 6 | 36 | 1 | 387 | 0 | 2,524 | 2,565 | 2,524 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (Draw) defined within the public class called public.The function start at line 2524 and ends at 2565. It contains 36 lines of code and it has a cyclomatic complexity of 6. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetSelection | def GetSelection(self):return self.newflags | 1 | 2 | 1 | 9 | 0 | 2,567 | 2,568 | 2,567 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetSelection) defined within the public class called public.The function start at line 2567 and ends at 2568. 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 | 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 | 2,570 | 2,573 | 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 2570 and ends at 2573. 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 | OnCancel | def OnCancel(self,event):parent = self.GetParent()if parent is not None: parent.Raise()self.EndModal(wx.ID_CANCEL) | 2 | 4 | 2 | 33 | 0 | 2,575 | 2,578 | 2,575 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnCancel) defined within the public class called public.The function start at line 2575 and ends at 2578. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [2575.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | G2MessageBox | def G2MessageBox(parent,msg,title='Error'):'''Simple code to display a error or warning messageTODO: replace wx.MessageDialog with one derived from wx.Dialog becauseon most platforms wx.MessageDialog is a native widget and CentreOnParentwill not function.'''dlg = wx.MessageDialog(parent,StripIndents(msg), title, wx.OK|... | 1 | 5 | 3 | 50 | 1 | 2,581 | 2,591 | 2,581 | null | ['dlg'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (G2MessageBox) defined within the public class called public.The function start at line 2581 and ends at 2591. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [2581.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | ShowScrolledInfo | def ShowScrolledInfo(parent,txt,width=600,height=400,header='Warning info', buttonlist=None):'''Simple code to display possibly extensive error or warning textin a scrolled window.:param wx.Frame parent: parent window for:param str txt: text to be displayed:param int width: lateral of window in pixels (defaults to 600)... | 4 | 36 | 6 | 384 | 8 | 2,593 | 2,655 | 2,593 | null | ['btnsizer', 'txt', 'btn', 'mainSizer', 'dlg', 'txtSizer', 'ans', 'spanel'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (ShowScrolledInfo) defined within the public class called public.The function start at line 2593 and ends at 2655. It contains 36 lines of code and it has a cyclomatic complexity of 4. It takes 6 parameters, represented as [2593.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | ShowScrolledColText | def ShowScrolledColText(parent,txt,width=600,height=400,header='Warning info',col1len=999):'''Simple code to display tabular information in a scrolled wx.Dialogwindow.Lines ending with a colon (:) are centered across all columnsand have a grey background.Lines beginning and ending with '**' are also are centeredacross ... | 13 | 57 | 6 | 625 | 13 | 2,657 | 2,734 | 2,657 | null | ['cols', 'btnsizer', 't', 'item', 'st', 'items', 'btn', 'mainSizer', 'b', 'dlg', 's', 'txtSizer', 'spanel'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (ShowScrolledColText) defined within the public class called public.The function start at line 2657 and ends at 2734. It contains 57 lines of code and it has a cyclomatic complexity of 13. It takes 6 parameters, represented as [2657.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | G2ScrolledGrid | def G2ScrolledGrid(G2frame,lbl,title,tbl,colLbls,colTypes,maxSize=(600,300),comment=''):'''Display a scrolled table of information in a dialog window:param wx.Frame G2frame: parent for dialog:param str lbl: label for window:param str title: window title:param list tbl: list of lists where inner list is each row:param l... | 3 | 40 | 8 | 470 | 10 | 2,736 | 2,801 | 2,736 | null | ['rowlbl', 'sizer', 'scrGrid', 'btn', 'wxGrid', 'wxtbl', 'dlg', 'gridSizer', 'btnsizer', 'Size'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (G2ScrolledGrid) defined within the public class called public.The function start at line 2736 and ends at 2801. It contains 40 lines of code and it has a cyclomatic complexity of 3. It takes 8 parameters, represented as [2736.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__ | def __init__(self,parent,title,prompt,names,choices):wx.Dialog.__init__(self,parent,-1,title,pos=wx.DefaultPosition,style=wx.DEFAULT_DIALOG_STYLE)self.panel = Noneself.prompt = promptself.choices = choicesself.names = namesself.Draw() | 1 | 8 | 6 | 67 | 0 | 2,807 | 2,814 | 2,807 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 2807 and ends at 2814. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 6 parameters, represented as [2807.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | Draw.OnSelection | def OnSelection(event):Obj = event.GetEventObject()id = Indx[Obj.GetId()]self.choices[id] = Obj.GetValue().encode()#to avoid Unicode versionsself.Draw() | 1 | 5 | 1 | 43 | 0 | 2,819 | 2,823 | 2,819 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (Draw.OnSelection) defined within the public class called public.The function start at line 2819 and ends at 2823. It contains 5 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 | Draw | def Draw(self):Indx = {}def OnSelection(event):Obj = event.GetEventObject()id = Indx[Obj.GetId()]self.choices[id] = Obj.GetValue().encode()#to avoid Unicode versionsself.Draw()if self.panel:self.panel.DestroyChildren()#safe: wx.Panelself.panel.Destroy()self.panel = wx.Panel(self)mainSizer = wx.BoxSizer(wx.VERTICAL)main... | 5 | 35 | 1 | 370 | 0 | 2,816 | 2,856 | 2,816 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (Draw) defined within the public class called public.The function start at line 2816 and ends at 2856. It contains 35 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 | GetSelection | def GetSelection(self):return self.newflags | 1 | 2 | 1 | 9 | 0 | 2,858 | 2,859 | 2,567 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetSelection) defined within the public class called public.The function start at line 2858 and ends at 2859. 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 | 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 | 2,861 | 2,864 | 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 2861 and ends at 2864. 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 | OnCancel | def OnCancel(self,event):parent = self.GetParent()if parent is not None: parent.Raise()self.EndModal(wx.ID_CANCEL) | 2 | 4 | 2 | 33 | 0 | 2,866 | 2,869 | 2,575 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnCancel) defined within the public class called public.The function start at line 2866 and ends at 2869. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [2575.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__ | def __init__(self,parent,title,prompt,value,limits=[0.,1.],fmt='%.5g'):wx.Dialog.__init__(self,parent,-1,title,pos=wx.DefaultPosition,style=wx.DEFAULT_DIALOG_STYLE)self.CenterOnParent()mainSizer = wx.BoxSizer(wx.VERTICAL)mainSizer.Add(wx.StaticText(self,-1,prompt),0,wx.ALIGN_CENTER)#valItem = wx.TextCtrl(self,-1,value=... | 3 | 33 | 7 | 348 | 0 | 2,894 | 2,927 | 2,894 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 2894 and ends at 2927. It contains 33 lines of code and it has a cyclomatic complexity of 3. It takes 7 parameters, represented as [2894.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetValue | def GetValue(self):return self.buffer[0] | 1 | 2 | 1 | 12 | 0 | 2,929 | 2,930 | 2,929 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetValue) defined within the public class called public.The function start at line 2929 and ends at 2930. 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 | 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 | 2,932 | 2,935 | 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 2932 and ends at 2935. 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 | OnCancel | def OnCancel(self,event):parent = self.GetParent()if parent is not None: parent.Raise()self.EndModal(wx.ID_CANCEL) | 2 | 4 | 2 | 33 | 0 | 2,937 | 2,940 | 2,575 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnCancel) defined within the public class called public.The function start at line 2937 and ends at 2940. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [2575.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | ControlOKButton | def ControlOKButton(self,setvalue):'''Enable or Disable the OK button for the dialog. Note that this ispassed into the ValidatedTxtCtrl for use by validators.:param bool setvalue: if True, all entries in the dialog arechecked for validity. if False then the OK button is disabled.'''if setvalue: # turn button on, do onl... | 2 | 5 | 2 | 27 | 0 | 2,942 | 2,953 | 2,942 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (ControlOKButton) defined within the public class called public.The function start at line 2942 and ends at 2953. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [2942.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__ | def __init__(self,parent,title,prompt,value,limits=[None,None]):SingleFloatDialog.__init__(self,parent,title,prompt,value,limits=limits,format='%d') | 1 | 2 | 6 | 43 | 0 | 2,975 | 2,976 | 2,975 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 2975 and ends at 2976. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 6 parameters, represented as [2975.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetValue | def GetValue(self):return self.buffer[0] | 1 | 2 | 1 | 12 | 0 | 2,977 | 2,978 | 2,929 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetValue) defined within the public class called public.The function start at line 2977 and ends at 2978. 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,prompts,values,limits=[[0.,1.],], testfxns=None,formats=['%.5g',],header=None):wx.Dialog.__init__(self,parent,-1,title,pos=wx.DefaultPosition,style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)self.panel = Noneself.limits = limitsself.values = valuesself.prompts = promptsself.formats = format... | 4 | 20 | 9 | 163 | 0 | 3,053 | 3,072 | 3,053 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 3053 and ends at 3072. It contains 20 lines of code and it has a cyclomatic complexity of 4. It takes 9 parameters, represented as [3053.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | Draw.OnEditItem | def OnEditItem(event):if event: event.Skip()Obj = event.GetEventObject()fmt = Indx[Obj][-1]if type(fmt) is list:tid,idl,limits = Indx[Obj][:3]else:tid,idl = Indx[Obj],0val = Obj.GetValue()try:eval(val)self.values[tid][idl] = valreturnexcept:passtry: # deal with mixed fractions (example: 1 3/4)val = val.replace(' ','+')... | 5 | 22 | 1 | 128 | 0 | 3,076 | 3,097 | 3,076 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (Draw.OnEditItem) defined within the public class called public.The function start at line 3076 and ends at 3097. It contains 22 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 | Draw.OnValItem | def OnValItem(event):if event: event.Skip()Obj = event.GetEventObject()fmt = Indx[Obj][-1]if type(fmt) is list:tid,idl,limits = Indx[Obj][:3]if 'testfxn' in fmt:testfxn = Indx[Obj][3][tid]val = Obj.GetValue().strip()if testfxn(val):self.values[tid][idl] = valObj.SetBackgroundColour(wx.SystemSettings.GetColour(wx.SYS_CO... | 12 | 43 | 1 | 373 | 0 | 3,099 | 3,141 | 3,099 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (Draw.OnValItem) defined within the public class called public.The function start at line 3099 and ends at 3141. It contains 43 lines of code and it has a cyclomatic complexity of 12. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | Draw | def Draw(self):def OnEditItem(event):if event: event.Skip()Obj = event.GetEventObject()fmt = Indx[Obj][-1]if type(fmt) is list:tid,idl,limits = Indx[Obj][:3]else:tid,idl = Indx[Obj],0val = Obj.GetValue()try:eval(val)self.values[tid][idl] = valreturnexcept:passtry: # deal with mixed fractions (example: 1 3/4)val = val.r... | 19 | 94 | 1 | 1,021 | 0 | 3,074 | 3,236 | 3,074 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (Draw) defined within the public class called public.The function start at line 3074 and ends at 3236. It contains 94 lines of code and it has a cyclomatic complexity of 19. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetValues | def GetValues(self):return self.values | 1 | 2 | 1 | 9 | 0 | 3,238 | 3,239 | 3,238 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetValues) defined within the public class called public.The function start at line 3238 and ends at 3239. 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 | 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 | 3,241 | 3,244 | 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 3241 and ends at 3244. 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 | OnCancel | def OnCancel(self,event):parent = self.GetParent()if parent is not None: parent.Raise()self.EndModal(wx.ID_CANCEL) | 2 | 4 | 2 | 33 | 0 | 3,246 | 3,249 | 2,575 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnCancel) defined within the public class called public.The function start at line 3246 and ends at 3249. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [2575.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__ | def __init__(self,parent,title,prompt,value='',size=(200,-1),help='', choices=None): | 1 | 2 | 7 | 32 | 0 | 3,270 | 3,271 | 3,270 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 3270 and ends at 3271. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 7 parameters, represented as [3270.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:returns: True if the user pressed OK; False if the User pressed Cancel'''if self.ShowModal() == wx.ID_OK:self.value = self.valItem.GetValue()return Trueelse:return False | 2 | 6 | 1 | 34 | 0 | 3,310 | 3,318 | 3,310 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (Show) defined within the public class called public.The function start at line 3310 and ends at 3318. 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 | GetValue | def GetValue(self):'''Use this method to get the value entered by the user:returns: string entered by user'''return self.value | 1 | 2 | 1 | 10 | 0 | 3,320 | 3,324 | 3,320 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetValue) defined within the public class called public.The function start at line 3320 and ends at 3324. 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,prompts,values=[],size=-1, addRows=False,hlp=None, lbl=None):wx.Dialog.__init__(self,parent,wx.ID_ANY,title, pos=wx.DefaultPosition, style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)self.values = list(values)self.prompts = list(prompts)self.addRows = addRowsself.size = sizeself.hlp = hlpsel... | 1 | 13 | 9 | 111 | 0 | 3,342 | 3,354 | 3,342 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 3342 and ends at 3354. It contains 13 lines of code and it has a cyclomatic complexity of 1. It takes 9 parameters, represented as [3342.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | Paint | def Paint(self):if self.GetSizer():self.GetSizer().Clear(True)mainSizer = wx.BoxSizer(wx.VERTICAL)if self.hlp:btnsizer = wx.BoxSizer(wx.HORIZONTAL)hlp = HelpButton(self, self.hlp, wrap=450)btnsizer.Add((-1,-1),1, wx.EXPAND, 1)#btnsizer.Add(hlp,0,wx.ALIGN_RIGHT|wx.ALL)btnsizer.Add(hlp,0)mainSizer.Add(btnsizer,0,wx.EXPAN... | 6 | 38 | 1 | 437 | 0 | 3,356 | 3,394 | 3,356 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (Paint) defined within the public class called public.The function start at line 3356 and ends at 3394. It contains 38 lines of code and it has a cyclomatic complexity of 6. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | onExpand | def onExpand(self,event):self.values.append('')self.prompts.append('item '+str(len(self.values)))self.Paint() | 1 | 4 | 2 | 38 | 0 | 3,396 | 3,399 | 3,396 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (onExpand) defined within the public class called public.The function start at line 3396 and ends at 3399. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [3396.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | newValue | def newValue(self,event):Obj = event.GetEventObject()item = self.Indx[Obj.GetId()]id = self.prompts.index(item)self.values[id] = Obj.GetValue() | 1 | 5 | 2 | 48 | 0 | 3,401 | 3,405 | 3,401 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (newValue) defined within the public class called public.The function start at line 3401 and ends at 3405. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [3401.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:returns: True if the user pressed OK; False if the User pressed Cancel'''if self.ShowModal() == wx.ID_OK:return Trueelse:return False | 2 | 5 | 1 | 23 | 0 | 3,407 | 3,415 | 3,407 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (Show) defined within the public class called public.The function start at line 3407 and ends at 3415. 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 | GetValues | def GetValues(self):'''Use this method to get the value(s) entered by the user:returns: a list of strings entered by user'''return self.values | 1 | 2 | 1 | 10 | 0 | 3,417 | 3,422 | 3,417 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetValues) defined within the public class called public.The function start at line 3417 and ends at 3422. 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__.OnOk | def OnOk(sevent):OK = TrueselCols = []for col in self.sel:item = col.GetValue()if item != ' ' and item in selCols:OK = Falsebreakelse:selCols.append(item)parent = self.GetParent()if not OK:parent.ErrorDialog('Duplicate',item+' selected more than once')returnif parent is not None: parent.Raise()self.EndModal(wx.ID_OK) | 6 | 16 | 1 | 88 | 0 | 3,447 | 3,462 | 3,447 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__.OnOk) defined within the public class called public.The function start at line 3447 and ends at 3462. It contains 16 lines of code and it has a cyclomatic complexity of 6. The function does not take any parameters and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__.OnModify | def OnModify(event):if event: event.Skip()Obj = event.GetEventObject()icol,colData = Indx[Obj.GetId()]modify = Obj.GetValue()if not modify:return#print 'Modify column',icol,' by', modifyfor i,item in enumerate(self.ColumnData[icol]):self.ColumnData[icol][i] = str(eval(item+modify))colData.SetValue('\n'.join(self.Column... | 4 | 11 | 1 | 100 | 0 | 3,464 | 3,475 | 3,464 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__.OnModify) defined within the public class called public.The function start at line 3464 and ends at 3475. It contains 11 lines of code and it has a cyclomatic complexity of 4. 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, header,Comments,ChoiceList, ColumnData, monoFont=False, **kw):def OnOk(sevent):OK = TrueselCols = []for col in self.sel:item = col.GetValue()if item != ' ' and item in selCols:OK = Falsebreakelse:selCols.append(item)parent = self.GetParent()if not OK:parent.ErrorDialog('Duplicate',item+... | 9 | 84 | 9 | 860 | 0 | 3,444 | 3,561 | 3,444 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 3444 and ends at 3561. It contains 84 lines of code and it has a cyclomatic complexity of 9. It takes 9 parameters, represented as [3444.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetSelection | def GetSelection(self):'Returns the selected sample parm for each column'selCols = []for item in self.sel:selCols.append(item.GetValue())return selCols,self.ColumnData | 2 | 6 | 1 | 33 | 0 | 3,563 | 3,568 | 3,563 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetSelection) defined within the public class called public.The function start at line 3563 and ends at 3568. 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__.OnOk | def OnOk(sevent):if parent is not None: parent.Raise()self.EndModal(wx.ID_OK) | 2 | 3 | 1 | 24 | 0 | 3,595 | 3,597 | 3,595 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__.OnOk) defined within the public class called public.The function start at line 3595 and ends at 3597. 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__.OnModify | def OnModify(event):Obj = event.GetEventObject()irow,it = Indx[Obj.GetId()]try:val = float(Obj.GetValue())except ValueError:val = self.ParmData[irow][it]self.ParmData[irow][it] = valObj.SetValue(self.ParmFmt[it]%val) | 2 | 9 | 1 | 74 | 0 | 3,599 | 3,607 | 3,599 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__.OnModify) defined within the public class called public.The function start at line 3599 and ends at 3607. It contains 9 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, header,ParmList,ParmFmt,HistoList,ParmData, monoFont=False, **kw):def OnOk(sevent):if parent is not None: parent.Raise()self.EndModal(wx.ID_OK)def OnModify(event):Obj = event.GetEventObject()irow,it = Indx[Obj.GetId()]try:val = float(Obj.GetValue())except ValueError:val = self.ParmData[... | 8 | 64 | 10 | 592 | 0 | 3,592 | 3,673 | 3,592 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 3592 and ends at 3673. It contains 64 lines of code and it has a cyclomatic complexity of 8. It takes 10 parameters, represented as [3592.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 | 3,675 | 3,677 | 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 3675 and ends at 3677. 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 | ItemSelector | def ItemSelector(ChoiceList, ParentFrame=None, title='Select an item', size=None, header='Item Selector', useCancel=True,multiple=False):''' Provide a wx dialog to select a single item or multiple items from list of choices:param list ChoiceList: a list of choices where one will be selected:param wx.Frame ParentFrame: ... | 7 | 32 | 7 | 194 | 1 | 3,680 | 3,725 | 3,680 | null | ['dlg'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (ItemSelector) defined within the public class called public.The function start at line 3680 and ends at 3725. It contains 32 lines of code and it has a cyclomatic complexity of 7. It takes 7 parameters, represented as [3680.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetItemOrder | def GetItemOrder(parent,keylist,vallookup,posdict):'''Creates a dialog where items can be ordered into columns:param list keylist: is a list of keys for column assignments:param dict vallookup: is a dict keyed by names in keylist where each item is a dict. Each inner dict contains variable names as keys and their assoc... | 1 | 15 | 4 | 139 | 5 | 3,729 | 3,755 | 3,729 | null | ['sizer', 'btn', 'dlg', 'btnsizer', 'spanel'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetItemOrder) defined within the public class called public.The function start at line 3729 and ends at 3755. It contains 15 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [3729.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__ | def __init__(self,parent,title,prompts,values):wx.Dialog.__init__(self,parent,-1,title,pos=wx.DefaultPosition,style=wx.DEFAULT_DIALOG_STYLE)self.panel = wx.Panel(self) #just a dummy - gets destroyed in Draw!self.values = valuesself.prompts = promptsself.Draw() | 1 | 7 | 5 | 65 | 0 | 3,761 | 3,767 | 3,761 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 3761 and ends at 3767. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [3761.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | Draw.OnValItem | def OnValItem(event):event.Skip()Obj = event.GetEventObject()ind = Indx[Obj.GetId()]try:val = int(Obj.GetValue())if val <= 0:raise ValueErrorexcept ValueError:val = self.values[ind]self.values[ind] = valObj.SetValue('%d'%(val)) | 3 | 12 | 1 | 75 | 0 | 3,771 | 3,782 | 3,771 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (Draw.OnValItem) defined within the public class called public.The function start at line 3771 and ends at 3782. It contains 12 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 | Draw | def Draw(self):def OnValItem(event):event.Skip()Obj = event.GetEventObject()ind = Indx[Obj.GetId()]try:val = int(Obj.GetValue())if val <= 0:raise ValueErrorexcept ValueError:val = self.values[ind]self.values[ind] = valObj.SetValue('%d'%(val))self.panel.Destroy()self.panel = wx.Panel(self)mainSizer = wx.BoxSizer(wx.VERT... | 2 | 26 | 1 | 296 | 0 | 3,769 | 3,807 | 3,769 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (Draw) defined within the public class called public.The function start at line 3769 and ends at 3807. It contains 26 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 | GetValues | def GetValues(self):return self.values | 1 | 2 | 1 | 9 | 0 | 3,809 | 3,810 | 3,238 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetValues) defined within the public class called public.The function start at line 3809 and ends at 3810. 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 | 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 | 3,812 | 3,815 | 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 3812 and ends at 3815. 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 | OnCancel | def OnCancel(self,event):parent = self.GetParent()if parent is not None: parent.Raise()self.EndModal(wx.ID_CANCEL) | 2 | 4 | 2 | 33 | 0 | 3,817 | 3,820 | 2,575 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnCancel) defined within the public class called public.The function start at line 3817 and ends at 3820. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [2575.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__.OnCheck | def OnCheck(event,row=i):self.Selections[row] = event.EventObject.GetValue() | 1 | 2 | 2 | 23 | 0 | 3,898 | 3,899 | 3,898 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__.OnCheck) defined within the public class called public.The function start at line 3898 and ends at 3899. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [3898.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__ | def __init__(self, parent, title, colLabels, choices, colWidths, checkLbl="", height=400, centerCols=False, *args, **kw):if len(colLabels) != len(colWidths):raise ValueError('Length of colLabels) != colWidths')sizex = 20 # extra room for borders, etc.for i in colWidths: sizex += iwx.Dialog.__init__(self, parent, wx.ID_... | 13 | 65 | 11 | 624 | 0 | 3,862 | 3,930 | 3,862 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 3862 and ends at 3930. It contains 65 lines of code and it has a cyclomatic complexity of 13. It takes 11 parameters, represented as [3862.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | _onClose | def _onClose(self,event):event.Skip()self.EndModal(wx.ID_CANCEL) | 1 | 3 | 2 | 20 | 0 | 3,931 | 3,933 | 3,931 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_onClose) defined within the public class called public.The function start at line 3931 and ends at 3933. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [3931.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | _onSelect | def _onSelect(self,event):if self.list.GetNextSelected(-1) == -1: returnself.Selection = self.list.GetNextSelected(-1)self.EndModal(wx.ID_OK) | 2 | 4 | 2 | 43 | 0 | 3,934 | 3,937 | 3,934 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_onSelect) defined within the public class called public.The function start at line 3934 and ends at 3937. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [3934.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | MultiColMultiSelDlg | def MultiColMultiSelDlg(parent, title, header, colInfo, choices):'''Provides a dialog widget that can be used to select multiple itemsfrom a multicolumn list.:param wx.Frame parent: the parent frame (or None):param str title: A title for the dialog window:param str header: A instruction string for the dialog window:par... | 9 | 44 | 5 | 418 | 8 | 3,939 | 4,007 | 3,939 | null | ['cols', 'txt', 'index', 'btn', 'mainSizer', 'dlg', 'btnsizer', 'lst'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (MultiColMultiSelDlg) defined within the public class called public.The function start at line 3939 and ends at 4007. It contains 44 lines of code and it has a cyclomatic complexity of 9. It takes 5 parameters, represented as [3939.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | __init__ | def __init__(self,parent,keylist,vallookup,posdict,*arg,**kw):self.keylist = keylistself.vallookup = vallookupself.posdict = posdictself.maxcol = 0for nam in keylist:posdict = self.posdict[nam]if posdict.keys():self.maxcol = max(self.maxcol, max(posdict))wxscroll.ScrolledPanel.__init__(self,parent,wx.ID_ANY,*arg,**kw)s... | 8 | 47 | 7 | 520 | 0 | 4,021 | 4,067 | 4,021 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 4021 and ends at 4067. It contains 47 lines of code and it has a cyclomatic complexity of 8. It takes 7 parameters, represented as [4021.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | OnChoice | def OnChoice(self,event):'''Called when a column is assigned to a variable'''row,col = self.chceDict[event.EventObject] # which variable was this?newcol = event.Selection # where will it be moved?if newcol == col:return # no change: nothing to do!prevmaxcol = self.maxcol # save current table sizekey = self.keylist[row]... | 16 | 45 | 2 | 479 | 0 | 4,068 | 4,119 | 4,068 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (OnChoice) defined within the public class called public.The function start at line 4068 and ends at 4119. It contains 45 lines of code and it has a cyclomatic complexity of 16. It takes 2 parameters, represented as [4068.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | GetImportFile | def GetImportFile(G2frame, message, defaultDir="", defaultFile="",style=wx.FD_OPEN, parent=None,*args, **kwargs):'''Uses a standard or GSASII-customized dialog that gets filesfrom the appropriate import directory. Arguments are used the same as in :func:`wx.FileDialog`. Selection ofmultiple files is allowed if argument... | 15 | 34 | 8 | 288 | 5 | 4,122 | 4,176 | 4,122 | null | ['browseOpt', 'parent', 'pth', 'dlg', 'filelist'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (GetImportFile) defined within the public class called public.The function start at line 4122 and ends at 4176. It contains 34 lines of code and it has a cyclomatic complexity of 15. It takes 8 parameters, represented as [4122.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | G2FileBrowser.OnDirSelect | def OnDirSelect(event,**kwargs):'''Called when a directory or an extension is selected. Loads dlg.filelist with the files in that directory and with the selected extension.'''try:# exit if listbox not yet createdlistboxexcept:returnextSel = typeSel.GetValue()typeTxt.SetLabel(f"({extDict.get(extSel,'?')})")dlg.filelist ... | 9 | 25 | 2 | 213 | 0 | 4,211 | 4,239 | 4,211 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (G2FileBrowser.OnDirSelect) defined within the public class called public.The function start at line 4211 and ends at 4239. It contains 25 lines of code and it has a cyclomatic complexity of 9. It takes 2 parameters, represented as [4211.0] and does not return any value.. |
AdvancedPhotonSource_GSAS-II | public | public | 0 | 0 | G2FileBrowser.onSelection | def onSelection(event):'Called when a file is selected. Enables the Read button'selections = []if event is not None:selections = listbox.GetSelections()if len(selections) > 0:OKbtn.SetDefault()OKbtn.Enable(True)else:CNbtn.SetDefault()OKbtn.Enable(False) | 3 | 11 | 1 | 55 | 0 | 4,240 | 4,250 | 4,240 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (G2FileBrowser.onSelection) defined within the public class called public.The function start at line 4240 and ends at 4250. 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 | G2FileBrowser.SetupNumSelect | def SetupNumSelect():'defines the contents of the file range selector'numfiles = len(dlg.filelist)if numfiles < maxFiles:choices = ['all files']numSel.Enable(False)else:ranges = []for i in range(numfiles//maxFiles+1):first = i*maxFiles+1if first > numfiles: breaklast = min(numfiles,int((i+1.1)*maxFiles))ranges.append((... | 6 | 20 | 0 | 126 | 0 | 4,251 | 4,270 | 4,251 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (G2FileBrowser.SetupNumSelect) defined within the public class called public.The function start at line 4251 and ends at 4270. It contains 20 lines of code and it has a cyclomatic complexity of 6. 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.