Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
4,300
String (@NotNull String url) { return FileUtilRt.toSystemDependentName(urlToPath(url)); }
urlToOsPath
4,301
String (@NotNull String url) { int idx = url.indexOf(":/"); if (idx >= 0 && idx + 2 < url.length() && url.charAt(idx + 2) != '/') { String prefix = url.substring(0, idx); String suffix = url.substring(idx + 2); if (SystemInfoRt.isWindows) { url = prefix + "://" + suffix; } else { url = prefix + ":///" + suffix; } } return url; }
fixURLforIDEA
4,302
String (String path) { return FILE_URL_PREFIX + path; }
pathToUrl
4,303
String (File file) { String path = FileUtilRt.toSystemIndependentName(file.getAbsolutePath()); return file.isDirectory() ? FILE_URL_PREFIX + path : JAR_URL_PREFIX + path + "!/"; }
getLibraryRootUrl
4,304
boolean (@NotNull String url) { return url.startsWith("jrt://"); }
isJrtUrl
4,305
String (@NotNull Path projectDir) { Path parent = projectDir.getParent(); if (parent != null) { Path name = parent.getFileName(); // `null` when parent is a Windows disk root return name != null ? name.toString() : parent.toString(); } else { return UNNAMED_PROJECT; } }
getDefaultProjectName
4,306
JpsElementFactory () { return JpsServiceManager.getInstance().getService(JpsElementFactory.class); }
getInstance
4,307
JpsEncodingConfigurationService () { return JpsServiceManager.getInstance().getService(JpsEncodingConfigurationService.class); }
getInstance
4,308
JpsElementChildRole<P> () { return myPropertiesRole; }
getPropertiesRole
4,309
String () { return myDebugName; }
toString
4,310
JpsDummyElement () { return JpsElementFactory.getInstance().createDummyElement(); }
createDefaultProperties
4,311
String () { return myDebugName; }
toString
4,312
E () { return myFactoryImpl.create(); }
create
4,313
JpsExElementFactory () { return InstanceHolder.INSTANCE; }
getInstance
4,314
void (@Nullable JpsElementBase<?> parent) { if (myParent != null && parent != null) { throw new AssertionError("Parent for " + this + " is already set: " + myParent); } myParent = parent; }
setParent
4,315
void () { }
fireElementChanged
4,316
void (@NotNull JpsElement element, @Nullable JpsElementBase<?> parent) { ((JpsElementBase<?>)element).setParent(parent); }
setParent
4,317
JpsModel () { if (myParent != null) { return myParent.getModel(); } return null; }
getModel
4,318
JpsElementBase () { return myParent; }
getParent
4,319
String () { return myName; }
getName
4,320
void (@NotNull Self modified) { super.applyChanges(modified); setName(modified.getName()); }
applyChanges
4,321
void (@NlsSafe @NotNull String name) { myName = name; }
setName
4,322
JpsElementCollection<E> () { return JpsExElementFactory.getInstance().createCollection(myChildRole); }
create
4,323
boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; return myChildRole.equals(((JpsElementCollectionRole)o).myChildRole); }
equals
4,324
int () { return myChildRole.hashCode(); }
hashCode
4,325
JpsElementReference<T> (@NotNull JpsModel model) { model.registerExternalReference(this); return this; }
asExternal
4,326
void (@NotNull Self modified) { myContainer.applyChanges(modified.myContainer); }
applyChanges
4,327
JpsElementContainer () { return myContainer; }
getContainer
4,328
JavaVersion () { return myVersion; }
toJavaVersion
4,329
boolean () { return name().endsWith("_PREVIEW") || name().endsWith("_X"); }
isPreview
4,330
boolean () { return myForTests; }
isForTests
4,331
JavaSourceRootProperties () { return JpsJavaExtensionService.getInstance().createSourceRootProperties(""); }
createDefaultProperties
4,332
String () { return "native lib root"; }
toString
4,333
JpsDummyElement () { return JpsElementFactory.getInstance().createDummyElement(); }
createDefaultProperties
4,334
String () { return "JDK"; }
getPresentableName
4,335
String (JpsSdk<?> sdk) { return sdk.getHomePath() + "/bin/java"; }
getJavaExecutable
4,336
String () { return "java sdk type"; }
toString
4,337
int (@Nullable JpsSdk<?> sdk) { return parseVersion(sdk != null && sdk.getSdkType() instanceof JpsJavaSdkType ? sdk.getVersionString() : null); }
getJavaVersion
4,338
int (String javaVersionString) { JavaVersion version = JavaVersion.tryParse(javaVersionString); return version != null ? version.feature : 0; }
parseVersion
4,339
String (@NotNull JavaVersion version) { // for "-source" and "-target" options, a compiler accepts both "x" and "1.x" formats; for "--release" - only "x" return version.feature < 5 ? "1." + version.feature : String.valueOf(version.feature); }
complianceOption
4,340
boolean (JpsJavaClasspathKind kind) { return myAffectedClasspath.contains(kind); }
isIncludedIn
4,341
JpsJavaExtensionService () { return JpsServiceManager.getInstance().getService(JpsJavaExtensionService.class); }
getInstance
4,342
JpsJavaDependenciesEnumerator (JpsModule module) { return getInstance().enumerateDependencies(module); }
dependencies
4,343
JpsJavaDependenciesEnumerator (JpsProject project) { return getInstance().enumerateDependencies(project); }
dependencies
4,344
String () { return myRelativeOutputPath; }
getRelativeOutputPath
4,345
JavaResourceRootProperties () { return new JavaResourceRootProperties(myRelativeOutputPath, myForGeneratedSources); }
createCopy
4,346
boolean () { return myForGeneratedSources; }
isForGeneratedSources
4,347
void (@NotNull String relativeOutputPath) { if (!Objects.equals(myRelativeOutputPath, relativeOutputPath)) { myRelativeOutputPath = relativeOutputPath; fireElementChanged(); } }
setRelativeOutputPath
4,348
void (boolean forGeneratedSources) { if (myForGeneratedSources != forGeneratedSources) { myForGeneratedSources = forGeneratedSources; fireElementChanged(); } }
setForGeneratedSources
4,349
void (@NotNull JavaResourceRootProperties modified) { setRelativeOutputPath(modified.myRelativeOutputPath); setForGeneratedSources(modified.myForGeneratedSources); }
applyChanges
4,350
String () { return myPackagePrefix; }
getPackagePrefix
4,351
JavaSourceRootProperties () { return new JavaSourceRootProperties(myPackagePrefix, myForGeneratedSources); }
createCopy
4,352
boolean () { return myForGeneratedSources; }
isForGeneratedSources
4,353
void (@NotNull String packagePrefix) { if (!Objects.equals(myPackagePrefix, packagePrefix)) { myPackagePrefix = packagePrefix; fireElementChanged(); } }
setPackagePrefix
4,354
void (boolean forGeneratedSources) { if (myForGeneratedSources != forGeneratedSources) { myForGeneratedSources = forGeneratedSources; fireElementChanged(); } }
setForGeneratedSources
4,355
void (@NotNull JavaSourceRootProperties modified) { setPackagePrefix(modified.myPackagePrefix); setForGeneratedSources(modified.myForGeneratedSources); }
applyChanges
4,356
String () { return "annotation root"; }
toString
4,357
boolean () { return myForTests; }
isForTests
4,358
JavaResourceRootProperties () { return JpsJavaExtensionService.getInstance().createResourceRootProperties("", false); }
createDefaultProperties
4,359
JdkVersionDetector () { return JpsServiceManager.getInstance().getService(JdkVersionDetector.class); }
getInstance
4,360
String () { String f = version.toFeatureString(); return variant.prefix != null ? variant.prefix + '-' + f : f; }
suggestedName
4,361
String () { String s = "version " + version; return variant.displayName != null ? variant.displayName + ' ' + s : s; }
displayVersionString
4,362
String () { return version + " " + arch; }
toString
4,363
String (@NotNull JavaVersion version) { return "java version \"" + version + '"'; }
formatVersionString
4,364
boolean (@NotNull String string) { return string.length() >= 16 && string.startsWith("java version \"") && StringUtil.endsWithChar(string, '"'); }
isVersionString
4,365
boolean () { return this == TEST_COMPILE || this == TEST_RUNTIME; }
isTestsIncluded
4,366
boolean () { return this == PRODUCTION_RUNTIME || this == TEST_RUNTIME; }
isRuntime
4,367
JpsJavaClasspathKind (boolean tests) { return tests ? TEST_COMPILE : PRODUCTION_COMPILE; }
compile
4,368
JpsJavaClasspathKind (boolean tests) { return tests ? TEST_RUNTIME : PRODUCTION_RUNTIME; }
runtime
4,369
String () { return myMavenId; }
getMavenId
4,370
String () { return myGroupId; }
getGroupId
4,371
String () { return myArtifactId; }
getArtifactId
4,372
boolean () { return myIncludeTransitiveDependencies; }
isIncludeTransitiveDependencies
4,373
List<String> () { return myExcludedDependencies; }
getExcludedDependencies
4,374
String () { return myVersion; }
getVersion
4,375
String () { return myPackaging; }
getPackaging
4,376
boolean (Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final JpsMavenRepositoryLibraryDescriptor that = (JpsMavenRepositoryLibraryDescriptor)o; return myIncludeTransitiveDependencies == that.myIncludeTransitiveDependencies && myMavenId.equals(that.myMavenId) && myPackaging.equals(that.myPackaging) && myExcludedDependencies.equals(that.myExcludedDependencies) && myArtifactsVerification.equals(that.myArtifactsVerification) && Objects.equals(myJarRepositoryId, that.myJarRepositoryId); }
equals
4,377
int () { return Objects.hash(myMavenId, myPackaging, myIncludeTransitiveDependencies, myExcludedDependencies, myArtifactsVerification, myJarRepositoryId); }
hashCode
4,378
String () { return myMavenId != null ? myMavenId : "null"; }
toString
4,379
boolean () { return ContainerUtil.exists(myArtifactsVerification, it -> it.getSha256sum() != null); }
isVerifySha256Checksum
4,380
List<ArtifactVerification> () { return myArtifactsVerification; }
getArtifactsVerification
4,381
String () { return myJarRepositoryId; }
getJarRepositoryId
4,382
String () { return sha256sum; }
getSha256sum
4,383
String () { return url; }
getUrl
4,384
boolean (Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ArtifactVerification that = (ArtifactVerification)o; return Objects.equals(url, that.url) && Objects.equals(sha256sum, that.sha256sum); }
equals
4,385
int () { return Objects.hash(url, sha256sum); }
hashCode
4,386
String () { return "compiled root"; }
toString
4,387
String () { return "sources root"; }
toString
4,388
String () { return "documentation root"; }
toString
4,389
String () { return "repository"; }
getTypeId
4,390
JpsElementChildRole<P> () { return mySdkPropertiesRole; }
getSdkPropertiesRole
4,391
String () { return StringUtil.getShortName(getClass()); }
getPresentableName
4,392
Data () { return myPropertiesData; }
getPropertiesData
4,393
UnknownSourceRootTypeProperties<Data> () { return new UnknownSourceRootTypeProperties<>(myPropertiesData); }
createCopy
4,394
void (@NotNull UnknownSourceRootTypeProperties modified) { // not supported }
applyChanges
4,395
String () { return myUnknownTypeId; }
getUnknownTypeId
4,396
UnknownSourceRootType (String typeId) { return ourTypeNameToInstanceMap.computeIfAbsent(typeId, id -> new UnknownSourceRootType(id)); }
getInstance
4,397
JpsArtifactService () { return JpsServiceManager.getInstance().getService(JpsArtifactService.class); }
getInstance
4,398
JpsPackagingElementFactory () { return JpsServiceManager.getInstance().getService(JpsPackagingElementFactory.class); }
getInstance
4,399
FileNameMatcherFactory () { return JpsServiceManager.getInstance().getService(FileNameMatcherFactory.class); }
getInstance