Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
67,100 | Object (final RepositoryTreeNode repositoryTreeNode) { final List<DirectoryEntry> children = myCache.getChildren(repositoryTreeNode.getURL()); if (children == null) { return Boolean.FALSE; } final List<DirectoryEntry> newChildren = new ArrayList<>(children.size()); try { for (DirectoryEntry child : children) { newChild... | fun |
67,101 | void (@NotNull RepositoryTreeNode node, @NotNull VcsException error) { RepositoryTreeNode existingNode = findExistingNode(node); if (existingNode != null) { existingNode.setErrorNode(error.getMessage()); } } | refreshNodeError |
67,102 | void (@NotNull RepositoryTreeNode node, @NotNull List<DirectoryEntry> data, @NotNull Expander expander) { RepositoryTreeNode existingNode = findExistingNode(node); if (existingNode != null) { expander.onBeforeRefresh(existingNode); existingNode.setChildren(data, getNodeLoadState()); expander.onAfterRefresh(existingNode... | refreshNode |
67,103 | RepositoryTreeNode (@NotNull RepositoryTreeNode node) { RepositoryTreeNode result = null; if (!node.isDisposed()) { result = node.getNodeWithSamePathUnderModelRoot(); } return result == null || result.isDisposed() ? null : result; } | findExistingNode |
67,104 | Loader () { return ApplicationManager.getApplication().getService(Loader.class); } | getInstance |
67,105 | void (@NotNull final RepositoryTreeNode node, @NotNull final Expander expander) { SwingUtilities.invokeLater(() -> { final List<DirectoryEntry> cached = myCache.getChildren(node.getURL()); if (cached != null) { refreshNode(node, cached, expander); } final VcsException error = myCache.getError(node.getURL()); if (error ... | load |
67,106 | NodeLoadState () { return NodeLoadState.CACHED; } | getNodeLoadState |
67,107 | void (@NotNull RepositoryTreeNode node, @NotNull Expander afterRefreshExpander) { ThreadingAssertions.assertEventDispatchThread(); final Pair<RepositoryTreeNode, Expander> data = Pair.create(node, afterRefreshExpander); if (! myQueueProcessorActive) { startLoadTask(data); myQueueProcessorActive = true; } else { myLoadQ... | load |
67,108 | void (@NotNull Pair<RepositoryTreeNode, Expander> data, @NotNull List<DirectoryEntry> children) { myCache.put(data.first.getURL(), children); refreshNode(data.first, children, data.second); } | setResults |
67,109 | void (@NotNull Pair<RepositoryTreeNode, Expander> data, @NotNull VcsException error) { myCache.put(data.first.getURL(), error); refreshNodeError(data.first, error); } | setError |
67,110 | void () { ThreadingAssertions.assertEventDispatchThread(); final Pair<RepositoryTreeNode, Expander> data = myLoadQueue.poll(); if (data == null) { myQueueProcessorActive = false; return; } if (data.first.isDisposed()) { // ignore if node is already disposed startNext(); } else { startLoadTask(data); } } | startNext |
67,111 | void (@NotNull final Pair<RepositoryTreeNode, Expander> data) { ProgressManager.getInstance().runProcessWithProgressAsynchronously(new LoadTask(data), new EmptyProgressIndicator()); } | startLoadTask |
67,112 | NodeLoadState () { return NodeLoadState.REFRESHED; } | getNodeLoadState |
67,113 | void (@NotNull ProgressIndicator indicator) { RepositoryTreeNode node = myData.first; SvnVcs vcs = node.getVcs(); Target target = Target.on(node.getURL()); try { vcs.getFactoryFromSettings().createBrowseClient().list(target, Revision.HEAD, Depth.IMMEDIATES, entries::add); } catch (VcsException e) { error = e; } } | run |
67,114 | void () { if (error != null) { setError(myData, error); } else { setResults(myData, sorted(entries, DirectoryEntry.CASE_INSENSITIVE_ORDER)); } startNext(); } | onSuccess |
67,115 | void (final RepositoryTreeNode node) { mySelectionExpander.onBeforeRefresh(node); myThirdLevel = new HashMap<>(); myExpanded = new ArrayList<>(); final Enumeration<TreeNode> children = node.children(); while (children.hasMoreElements()) { final TreeNode treeNode = children.nextElement(); if (treeNode instanceof Reposit... | onBeforeRefresh |
67,116 | void (final RepositoryTreeNode node) { final Enumeration<TreeNode> children = node.children(); while (children.hasMoreElements()) { final RepositoryTreeNode treeNode = (RepositoryTreeNode) children.nextElement(); final String name = treeNode.getSVNDirEntry().getName(); final ChildrenData thirdLevelLoaded = myThirdLevel... | onAfterRefresh |
67,117 | Expander (final RepositoryBrowserComponent repositoryBrowserComponent) { return new KeepingExpandedExpander(repositoryBrowserComponent); } | fun |
67,118 | List<TreeNode> () { return myChildren; } | getChildren |
67,119 | NodeLoadState () { return myChildrenState; } | getChildrenState |
67,120 | boolean () { return myExpanded; } | isExpanded |
67,121 | void (@NotNull SvnVcs vcs, VirtualFile[] file, IgnoreInfoGetter getter, String extensionPattern, Ref<? super Boolean> filesOk, Ref<? super Boolean> extensionOk) { final IgnorePropertyChecker checker = new IgnorePropertyChecker(vcs, extensionPattern); try { checker.execute(file, getter); } catch (VcsException e) { // ig... | doCheckIgnoreProperty |
67,122 | boolean () { return (! myFilesOk) && (! myExtensionOk); } | stopIteration |
67,123 | void (final VirtualFile folder, final File folderDir, final Set<String> data, final PropertyValue propertyValue) { if (propertyValue == null) { myFilesOk = false; myExtensionOk = false; return; } final Set<String> ignorePatterns = new HashSet<>(); final StringTokenizer st = new StringTokenizer(PropertyValue.toString(pr... | processFolder |
67,124 | void (final VirtualFile[] file) { } | onAfterProcessing |
67,125 | void (final Exception e) { myFilesOk = false; myExtensionOk = false; } | onSVNException |
67,126 | boolean () { return myFilesOk; } | filesOk |
67,127 | boolean () { return myExtensionOk; } | extensionOk |
67,128 | boolean () { return false; } | stopIteration |
67,129 | void (final Exception e) { exceptions.add(e.getMessage()); } | onSVNException |
67,130 | String (final Set<String> data, final PropertyValue propertyValue) { if (propertyValue != null) { return getNewPropertyValueForRemove(data, PropertyValue.toString(propertyValue)); } return ""; } | getNewPropertyValue |
67,131 | String (final Collection<String> data, @NotNull final String propertyValue) { final StringBuilder sb = new StringBuilder(); final StringTokenizer st = new StringTokenizer(propertyValue, "\r\n "); while (st.hasMoreElements()) { final String ignorePattern = (String)st.nextElement(); if (! data.contains(ignorePattern)) { ... | getNewPropertyValueForRemove |
67,132 | String (final Set<String> data, final PropertyValue propertyValue) { final String ignoreString; if (data.size() == 1) { ignoreString = data.iterator().next(); } else { final StringBuilder sb = new StringBuilder(); for (final String name : data) { sb.append(name).append('\n'); } ignoreString = sb.toString(); } return (p... | getNewPropertyValue |
67,133 | void (final VirtualFile file) { ++ fileCount; if (sameExtensionCase) { final String extension = file.getExtension(); if (extension == null) { sameExtensionCase = false; } else if (commonExtension == null) { commonExtension = extension; } else { sameExtensionCase &= commonExtension.equals(extension); } } final VirtualFi... | onFileEnabled |
67,134 | boolean () { return fileCount == 1; } | oneFileSelected |
67,135 | boolean () { return sameExtensionCase; } | sameExtension |
67,136 | IgnoreGroupHelperAction (@NotNull AnActionEvent e) { UpdateSession session = e.getUpdateSession(); Optional<IgnoreGroupHelperAction> helper = session.sharedData(KEY, () -> tryCreateFor(e)); return helper.orElse(null); } | createFor |
67,137 | Optional<IgnoreGroupHelperAction> (@NotNull AnActionEvent e) { // TODO: This logic was taken from BasicAction.update(). Probably it'll be more convenient to share these conditions for correctness. Project project = e.getProject(); SvnVcs vcs = project != null ? SvnVcs.getInstance(project) : null; VirtualFile[] files = ... | tryCreateFor |
67,138 | boolean (@NotNull SvnVcs vcs, VirtualFile @NotNull [] files) { return ProjectLevelVcsManager.getInstance(vcs.getProject()).checkAllFilesAreUnder(vcs, files) && ContainerUtil.and(files, file -> isEnabled(vcs, file)); } | checkEnabled |
67,139 | void (@NotNull SvnVcs vcs) { if (myAllAreIgnored) { // virtual files parameter is not used -> can pass null SvnPropertyService.doCheckIgnoreProperty(vcs, null, myFileGroupInfo, myFileGroupInfo.getExtensionMask(), myIgnoreFilesOk, myIgnoreExtensionOk); } } | checkIgnoreProperty |
67,140 | boolean (@NotNull SvnVcs vcs, @NotNull VirtualFile file) { if (isIgnored(vcs, file)) { myAllCanBeIgnored = false; return myAllAreIgnored; } else if (isUnversioned(vcs, file)) { VirtualFile parent = file.getParent(); if (parent != null && SvnStatusUtil.isUnderControl(vcs, parent)) { myAllAreIgnored = false; return myAll... | isEnabledImpl |
67,141 | boolean (@NotNull SvnVcs vcs, @NotNull VirtualFile file) { boolean result = isEnabledImpl(vcs, file); if (result) { myFileGroupInfo.onFileEnabled(file); } return result; } | isEnabled |
67,142 | boolean () { return myAllCanBeIgnored; } | allCanBeIgnored |
67,143 | boolean () { return myAllAreIgnored; } | allAreIgnored |
67,144 | FileGroupInfo () { return myFileGroupInfo; } | getFileGroupInfo |
67,145 | boolean () { return myAllAreIgnored && Boolean.TRUE.equals(myIgnoreFilesOk.get()); } | areIgnoreFilesOk |
67,146 | boolean () { return myAllAreIgnored && Boolean.TRUE.equals(myIgnoreExtensionOk.get()); } | areIgnoreExtensionOk |
67,147 | boolean (@NotNull SvnVcs vcs, @NotNull VirtualFile file) { return SvnStatusUtil.isIgnoredInAnySense(vcs.getProject(), file); } | isIgnored |
67,148 | boolean (@NotNull SvnVcs vcs, @NotNull VirtualFile file) { if (ChangeListManager.getInstance(vcs.getProject()).isUnversioned(file)) { VirtualFile parent = file.getParent(); if (parent != null && SvnStatusUtil.isUnderControl(vcs, parent)) { return true; } } return false; } | isUnversioned |
67,149 | void (@NotNull String text, @NotNull JComponent component, boolean forbidSave) { myTabbedPane.setSelectedComponent(component); String errorPrefix = myTabbedPane.getTitleAt(myTabbedPane.indexOfComponent(component)) + ": "; setOKActionEnabled(!forbidSave); setInvalid(errorPrefix + text, myTabbedPane); } | onError |
67,150 | void () { if (isVisible()) { setOKActionEnabled(true); setInvalid(null, null); } } | onSuccess |
67,151 | boolean () { return true; } | shouldCloseOnCross |
67,152 | boolean (final SvnConfigureProxiesComponent component) { try { component.apply(); } catch (ConfigurationException e) { myTabbedPane.setSelectedComponent(component.createComponent()); setInvalid(e.getMessage(), myTabbedPane); return false; } return true; } | applyToTab |
67,153 | void () { myValidator.stop(); super.doCancelAction(); } | doCancelAction |
67,154 | boolean () { if (!applyToTab(myUserTab)) { return false; } if (!applyToTab(mySystemTab)) { return false; } return true; } | applyImpl |
67,155 | void () { if (getOKAction().isEnabled()) { if (!applyImpl()) { return; } myValidator.stop(); close(OK_EXIT_CODE); } } | doOKAction |
67,156 | void (final String url) { showInfoMessage(myProject, message("dialog.edit.http.proxies.settings.test.connection.settings.will.be.stored.text"), message("dialog.edit.http.proxies.settings.test.connection.settings.will.be.stored.title")); if (!applyImpl()) { return; } final Ref<Exception> excRef = new Ref<>(); final Prog... | execute |
67,157 | void (@DialogMessage @Nullable String text, @Nullable JComponent component) { valid = isEmptyOrSpaces(text); setErrorText(text, component); } | setInvalid |
67,158 | boolean () { return valid; } | enabled |
67,159 | JComponent () { myTabbedPane = new JBTabbedPane(); myTabbedPane.add(myUserTab.createComponent(), message("dialog.edit.http.proxies.settings.tab.edit.user.file.title")); myTabbedPane.add(mySystemTab.createComponent(), message("dialog.edit.http.proxies.settings.tab.edit.system.file.title")); myPanel.add(myTabbedPane, Bor... | createCenterPanel |
67,160 | void (final List<String> urls) { final String value = myRepositoriesList.getSelectedValue(); myRepositoriesList.removeAll(); myRepositoriesList.setListData(ArrayUtil.toStringArray(urls)); // for keeping selection if (value != null) { final ListModel<String> model = myRepositoriesList.getModel(); for (int i = 0; i < mod... | onListChanged |
67,161 | List<String> () { final ListModel<String> model = myRepositoriesList.getModel(); final List<String> result = new ArrayList<>(model.getSize()); for (int i = 0; i < model.getSize(); i++) { result.add(model.getElementAt(i)); } return result; } | getRepositories |
67,162 | JPanel () { return myMainPanel; } | getMainPanel |
67,163 | void (final PatternsListener listener) { myPatternsListener = listener; } | setPatternsListener |
67,164 | void () { final UrlsSetter urlsSetter = new UrlsSetter(); myUrlPatterns.addFocusListener(urlsSetter); myExceptions.addFocusListener(urlsSetter); } | putPatternsListener |
67,165 | void () { InsertPathAction.addTo(myPathToCertificatesField, FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor()); myClientCertificatePathField.addBrowseFolderListener( message("dialog.edit.http.proxies.settings.dialog.select.ssl.client.certificate.path.title"), null, null, new FileChooserDescriptor(true, fa... | initBrowseActions |
67,166 | void () { final NumericFieldsValidator numericFocusListener = new NumericFieldsValidator(); myPortField.addFocusListener(numericFocusListener); myTimeoutField.addFocusListener(numericFocusListener); } | initNumericValidation |
67,167 | void () { final ListSelectionModel selectionModel = new DefaultListSelectionModel(); selectionModel.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); myRepositoriesList.setSelectionModel(selectionModel); myRepositoriesList.addListSelectionListener( e -> myTestConnectionButton.setEnabled(myTestConnectionPerformer.e... | initRepositories |
67,168 | void () { addToKeyMappings(myServerField, ServersFileKeys.SERVER); addToKeyMappings(myUserField, ServersFileKeys.USER); addToKeyMappings(myPortField, ServersFileKeys.PORT); addToKeyMappings(myPasswordField, ServersFileKeys.PASSWORD); addToKeyMappings(myExceptions, ServersFileKeys.EXCEPTIONS); addToKeyMappings(myTimeout... | fillMappings |
67,169 | void (final JComponent component, final String key) { myComponent2Key.put(component, key); myKey2Component.put(key, component); } | addToKeyMappings |
67,170 | void (final FocusEvent e) { } | focusGained |
67,171 | void (final FocusEvent e) { repositoryUrlsRecalculation(); } | focusLost |
67,172 | void () { if (! myIsDefault) { myPatternsListener.onChange(myUrlPatterns.getText(), myExceptions.getText()); } } | repositoryUrlsRecalculation |
67,173 | void (final boolean valid) { myTestConnectionButton.setEnabled(valid && (myRepositoriesList.getSelectedValue() != null)); } | setIsValid |
67,174 | void (final FocusEvent e) { } | focusGained |
67,175 | void (final FocusEvent e) { myValidator.run(); } | focusLost |
67,176 | void (final Map<String, String> properties) { for (Map.Entry<String, String> entry : properties.entrySet()) { final JComponent component = myKey2Component.get(entry.getKey()); if (component != null) { setProperty(component, entry.getKey(), entry.getValue()); } } myTrustDefaultCAsCheckBox.setSelected(isTurned(properties... | setStringProperties |
67,177 | void (@NotNull JComponent component, @NlsSafe String name, @NlsSafe String value) { JTextComponent textComponent = null; if (component instanceof JTextComponent) { textComponent = (JTextComponent)component; } else if (component instanceof TextFieldWithBrowseButton) { textComponent = ((TextFieldWithBrowseButton)componen... | setProperty |
67,178 | void (Map<String, String> map) { for (Map.Entry<String, JComponent> entry : myKey2Component.entrySet()) { final JComponent component = entry.getValue(); String value = null; if (component instanceof JTextComponent) { value = ((JTextComponent)component).getText(); } else if (component instanceof TextFieldWithBrowseButto... | copyStringProperties |
67,179 | boolean () { return myIsDefault; } | isDefault |
67,180 | void (final boolean value) { myIsDefault = value; myUrlPatterns.setEditable(! myIsDefault); } | setIsDefaultGroup |
67,181 | String () { return myUrlPatterns.getText(); } | getPatterns |
67,182 | void (final String value) { myUrlPatterns.setText(value); repositoryUrlsRecalculation(); } | setPatterns |
67,183 | DefaultProxyGroup () { return (DefaultProxyGroup) myDefaultGroup.copy(); } | getDefaultGroup |
67,184 | void (final Collection<ProxyGroup> newUserGroups) { final Map<String, ProxyGroup> oldGroups = getGroups(); for (ProxyGroup proxyGroup : newUserGroups) { if (proxyGroup.isDefault()) { processGroup(proxyGroup, getDefaultGroup(), false); } else { findAndProcessGroup(proxyGroup, oldGroups); } } for (String groupName : oldG... | updateUserServerFile |
67,185 | void () { myFile.updateGroups(); } | updateFromFile |
67,186 | void (final ProxyGroup newGroup, final ProxyGroup oldGroup, final boolean groupWasAdded) { final String newGroupName = newGroup.getName(); if (groupWasAdded) { myFile.addGroup(newGroupName, newGroup.getPatterns(), newGroup.getProperties()); } else { final Map<String, String> oldProperties = oldGroup.getProperties(); fi... | processGroup |
67,187 | void (final ProxyGroup newGroup, final Map<String, ProxyGroup> oldGroups) { final String newGroupName = newGroup.getName(); final ProxyGroup oldGroup = oldGroups.get(newGroupName); final boolean groupWasAdded = (oldGroup == null) && (! newGroup.isDefault()); if (! groupWasAdded) { // to track deleted oldGroups.remove(n... | findAndProcessGroup |
67,188 | void (final String patterns, final String exceptions) { final Collection<String> urls = SvnApplicationSettings.getInstance().getCheckoutURLs(); final List<String> result = new ArrayList<>(); for (String url : urls) { if (SvnIniFile.checkHostGroup(url, patterns, exceptions)) { result.add(url); } } Collections.sort(resul... | onChange |
67,189 | void (@NotNull Collection<String> urls) { List<String> filtered = myComponent.getGlobalGroupRepositories(urls); Collections.sort(filtered); myDefaultGroupListener.onListChanged(filtered); } | notifyDefaultGroup |
67,190 | boolean () { return true; } | isDefault |
67,191 | ProxyGroup () { return new DefaultProxyGroup(createPropertiesCopy()); } | copy |
67,192 | boolean () { return false; } | isDefault |
67,193 | void (@NlsSafe String value) { myGroupName = value; } | setName |
67,194 | String () { return myProperties.get(ServersFileKeys.PORT); } | getPort |
67,195 | String () { return myProperties.get(ServersFileKeys.TIMEOUT); } | getTimeout |
67,196 | void (final String value) { myProperties.put(ServersFileKeys.TIMEOUT, value); } | setTimeout |
67,197 | String () { return myPattern; } | getPatterns |
67,198 | void (final String value) { myPattern = value; } | setPatterns |
67,199 | ProxyGroup () { return new ProxyGroup(myGroupName, myPattern, createPropertiesCopy()); } | copy |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.