Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
297,200
void (@NotNull String name) { internalName = name; }
setInternalName
297,201
int () { int result = super.hashCode(); result = 31 * result + externalName.hashCode(); result = 31 * result + internalName.hashCode(); return result; }
hashCode
297,202
boolean (Object o) { if (!super.equals(o)) return false; AbstractNamedData data = (AbstractNamedData)o; if (!externalName.equals(data.externalName)) return false; if (!internalName.equals(data.internalName)) return false; return true; }
equals
297,203
String () { return testName; }
getTestName
297,204
String () { return testTaskName; }
getTestTaskName
297,205
Set<String> () { return Collections.unmodifiableSet(sourceFolders); }
getSourceFolders
297,206
ProjectSystemId () { return owner; }
getOwner
297,207
int () { return owner.hashCode(); }
hashCode
297,208
boolean (Object obj) { if (obj == this) { return true; } if (getClass() != obj.getClass()) { return false; } AbstractExternalEntityData that = (AbstractExternalEntityData)obj; return owner.equals(that.owner); }
equals
297,209
String () { return groupId; }
getGroupId
297,210
String () { return artifactId; }
getArtifactId
297,211
String () { return version; }
getVersion
297,212
String () { StringBuilder builder = new StringBuilder(); append(builder, groupId); append(builder, artifactId); append(builder, version); return builder.toString(); }
getKey
297,213
String () { return getKey(); }
getDisplayString
297,214
void (StringBuilder builder, String part) { if (builder.length() != 0) builder.append(':'); builder.append(part == null ? "<unknown>" : part); }
append
297,215
String () { return getDisplayString(); }
toString
297,216
boolean (@Nullable String groupId, @Nullable String artifactId) { if (this.artifactId != null ? !this.artifactId.equals(artifactId) : artifactId != null) return false; if (this.groupId != null ? !this.groupId.equals(groupId) : groupId != null) return false; return true; }
equals
297,217
boolean (@Nullable String groupId, @Nullable String artifactId, @Nullable String version) { if (!equals(groupId, artifactId)) return false; if (this.version != null ? !this.version.equals(version) : version != null) return false; return true; }
equals
297,218
boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ProjectId other = (ProjectId)o; return equals(other.getGroupId(), other.artifactId, other.version); }
equals
297,219
int () { int result; result = (groupId != null ? groupId.hashCode() : 0); result = 31 * result + (artifactId != null ? artifactId.hashCode() : 0); result = 31 * result + (version != null ? version.hashCode() : 0); return result; }
hashCode
297,220
String () { return myPath; }
getPath
297,221
void (@NotNull String path) { myPath = path; }
setPath
297,222
List<String> () { return myEntries; }
getEntries
297,223
void (@NotNull List<String> entries) { myEntries = entries; }
setEntries
297,224
int () { int result = myEntries.hashCode(); result = 31 * result + myPath.hashCode(); return result; }
hashCode
297,225
boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ExternalModuleBuildClasspathPojo pojo = (ExternalModuleBuildClasspathPojo)o; if (!myEntries.equals(pojo.myEntries)) return false; if (!myPath.equals(pojo.myPath)) return false; return true; }
equals
297,226
String () { return myPath; }
toString
297,227
String () { return group; }
getGroupId
297,228
void (String group) { this.group = group; }
setGroup
297,229
String () { return artifactId; }
getArtifactId
297,230
void (String artifactId) { this.artifactId = artifactId; }
setArtifactId
297,231
String () { return version; }
getVersion
297,232
void (String version) { this.version = version; }
setVersion
297,233
boolean () { return unresolved; }
isUnresolved
297,234
Set<String> (@NotNull LibraryPathType type) { Set<String> result = paths.get(type); return result == null ? Collections.emptySet() : result; }
getPaths
297,235
void (@NotNull LibraryPathType type, @NotNull String path) { Set<String> paths = this.paths.get(type); if (paths == null) { this.paths.put(type, paths = new LinkedHashSet<>()); } paths.add(ourPathInterner.intern(ExternalSystemApiUtil.toCanonicalPath(path))); }
addPath
297,236
void () { paths.clear(); }
forgetAllPaths
297,237
int () { int result = paths.hashCode(); result = 31 * result + super.hashCode(); result = 31 * result + (unresolved ? 0 : 1); result = 31 * result + (group != null ? group.hashCode() : 0); result = 31 * result + (artifactId != null ? artifactId.hashCode() : 0); result = 31 * result + (version != null ? version.hashCode() : 0); return result; }
hashCode
297,238
boolean (Object o) { if (!super.equals(o)) return false; LibraryData that = (LibraryData)o; if (group != null ? !group.equals(that.group) : that.group != null) return false; if (artifactId != null ? !artifactId.equals(that.artifactId) : that.artifactId != null) return false; if (version != null ? !version.equals(that.version) : that.version != null) return false; return super.equals(that) && unresolved == that.unresolved && paths.equals(that.paths); }
equals
297,239
String () { String externalName = getExternalName(); String displayName = StringUtil.isEmpty(externalName) ? paths.toString() : externalName; return String.format("library %s%s", displayName, unresolved ? "(unresolved)" : ""); }
toString
297,240
String () { return myName; }
getName
297,241
void (@NotNull String name) { myName = name; }
setName
297,242
void (@NotNull Map<String, ExternalModuleBuildClasspathPojo> modulesBuildClasspath) { myModulesBuildClasspath = modulesBuildClasspath; }
setModulesBuildClasspath
297,243
List<String> () { return myProjectBuildClasspath; }
getProjectBuildClasspath
297,244
void (@NotNull List<String> projectBuildClasspath) { myProjectBuildClasspath = projectBuildClasspath; }
setProjectBuildClasspath
297,245
int () { int result = myModulesBuildClasspath.hashCode(); result = 31 * result + myModulesBuildClasspath.hashCode(); return result; }
hashCode
297,246
boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ExternalProjectBuildClasspathPojo pojo = (ExternalProjectBuildClasspathPojo)o; if (!myModulesBuildClasspath.equals(pojo.myModulesBuildClasspath)) return false; if (!myName.equals(pojo.myName)) return false; return true; }
equals
297,247
String () { return myName; }
toString
297,248
boolean () { return productionOnTestDependency; }
isProductionOnTestDependency
297,249
void (boolean productionOnTestDependency) { this.productionOnTestDependency = productionOnTestDependency; }
setProductionOnTestDependency
297,250
Collection<String> () { return moduleDependencyArtifacts; }
getModuleDependencyArtifacts
297,251
void (Collection<String> moduleDependencyArtifacts) { this.moduleDependencyArtifacts = moduleDependencyArtifacts; }
setModuleDependencyArtifacts
297,252
boolean (Object o) { if (!super.equals(o)) return false; ModuleDependencyData that = (ModuleDependencyData)o; if (productionOnTestDependency != that.productionOnTestDependency) return false; if (moduleDependencyArtifacts != null ? !moduleDependencyArtifacts.equals(that.moduleDependencyArtifacts) : that.moduleDependencyArtifacts != null) { return false; } return true; }
equals
297,253
int () { int result = super.hashCode(); result = 31 * result + (productionOnTestDependency ? 1 : 0); result = 31 * result + (moduleDependencyArtifacts != null ? moduleDependencyArtifacts.hashCode() : 0); return result; }
hashCode
297,254
LibraryLevel () { return level; }
getLevel
297,255
void (@NotNull LibraryLevel level) { this.level = level; }
setLevel
297,256
int () { return 31 * super.hashCode() + level.hashCode(); }
hashCode
297,257
boolean (Object o) { if (!super.equals(o)) { return false; } return level.equals(((LibraryDependencyData)o).level); }
equals
297,258
String () { return myName; }
getName
297,259
void (@NotNull String name) { myName = name; }
setName
297,260
String () { return myPath; }
getPath
297,261
void (@NotNull String path) { myPath = path; }
setPath
297,262
int (@NotNull ExternalProjectPojo that) { return myName.compareTo(that.myName); }
compareTo
297,263
int () { int result = myName.hashCode(); result = 31 * result + myPath.hashCode(); return result; }
hashCode
297,264
boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ExternalProjectPojo pojo = (ExternalProjectPojo)o; if (!myName.equals(pojo.myName)) return false; if (!myPath.equals(pojo.myPath)) return false; return true; }
equals
297,265
String () { return myName; }
toString
297,266
int () { assert myTokenStart >= 0; return myTokenStart; }
getTokenStart
297,267
int () { assert myTokenStart >= 0; return index; }
getTokenEnd
297,268
String () { return myText.substring(myTokenStart, index); }
getCurrentToken
297,269
boolean () { int i = index; while (i < myText.length() && Character.isWhitespace(myText.charAt(i))) { i++; } if (i == myText.length()) { return false; } myTokenStart = i; boolean isInQuote = false; do { char a = myText.charAt(i); if (!isInQuote && Character.isWhitespace(a)) { break; } if (a == '\\' && i + 1 < myText.length() && myText.charAt(i + 1) == '"') { i += 2; } else if (a == '"') { i++; isInQuote = !isInQuote; } else { i++; } } while (i < myText.length()); index = i; return true; }
nextToken
297,270
ExternalLibraryPathTypeMapper () { return ApplicationManager.getApplication().getService(ExternalLibraryPathTypeMapper.class); }
getInstance
297,271
ProjectDataManager () { return ApplicationManager.getApplication().getService(ProjectDataManager.class); }
getInstance
297,272
void (@NotNull Collection<? extends DataNode<E>> toImport, @Nullable ProjectData projectData, @NotNull Project project, @NotNull IdeModifiableModelsProvider modelsProvider) { }
importData
297,273
Computable<Collection<I>> (@NotNull Collection<? extends DataNode<E>> toImport, @NotNull ProjectData projectData, @NotNull Project project, @NotNull IdeModifiableModelsProvider modelsProvider) { return EMPTY_LIST; }
computeOrphanData
297,274
void (Computable<? extends Collection<? extends I>> toRemoveComputable, @NotNull Collection<? extends DataNode<E>> toIgnore, @NotNull ProjectData projectData, @NotNull Project project, @NotNull IdeModifiableModelsProvider modelsProvider) { }
removeData
297,275
SourceFolderManager (@NotNull Project project) { return project.getService(SourceFolderManager.class); }
getInstance
297,276
ExternalProjectsManager (@NotNull Project project) { return project.getService(ExternalProjectsManager.class); }
getInstance
297,277
void () { List<DeclaredDependency> dependencies = myModifierService.declaredDependencies(getModule("project")); assertNotNull(dependencies); assertEquals(2, dependencies.size()); XmlTag someArtifact = findDependencyTag("somegroup", "someartifact", "1.0"); XmlTag another = findDependencyTag("anothergroup", "anotherArtifact", "2.0"); assertEquals(new UnifiedDependency("somegroup", "someartifact", "1.0", null), dependencies.get(0).getUnifiedDependency()); assertEquals(new UnifiedDependency("anothergroup", "anotherArtifact", "2.0", null), dependencies.get(1).getUnifiedDependency()); assertEquals(someArtifact, dependencies.get(0).getPsiElement()); assertEquals(another, dependencies.get(1).getPsiElement()); }
testGetDependencies
297,278
Collection () { return Arrays.asList(new Object[][]{ {"6.5.1", ".gradle", GROOVY_LANGUAGE}, {"6.5.1", ".gradle.kts", KOTLIN_LANGUAGE} }); }
languageExtensions
297,279
XmlTag (String group, String artifact, String version) { PsiFile pom = PsiUtilCore.getPsiFile(myProject, myProjectPom); return findDependencyTag(group, artifact, version, pom); }
findDependencyTag
297,280
XmlTag (String group, String artifact, String version, PsiFile pom) { MavenDomProjectModel model = MavenDomUtil.getMavenDomModel(pom, MavenDomProjectModel.class); for (MavenDomDependency dependency : model.getDependencies().getDependencies()) { if (dependency.getGroupId().getStringValue().equals(group) && dependency.getArtifactId().getStringValue().equals(artifact) && dependency.getVersion().getStringValue().equals(version)) { return dependency.getXmlTag(); } } return null; }
findDependencyTag
297,281
void (String expectedFilePath, String actualText) { String expectedText; try { if (OVERWRITE_TESTDATA) { VfsTestUtil.overwriteTestData(expectedFilePath, actualText); //noinspection UseOfSystemOutOrSystemErr System.out.println("File " + expectedFilePath + " created."); } expectedText = FileUtil.loadFile(new File(expectedFilePath), StandardCharsets.UTF_8); } catch (FileNotFoundException e) { VfsTestUtil.overwriteTestData(expectedFilePath, actualText); throw new AssertionFailedError("No output text found. File " + expectedFilePath + " created."); } catch (IOException e) { throw new RuntimeException(e); } var expectedLines = Arrays.stream(StringUtil.splitByLines(expectedText.trim(), true)) .map(s -> s.stripLeading()) .toArray(); var actualLines = Arrays.stream(StringUtil.splitByLines(actualText.trim(), true)) .map(s -> s.stripLeading()) .toArray(); if (!Arrays.equals(expectedLines, actualLines)) { throw new FileComparisonFailure(null, StringUtil.convertLineSeparators(expectedText.trim()), StringUtil.convertLineSeparators(actualText.trim()), expectedFilePath); } }
assertFilesAreIdenticalLineByLineIgnoringIndent
297,282
void (Collection<Path> newClassPath) { classPath.reset(newClassPath); }
reset
297,283
void (BytecodeTransformer transformer) { // redefinition is not allowed assert this.transformer == null; this.transformer = transformer; }
setTransformer
297,284
boolean (@NotNull String name) { return transformer == null || !transformer.isApplicable(name, this); }
isByteBufferSupported
297,285
boolean (String packageName) { return getDefinedPackage(packageName) != null; }
isPackageDefined
297,286
int () { return file.classPackages.length; }
classPackageCount
297,287
int () { return file.resourcePackages.length; }
resourcePackageCount
297,288
long[] () { return file.classPackages; }
classPackages
297,289
long[] () { return file.resourcePackages; }
resourcePackages
297,290
String () { return "ZipFileResource(name=" + entry + ")"; }
toString
297,291
URL () { URL result = url; if (result == null) { MyJarUrlStreamHandler handler = new MyJarUrlStreamHandler(entry, jarLoader); try { result = new URL(jarLoader.url, name, handler); } catch (MalformedURLException e) { throw new RuntimeException(e); } url = result; handler.original = result; } return result; }
getURL
297,292
void () { }
connect
297,293
int () { try { return getEntry().getUncompressedSize(); } catch (IOException e) { return -1; } }
getContentLength
297,294
long () { return getContentLength(); }
getContentLengthLong
297,295
int () { try { connect(); } catch (IOException e) { return -1; } return effectiveEntry.getUncompressedSize(); }
getContentLength
297,296
Charset (String charsetName) { return Native2AsciiCharset.forName(charsetName); }
charsetForName
297,297
Iterator<Charset> () { return Collections.emptyIterator(); }
charsets
297,298
String () { return getBaseCharset().displayName(); }
displayName
297,299
boolean (Charset cs) { return false; }
contains