Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
32,300 | boolean (@NotNull GroovyDebuggerSettings settings) { return settings.DEBUG_DISABLE_SPECIFIC_GROOVY_METHODS.booleanValue() != ignoreGroovyMethods.isSelected(); } | isModified |
32,301 | void (@NotNull GroovyDebuggerSettings settings) { settings.DEBUG_DISABLE_SPECIFIC_GROOVY_METHODS = ignoreGroovyMethods.isSelected(); } | apply |
32,302 | JComponent () { return rootPanel; } | getComponent |
32,303 | String () { return "GroovyRefRenderer"; } | getUniqueId |
32,304 | void (Value value, ChildrenBuilder builder, EvaluationContext evaluationContext) { ValueDescriptor fieldDescriptor = getWrappedDescriptor(value, evaluationContext.getProject()); getDelegateRenderer(evaluationContext.getDebugProcess(), fieldDescriptor) .thenAccept(renderer -> { builder.getParentDescriptor().putUserData(... | buildChildren |
32,305 | CompletableFuture<Boolean> (Value value, EvaluationContext evaluationContext, NodeDescriptor parentDescriptor) { ValueDescriptor fieldDescriptor = getWrappedDescriptor(value, evaluationContext.getProject()); return getDelegateRenderer(evaluationContext.getDebugProcess(), fieldDescriptor) .thenCompose(renderer -> render... | isExpandableAsync |
32,306 | String (ValueDescriptor descriptor, EvaluationContext evaluationContext, DescriptorLabelListener listener) { ValueDescriptor fieldDescriptor = getWrappedDescriptor(descriptor.getValue(), evaluationContext.getProject(), descriptor); CompletableFuture<NodeRenderer> renderer = getDelegateRenderer(evaluationContext.getDebu... | calcLabel |
32,307 | CompletableFuture<NodeRenderer> (DebugProcess debugProcess, ValueDescriptor fieldDescriptor) { return ((DebugProcessImpl)debugProcess).getAutoRendererAsync(fieldDescriptor.getType()); } | getDelegateRenderer |
32,308 | ValueDescriptor (Value ref, final Project project) { return getWrappedDescriptor(ref, project, null); } | getWrappedDescriptor |
32,309 | ValueDescriptor (Value ref, final Project project, @Nullable ValueDescriptor originalDescriptor) { final Field field = ((ObjectReference)ref).referenceType().fieldByName("value"); final Value wrapped = ((ObjectReference)ref).getValue(field); return new ValueDescriptorImpl(project, wrapped) { @Override public Value calc... | getWrappedDescriptor |
32,310 | Value (EvaluationContextImpl evaluationContext) { return wrapped; } | calcValue |
32,311 | void (@NotNull String label) { if (originalDescriptor != null) { originalDescriptor.setValueLabel(label); } } | setValueLabel |
32,312 | String () { return field.name(); } | calcValueName |
32,313 | PsiExpression (DebuggerContext context) { return JavaPsiFacade.getElementFactory(context.getProject()).createExpressionFromText("this." + field.name(), null); } | getDescriptorEvaluation |
32,314 | String (ValueDescriptor descriptor, DebugProcess process, DescriptorLabelListener labelListener) { ValueDescriptor fieldDescriptor = getWrappedDescriptor(descriptor.getValue(), process.getProject()); return getDelegateRenderer(process, fieldDescriptor) .thenApply(renderer -> ((NodeRendererImpl)renderer).calcIdLabel(fie... | calcIdLabel |
32,315 | PositionManager (@NotNull DebugProcess process) { return new GroovyPositionManager(process); } | createPositionManager |
32,316 | List<ClassFilter> () { GroovyDebuggerSettings settings = GroovyDebuggerSettings.getInstance(); Boolean flag = settings.DEBUG_DISABLE_SPECIFIC_GROOVY_METHODS; if (flag == null || flag.booleanValue()) { return FILTERS; } return Collections.emptyList(); } | getFilters |
32,317 | void (@NotNull Processor<? super String> processor, @NotNull GlobalSearchScope scope, @Nullable IdFilter filter) { StubIndex index = StubIndex.getInstance(); if (!index.processAllKeys(GrFieldNameIndex.KEY, processor, scope, filter)) return; if (!index.processAllKeys(GrMethodNameIndex.KEY, processor, scope, filter)) ret... | processNames |
32,318 | void (@NotNull String name, @NotNull Processor<? super NavigationItem> processor, @NotNull FindSymbolParameters parameters) { StubIndex index = StubIndex.getInstance(); Project project = parameters.getProject(); GlobalSearchScope scope = parameters.getSearchScope(); IdFilter filter = parameters.getIdFilter(); if (!inde... | processElementsWithName |
32,319 | String () { return GroovyBundle.message("grab.intention.name"); } | getText |
32,320 | String () { return GroovyBundle.message("grab.family.name"); } | getFamilyName |
32,321 | boolean (@NotNull Project project, Editor editor, PsiFile file) { if (!isCorrectModule(file)) return false; int offset = editor.getCaretModel().getOffset(); final GrAnnotation anno = PsiTreeUtil.findElementOfClassAtOffset(file, offset, GrAnnotation.class, false); if (anno != null && isGrabAnnotation(anno)) { return tru... | isAvailable |
32,322 | PsiAnnotation (final PsiFile file) { if (!(file instanceof GroovyFile)) return null; return CachedValuesManager.getCachedValue(file, () -> { PsiClass grab = JavaPsiFacade.getInstance(file.getProject()).findClass(GrabAnnos.GRAB_ANNO, file.getResolveScope()); final Ref<PsiAnnotation> result = Ref.create(); if (grab != nu... | findGrab |
32,323 | boolean (@NotNull PsiElement at) { PsiElement parent = at.getParent(); return parent instanceof GrReferenceElement && ((GrReferenceElement<?>)parent).getReferenceNameElement() == at && ((GrReferenceElement<?>)parent).resolve() == null; } | isUnresolvedRefName |
32,324 | boolean (@NotNull GrAnnotation anno) { final String qname = anno.getQualifiedName(); return qname != null && (qname.startsWith(GrabAnnos.GRAB_ANNO) || GrabAnnos.GRAPES_ANNO.equals(qname)); } | isGrabAnnotation |
32,325 | boolean (PsiFile file) { final Module module = ModuleUtilCore.findModuleForPsiElement(file); if (module == null) { return false; } final Sdk sdk = ModuleRootManager.getInstance(module).getSdk(); if (sdk == null) { return false; } return file.getOriginalFile().getVirtualFile() != null && sdk.getSdkType() instanceof Java... | isCorrectModule |
32,326 | void (@NotNull ProgressIndicator indicator) { int totalJarCount = 0; HtmlBuilder messages = new HtmlBuilder(); for (Map.Entry<@NlsSafe String, GeneralCommandLine> entry : lines.entrySet()) { String grabText = entry.getKey(); indicator.setText2(grabText); try { final GrapeProcessHandler handler = new GrapeProcessHandler... | run |
32,327 | void (@NotNull PsiElement element) { if (element instanceof GrAnnotation anno) { String qname = anno.getQualifiedName(); if (GrabAnnos.GRAB_ANNO.equals(qname)) grabs.add(anno); else if (GrabAnnos.GRAB_EXCLUDE_ANNO.equals(qname)) excludes.add(anno); else if (GrabAnnos.GRAB_RESOLVER_ANNO.equals(qname)) resolvers.add(anno... | visitElement |
32,328 | boolean () { return false; } | startInWriteAction |
32,329 | void (@NotNull String text, @NotNull Key outputType) { text = StringUtil.convertLineSeparators(text); if (LOG.isDebugEnabled()) { LOG.debug(outputType + text); } if (outputType == ProcessOutputTypes.STDOUT) { myStdOut.append(text); } else if (outputType == ProcessOutputTypes.STDERR) { myStdErr.append(text); } } | notifyTextAvailable |
32,330 | void (List<VirtualFile> jars) { final ModifiableRootModel model = ModuleRootManager.getInstance(myModule).getModifiableModel(); final LibraryTable.ModifiableModel tableModel = model.getModuleLibraryTable().getModifiableModel(); for (VirtualFile jar : jars) { final VirtualFile jarRoot = JarFileSystem.getInstance().getJa... | addGrapeDependencies |
32,331 | void (int exitCode) { try { final List<VirtualFile> jars = new ArrayList<>(); for (String line : myStdOut.toString().split("\n")) { if (line.startsWith(GrapeRunner.URL_PREFIX)) { try { final URL url = new URL(line.substring(GrapeRunner.URL_PREFIX.length())); final File libFile = new File(url.toURI()); if (libFile.exist... | notifyProcessTerminated |
32,332 | HtmlChunk (@NlsSafe @NotNull String string) { if (string.isEmpty()) { return HtmlChunk.empty(); } @NlsSafe String[] lines = string.split("\n"); return new HtmlBuilder().appendWithSeparators( HtmlChunk.br(), ContainerUtil.map(lines, line -> HtmlChunk.text(line)) ).wrapWith("p"); } | processOutputChunk |
32,333 | void (Project project, String exceptionText) { final UnscrambleDialog dialog = new UnscrambleDialog(project); dialog.setText(exceptionText); dialog.show(); } | analyzeStackTrace |
32,334 | String () { return GroovyBundle.message("investigate.gdsl.error.intention.name"); } | getText |
32,335 | String () { return GroovyBundle.message("investigate.gdsl.error.family.name"); } | getFamilyName |
32,336 | boolean (@NotNull Project project, Editor editor, PsiFile file) { return true; } | isAvailable |
32,337 | boolean () { return false; } | startInWriteAction |
32,338 | void (Throwable e, final Project project, @NotNull VirtualFile vfile) { if (!GroovyDslFileIndex.isActivated(vfile)) { return; } final String exceptionText = ExceptionUtil.getThrowableText(e); LOG.info(exceptionText); GroovyDslFileIndex.disableFile(vfile, DslActivationStatus.Status.ERROR, exceptionText); if (!Applicatio... | invokeDslErrorPopup |
32,339 | void (@NotNull Notification notification, @NotNull HyperlinkEvent event) { InvestigateFix.analyzeStackTrace(project, exceptionText); notification.expire(); } | hyperlinkUpdate |
32,340 | GroovyCodeStyleSettings () { return CodeStyleSettingsManager.getInstance(myProject).getCurrentSettings().getCustomSettings(GroovyCodeStyleSettings.class); } | getSettings |
32,341 | boolean () { return getSettings().USE_FQ_CLASS_NAMES; } | useFqClassNames |
32,342 | boolean () { return getSettings().USE_FQ_CLASS_NAMES_IN_JAVADOC; } | useFqClassNamesInJavadoc |
32,343 | int () { return getSettings().STATIC_FIELDS_ORDER_WEIGHT; } | staticFieldsOrderWeight |
32,344 | int () { return getSettings().FIELDS_ORDER_WEIGHT; } | fieldsOrderWeight |
32,345 | int () { return getSettings().STATIC_METHODS_ORDER_WEIGHT; } | staticMethodsOrderWeight |
32,346 | int () { return getSettings().METHODS_ORDER_WEIGHT; } | methodsOrderWeight |
32,347 | int () { return getSettings().STATIC_INNER_CLASSES_ORDER_WEIGHT; } | staticInnerClassesOrderWeight |
32,348 | int () { return getSettings().INNER_CLASSES_ORDER_WEIGHT; } | innerClassesOrderWeight |
32,349 | int () { return getSettings().CONSTRUCTORS_ORDER_WEIGHT; } | constructorsOrderWeight |
32,350 | boolean () { return getSettings().INSERT_INNER_CLASS_IMPORTS; } | insertInnerClassImports |
32,351 | Configurable (@NotNull CodeStyleSettings settings, @NotNull CodeStyleSettings originalSettings) { return new CodeStyleAbstractConfigurable(settings, originalSettings, GroovyBundle.message("language.groovy")) { @Override protected @NotNull CodeStyleAbstractPanel createPanel(@NotNull CodeStyleSettings settings) { return ... | createSettingsPage |
32,352 | CodeStyleAbstractPanel (@NotNull CodeStyleSettings settings) { return new GroovyCodeStyleMainPanel(getCurrentSettings(), settings) {}; } | createPanel |
32,353 | String () { return "reference.settingsdialog.codestyle.groovy"; } | getHelpTopic |
32,354 | String () { return GroovyBundle.message("language.groovy"); } | getConfigurableDisplayName |
32,355 | CustomCodeStyleSettings (@NotNull CodeStyleSettings settings) { return new GroovyCodeStyleSettings(settings); } | createCustomSettings |
32,356 | Configurable (final @NotNull CodeStyleSettings settings, final @NotNull CodeStyleSettings originalSettings) { return new GroovyCodeStyleGenerationConfigurable(settings); } | createSettingsPage |
32,357 | String () { return ApplicationBundle.message("title.code.generation"); } | getConfigurableDisplayName |
32,358 | DisplayPriority () { return DisplayPriority.CODE_SETTINGS; } | getPriority |
32,359 | boolean () { return false; } | hasSettingsPage |
32,360 | Language () { return GroovyLanguage.INSTANCE; } | getLanguage |
32,361 | void (CodeStyleSettings settings) { super.initTabs(settings); addTab(new GrCodeStyleGroovydocPanel(settings)); addTab(new GrCodeStyleImportsPanelWrapper(settings)); for (CodeStyleSettingsProvider provider : CodeStyleSettingsProvider.EXTENSION_POINT_NAME.getExtensionList()) { if (provider.getLanguage() == GroovyLanguage... | initTabs |
32,362 | PsiElement (@NotNull PsiElement psiFile) { final ASTNode node = psiFile.getNode().findChildByType(GroovyTokenTypes.mSH_COMMENT); return node == null ? null : node.getPsi(); } | getShellComment |
32,363 | PsiElement (@NotNull GroovyFile psiFile, @NotNull GrImportStatement statement) { final GroovyCodeStyleSettings settings = GroovyCodeStyleSettings.getInstance(psiFile); final PackageEntryTable layoutTable = settings.IMPORT_LAYOUT_TABLE; final PackageEntry[] entries = layoutTable.getEntries(); GrImportStatement[] importS... | getAnchorToInsertImportAfter |
32,364 | int (PackageEntry @NotNull [] entries, @NotNull GrImportStatement statement) { final GrCodeReferenceElement reference = statement.getImportReference(); if (reference == null) return -1; final String packageName = StringUtil.getPackageName(reference.getCanonicalText()); final boolean isStatic = statement.isStatic(); int... | getPackageEntryIdx |
32,365 | void (@NotNull PsiElement psiFile, @NotNull GrImportStatement result) { final CodeStyleSettings rootSettings = CodeStyle.getSettings(psiFile.getContainingFile()); final GroovyCodeStyleSettings settings = rootSettings.getCustomSettings(GroovyCodeStyleSettings.class); final PackageEntryTable layoutTable = settings.IMPORT... | addLineFeedBefore |
32,366 | void (@NotNull PsiElement psiFile, GrImportStatement result) { final GroovyCodeStyleSettings settings = GroovyCodeStyleSettings.getInstance(psiFile.getContainingFile()); final PackageEntryTable layoutTable = settings.IMPORT_LAYOUT_TABLE; final PackageEntry[] entries = layoutTable.getEntries(); PsiElement next = result.... | addLineFeedAfter |
32,367 | int (PackageEntry[] entries, int b1, int b2) { int start = Math.min(b1, b2); int end = Math.max(b1, b2); if (start == -1) return 0; int max = 0; int cur = 0; for (int i = start; i < end; i++) { if (entries[i] == PackageEntry.BLANK_LINE_ENTRY) { cur++; } else { max = Math.max(max, cur); cur = 0; } } max = Math.max(max, ... | getMaxSpaceCount |
32,368 | CodeStyleConfigurable (@NotNull CodeStyleSettings baseSettings, @NotNull CodeStyleSettings modelSettings) { return new CodeStyleAbstractConfigurable(baseSettings, modelSettings, GroovyBundle.message("language.groovy")) { @Override protected @NotNull CodeStyleAbstractPanel createPanel(@NotNull CodeStyleSettings settings... | createConfigurable |
32,369 | CodeStyleAbstractPanel (@NotNull CodeStyleSettings settings) { return new GroovyCodeStyleMainPanel(getCurrentSettings(), settings) {}; } | createPanel |
32,370 | String () { return "reference.settingsdialog.codestyle.groovy"; } | getHelpTopic |
32,371 | CustomCodeStyleSettings (@NotNull CodeStyleSettings settings) { return new GroovyCodeStyleSettings(settings); } | createCustomSettings |
32,372 | Language () { return GroovyLanguage.INSTANCE; } | getLanguage |
32,373 | void (@NotNull CodeStyleSettingsCustomizable consumer, @NotNull SettingsType settingsType) { if (settingsType == WRAPPING_AND_BRACES_SETTINGS) { consumer.showStandardOptions( "RIGHT_MARGIN", "WRAP_ON_TYPING", "KEEP_LINE_BREAKS", "KEEP_FIRST_COLUMN_COMMENT", "KEEP_CONTROL_STATEMENT_IN_ONE_LINE", "KEEP_MULTIPLE_EXPRESSIO... | customizeSettings |
32,374 | void (@NotNull CommonCodeStyleSettings commonSettings, @NotNull CommonCodeStyleSettings.IndentOptions indentOptions) { commonSettings.SPACE_WITHIN_BRACES = true; commonSettings.KEEP_SIMPLE_CLASSES_IN_ONE_LINE = true; commonSettings.KEEP_SIMPLE_METHODS_IN_ONE_LINE = true; commonSettings.KEEP_SIMPLE_LAMBDAS_IN_ONE_LINE =... | customizeDefaults |
32,375 | String (@NotNull SettingsType settingsType) { if (settingsType == BLANK_LINES_SETTINGS || settingsType == SPACING_SETTINGS || settingsType == WRAPPING_AND_BRACES_SETTINGS || settingsType == INDENT_SETTINGS) { return loadSample(settingsType); } return null; } | getCodeSample |
32,376 | String (@NotNull SettingsType settingsType) { String name = "/samples/" + settingsType.name() + ".txt"; try { try (Reader reader = new InputStreamReader(GroovyLanguageCodeStyleSettingsProvider.class.getResourceAsStream(name), UTF_8)) { return readText(reader); } } catch (IOException ignored) { } return ""; } | loadSample |
32,377 | IndentOptionsEditor () { return new SmartIndentOptionsEditor() { private JLabel myLabelIndentLabel; private IntegerField myLabelIndent; private JBLabel myStyleLabel; private JComboBox<LabelIndentStyle> myLabelIndentStyle; @Override protected void addComponents() { super.addComponents(); myLabelIndentLabel = new JLabel(... | getIndentOptionsEditor |
32,378 | void () { super.addComponents(); myLabelIndentLabel = new JLabel(ApplicationBundle.message("editbox.indent.label.indent")); myLabelIndent = new IntegerField(GroovyBundle.message("settings.code.style.label.indent.size"), 0, Integer.MAX_VALUE); add(myLabelIndentLabel, myLabelIndent); myStyleLabel = new JBLabel(GroovyBund... | addComponents |
32,379 | boolean (final CodeStyleSettings settings, final CommonCodeStyleSettings.IndentOptions options) { return super.isModified(settings, options) || myLabelIndent.getValue() != options.LABEL_INDENT_SIZE || isLabelStyleModified( options.LABEL_INDENT_ABSOLUTE, settings.getCustomSettings(GroovyCodeStyleSettings.class).INDENT_L... | isModified |
32,380 | boolean (boolean absolute, boolean relative) { Object selectedStyle = myLabelIndentStyle.getSelectedItem(); if (absolute) { return selectedStyle != LabelIndentStyle.ABSOLUTE; } else if (relative) { return selectedStyle != LabelIndentStyle.RELATIVE; } else { return selectedStyle != LabelIndentStyle.RELATIVE_REVERSED; } ... | isLabelStyleModified |
32,381 | void (final CodeStyleSettings settings, final CommonCodeStyleSettings.IndentOptions options) { super.apply(settings, options); options.LABEL_INDENT_SIZE = myLabelIndent.getValue(); LabelIndentStyle labelIndentStyle = (LabelIndentStyle)myLabelIndentStyle.getSelectedItem(); options.LABEL_INDENT_ABSOLUTE = labelIndentStyl... | apply |
32,382 | void (@NotNull final CodeStyleSettings settings, @NotNull final CommonCodeStyleSettings.IndentOptions options) { super.reset(settings, options); myLabelIndent.setValue(options.LABEL_INDENT_SIZE); if (options.LABEL_INDENT_ABSOLUTE) { myLabelIndentStyle.setSelectedItem(LabelIndentStyle.ABSOLUTE); } else if (settings.getC... | reset |
32,383 | void (final boolean enabled) { super.setEnabled(enabled); myLabelIndent.setEnabled(enabled); myLabelIndentLabel.setEnabled(enabled); myStyleLabel.setEnabled(enabled); myLabelIndentStyle.setEnabled(enabled); } | setEnabled |
32,384 | String () { return description.get(); } | toString |
32,385 | CodeStyleFieldAccessor (@NotNull Object codeStyleObject, @NotNull Field field) { if (PackageEntryTable.class.isAssignableFrom(field.getType())) { return new JavaPackageEntryTableAccessor(codeStyleObject, field); } if (codeStyleObject instanceof GroovyCodeStyleSettings) { if (field.getName().endsWith("_ORDER_WEIGHT")) {... | getAccessor |
32,386 | boolean () { return true; } | isIgnorable |
32,387 | List<CodeStylePropertyAccessor> (@NotNull Object codeStyleObject) { if (codeStyleObject instanceof GroovyCodeStyleSettings) { try { Field onDemandPackagesField = codeStyleObject.getClass().getField("PACKAGES_TO_USE_IMPORT_ON_DEMAND"); return Collections.singletonList(new JavaPackageEntryTableAccessor(codeStyleObject, o... | getAdditionalAccessors |
32,388 | boolean (@NotNull List<String> extVal) { PackageEntryTable entryTable = fromExternal(extVal); if (entryTable != null) { ((GroovyCodeStyleSettings)codeStyleObject).getPackagesToUseImportOnDemand().copyFrom(entryTable); return true; } return false; } | set |
32,389 | boolean () { return true; } | usesCommonKeepLineBreaks |
32,390 | int () { return 0; } | getRightMargin |
32,391 | EditorHighlighter (@NotNull EditorColorsScheme scheme) { return null; } | createHighlighter |
32,392 | FileType () { return JavaFileType.INSTANCE; } | getFileType |
32,393 | String () { return null; } | getPreviewText |
32,394 | void (@NotNull CodeStyleSettings settings) { myImportsPanel.apply(settings); } | apply |
32,395 | boolean (CodeStyleSettings settings) { return myImportsPanel.isModified(settings); } | isModified |
32,396 | JComponent () { return myImportsPanel; } | getPanel |
32,397 | void (@NotNull CodeStyleSettings settings) { myImportsPanel.reset(settings); } | resetImpl |
32,398 | CodeStyleImportsBaseUI (JComponent packages, JComponent importLayout) { myCbUseFQClassNamesInJavaDoc = new JCheckBox(ApplicationBundle.message("checkbox.use.fully.qualified.class.names.in.javadoc")); GroovyCodeStyleImportsUI result = new GroovyCodeStyleImportsUI(packages, importLayout, myCbUseFQClassNamesInJavaDoc); re... | createKotlinUI |
32,399 | void (CodeStyleSettings settings) { GroovyCodeStyleSettings groovySettings = getGroovySettings(settings); applyLayoutSettings(groovySettings); groovySettings.USE_FQ_CLASS_NAMES_IN_JAVADOC = myCbUseFQClassNamesInJavaDoc.isSelected(); } | apply |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.