Unnamed: 0
int64 0
305k
| body
stringlengths 7
52.9k
| name
stringlengths 1
185
|
|---|---|---|
13,700
|
int () { int result = groupId != null ? groupId.hashCode() : 0; result = 31 * result + (artifactId != null ? artifactId.hashCode() : 0); result = 31 * result + (version != null ? version.hashCode() : 0); result = 31 * result + (packaging != null ? packaging.hashCode() : 0); result = 31 * result + (description != null ? description.hashCode() : 0); return result; }
|
hashCode
|
13,701
|
void (File file) { if (!collectStatistics) return; String path = file.getAbsolutePath(); putOrAdd(path, readCounters); }
|
fileRead
|
13,702
|
void (String path, Map<String, AtomicInteger> countMap) { AtomicInteger counter = countMap.get(path); if (counter == null) { counter = countMap.put(path, new AtomicInteger(1)); } if (counter != null) { counter.incrementAndGet(); } }
|
putOrAdd
|
13,703
|
void (Map<String, Integer> dest, Map<String, AtomicInteger> src) { src.forEach((key, value) -> dest.put(key, value.get())); }
|
fill
|
13,704
|
void (String mavenid) { if (!collectStatistics) return; putOrAdd(mavenid, pluginResolving); }
|
pluginResolve
|
13,705
|
void (MavenServerStatus status, boolean clean) { fill(status.fileReadAccessCount, readCounters); fill(status.pluginResolveCount, pluginResolving); }
|
fill
|
13,706
|
MavenModel () { return myModel; }
|
getModel
|
13,707
|
MavenExplicitProfiles () { return myActivatedProfiles; }
|
getActivatedProfiles
|
13,708
|
MavenArtifactInfo () { return myArtifactInfo; }
|
getArtifactInfo
|
13,709
|
List<MavenRemoteRepository> () { return myRemoteRepositories; }
|
getRemoteRepositories
|
13,710
|
boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; MavenArtifactResolutionRequest request = (MavenArtifactResolutionRequest)o; if (!myArtifactInfo.equals(request.myArtifactInfo)) return false; if (!myRemoteRepositories.equals(request.myRemoteRepositories)) return false; return true; }
|
equals
|
13,711
|
int () { int result = myArtifactInfo.hashCode(); result = 31 * result + myRemoteRepositories.hashCode(); return result; }
|
hashCode
|
13,712
|
String () { return "MavenArtifactResolutionRequest{" + "myArtifactInfo=" + myArtifactInfo + ", myRemoteRepositories=" + myRemoteRepositories + '}'; }
|
toString
|
13,713
|
String () { return myFile; }
|
getFile
|
13,714
|
String () { return myPath; }
|
getPath
|
13,715
|
MavenId () { return myMavenPluginId; }
|
getMavenPluginId
|
13,716
|
int () { return nativeMavenProjectId; }
|
getNativeMavenProjectId
|
13,717
|
boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; PluginResolutionRequest request = (PluginResolutionRequest)o; return nativeMavenProjectId == request.nativeMavenProjectId && myMavenPluginId.equals(request.myMavenPluginId); }
|
equals
|
13,718
|
int () { return Objects.hash(myMavenPluginId, nativeMavenProjectId); }
|
hashCode
|
13,719
|
String () { return "PluginResolutionRequest{" + "pluginId=" + myMavenPluginId + ", nativeMavenProjectId=" + nativeMavenProjectId + '}'; }
|
toString
|
13,720
|
ExceptionProcessor () { return new ExceptionProcessor() { @Override protected boolean isKnownException(Throwable ex) { return ex.getClass().getName().startsWith(MavenRemoteObject.class.getPackage().getName()); } }; }
|
createExceptionProcessor
|
13,721
|
boolean (Throwable ex) { return ex.getClass().getName().startsWith(MavenRemoteObject.class.getPackage().getName()); }
|
isKnownException
|
13,722
|
RuntimeException (Throwable e) { Throwable wrap = wrapException(e); return wrap instanceof RuntimeException ? (RuntimeException)wrap : new RuntimeException(wrap); }
|
wrapToSerializableRuntimeException
|
13,723
|
MavenPullServerLogger (MavenToken token) { MavenServerUtil.checkToken(token); try { MavenServerLoggerWrapper result = MavenServerGlobals.getLogger(); UnicastRemoteObject.exportObject(result, 0); return result; } catch (Throwable e) { throw wrapToSerializableRuntimeException(e); } }
|
createPullLogger
|
13,724
|
MavenPullDownloadListener (MavenToken token) { MavenServerUtil.checkToken(token); try { MavenServerDownloadListenerWrapper result = MavenServerGlobals.getDownloadListener(); UnicastRemoteObject.exportObject(result, 0); return result; } catch (Throwable e) { throw wrapToSerializableRuntimeException(e); } }
|
createPullDownloadListener
|
13,725
|
ArtifactEventType () { return myArtifactEventType; }
|
getArtifactEventType
|
13,726
|
String () { return myDependencyId; }
|
getDependencyId
|
13,727
|
String () { return myErrorMessage; }
|
getErrorMessage
|
13,728
|
String () { return myStackTrace; }
|
getStackTrace
|
13,729
|
MavenServerLoggerWrapper () { return myLogger; }
|
getLogger
|
13,730
|
MavenServerDownloadListenerWrapper () { return myDownloadListener; }
|
getDownloadListener
|
13,731
|
String () { return projectJdk; }
|
getProjectJdk
|
13,732
|
void (@Nullable String projectJdk) { this.projectJdk = projectJdk; }
|
setProjectJdk
|
13,733
|
int () { return myLoggingLevel; }
|
getLoggingLevel
|
13,734
|
void (int loggingLevel) { myLoggingLevel = loggingLevel; }
|
setLoggingLevel
|
13,735
|
Properties () { return myUserProperties; }
|
getUserProperties
|
13,736
|
void (@NotNull Properties properties) { myUserProperties = properties; }
|
setUserProperties
|
13,737
|
String () { return myMavenHome; }
|
getMavenHomePath
|
13,738
|
void (@Nullable String mavenHome) { myMavenHome = mavenHome; }
|
setMavenHomePath
|
13,739
|
String () { return myUserSettingsFile; }
|
getUserSettingsPath
|
13,740
|
void (@Nullable String userSettingsFile) { myUserSettingsFile = userSettingsFile; }
|
setUserSettingsPath
|
13,741
|
String () { return myGlobalSettingsFile; }
|
getGlobalSettingsPath
|
13,742
|
void (@Nullable String globalSettingsFile) { myGlobalSettingsFile = globalSettingsFile; }
|
setGlobalSettingsPath
|
13,743
|
String () { return myLocalRepository; }
|
getLocalRepositoryPath
|
13,744
|
void (@Nullable String localRepository) { myLocalRepository = localRepository; }
|
setLocalRepositoryPath
|
13,745
|
boolean () { return isOffline; }
|
isOffline
|
13,746
|
void (boolean offline) { isOffline = offline; }
|
setOffline
|
13,747
|
boolean () { return updateSnapshots; }
|
isUpdateSnapshots
|
13,748
|
void (boolean updateSnapshots) { this.updateSnapshots = updateSnapshots; }
|
setUpdateSnapshots
|
13,749
|
MavenServerSettings () { try { return (MavenServerSettings)super.clone(); } catch (CloneNotSupportedException e) { throw new RuntimeException(e); } }
|
clone
|
13,750
|
MavenServerSettings () { return settings; }
|
getSettings
|
13,751
|
String () { return multiModuleProjectDirectory; }
|
getMultiModuleProjectDirectory
|
13,752
|
boolean () { return forceResolveDependenciesSequentially; }
|
forceResolveDependenciesSequentially
|
13,753
|
boolean () { return useCustomDependenciesResolver; }
|
useCustomDependenciesResolver
|
13,754
|
MavenId () { return myUnresolvedExtensionId; }
|
getUnresolvedExtensionId
|
13,755
|
String () { return myDirectory; }
|
getDirectory
|
13,756
|
boolean () { return Boolean.parseBoolean(System.getProperty("idea.maven.wsl")); }
|
isWSL
|
13,757
|
boolean (String[] args) { for (String arg : args) { if ("runWithDebugger".equals(arg)) { return true; } } return false; }
|
isDebug
|
13,758
|
int () { return total; }
|
total
|
13,759
|
int () { return finished; }
|
finished
|
13,760
|
double () { int t = total; int f = finished; if (t == 0) return 0; return ((double)f) / t; }
|
fraction
|
13,761
|
List<MavenServerConsoleEvent> () { return consoleEvents; }
|
consoleEvents
|
13,762
|
List<MavenArtifactEvent> () { return downloadEvents; }
|
downloadEvents
|
13,763
|
String () { return "LongRunningTaskStatus[" + "total=" + total + ", " + "finished=" + finished + ']'; }
|
toString
|
13,764
|
File () { return artifactFile; }
|
artifactFile
|
13,765
|
IndexedMavenId () { return indexedMavenId; }
|
indexedMavenId
|
13,766
|
boolean (Object obj) { if (obj == this) return true; if (obj == null || obj.getClass() != this.getClass()) return false; AddArtifactResponse that = (AddArtifactResponse)obj; return Objects.equals(this.artifactFile, that.artifactFile) && Objects.equals(this.indexedMavenId, that.indexedMavenId); }
|
equals
|
13,767
|
int () { return Objects.hash(artifactFile, indexedMavenId); }
|
hashCode
|
13,768
|
String () { return "AddArtifactResponse[" + "artifactFile=" + artifactFile + ", " + "indexedMavenId=" + indexedMavenId + ']'; }
|
toString
|
13,769
|
RemoteException () { return (RemoteException)super.getCause(); }
|
getCause
|
13,770
|
void (final int timeoutMillis) { Thread newThread = new MyReadThread(); newThread.setDaemon(true); newThread.start(); waitUntilReadOrTimeout(timeoutMillis, newThread); }
|
startReading
|
13,771
|
void (int timeoutMillis, Thread newThread) { long started = System.currentTimeMillis(); long deadline = started + timeoutMillis; boolean interrupted = false; try { while (!(myRef.get() != null || myExceptionRef.get() != null) && System.currentTimeMillis() < deadline) { Thread.sleep(10); } } catch (InterruptedException e) { interrupted = true; } finally { newThread.interrupt(); if (interrupted) { Thread.currentThread().interrupt(); } } }
|
waitUntilReadOrTimeout
|
13,772
|
void () { try { while (myScanner.hasNextLine() && !isInterrupted()) { String line = myScanner.nextLine(); if (line != null) { line = line.trim(); if (line.startsWith(PREFIX)) { myRef.set(line.substring(PREFIX.length())); return; } } } } catch (Throwable e) { myExceptionRef.set(e); } }
|
run
|
13,773
|
String () { return myUUID.toString(); }
|
toString
|
13,774
|
boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; MavenToken token = (MavenToken)o; return myUUID.equals(token.myUUID); }
|
equals
|
13,775
|
int () { return myUUID.hashCode(); }
|
hashCode
|
13,776
|
String () { return myGroupId; }
|
getGroupId
|
13,777
|
String () { return myArtifactId; }
|
getArtifactId
|
13,778
|
String () { return myVersion; }
|
getVersion
|
13,779
|
MavenId () { return new MavenId(myGroupId, myArtifactId, myVersion); }
|
getMavenId
|
13,780
|
boolean () { return myDefault; }
|
isDefault
|
13,781
|
boolean () { return myExtensions; }
|
isExtensions
|
13,782
|
Element () { return myConfiguration; }
|
getConfigurationElement
|
13,783
|
List<Execution> () { return myExecutions; }
|
getExecutions
|
13,784
|
List<MavenId> () { return myDependencies; }
|
getDependencies
|
13,785
|
Element (@NotNull String goal) { for (MavenPlugin.Execution each : getExecutions()) { if (each.getGoals().contains(goal)) { return each.getConfigurationElement(); } } return null; }
|
getGoalConfiguration
|
13,786
|
Element (@NotNull String executionId) { for (MavenPlugin.Execution each : getExecutions()) { if (executionId.equals(each.getExecutionId())) { return each.getConfigurationElement(); } } return null; }
|
getExecutionConfiguration
|
13,787
|
List<Element> () { List<Element> result = new ArrayList<Element>(); for (MavenPlugin.Execution each : getExecutions()) { if (isCompileExecution(each) && each.getConfigurationElement() != null) { result.add(each.getConfigurationElement()); } } return result; }
|
getCompileExecutionConfigurations
|
13,788
|
boolean (Execution each) { return "default-compile".equals(each.getExecutionId()) || (each.getGoals() != null && each.getGoals().contains("compile")); }
|
isCompileExecution
|
13,789
|
String () { StringBuilder builder = new StringBuilder(); append(builder, myGroupId); append(builder, myArtifactId); append(builder, myVersion); return builder.toString(); }
|
getDisplayString
|
13,790
|
String () { return getDisplayString(); }
|
toString
|
13,791
|
boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; MavenPlugin that = (MavenPlugin)o; if (myDefault != that.myDefault) return false; if (myExtensions != that.myExtensions) return false; if (!Objects.equals(myGroupId, that.myGroupId)) return false; if (!Objects.equals(myArtifactId, that.myArtifactId)) return false; if (!Objects.equals(myVersion, that.myVersion)) return false; if (!MavenJDOMUtil.areElementsEqual(myConfiguration, that.myConfiguration)) return false; if (!Objects.equals(myExecutions, that.myExecutions)) return false; if (!Objects.equals(myDependencies, that.myDependencies)) return false; return true; }
|
equals
|
13,792
|
int () { int result = myDefault ? 1 : 0; result = 31 * result + (myExtensions ? 1 : 0); result = 31 * result + (myGroupId != null ? myGroupId.hashCode() : 0); result = 31 * result + (myArtifactId != null ? myArtifactId.hashCode() : 0); result = 31 * result + (myVersion != null ? myVersion.hashCode() : 0); result = 31 * result + (myConfiguration != null ? MavenJDOMUtil.getTreeHash(myConfiguration) : 0); result = 31 * result + (myExecutions != null ? myExecutions.hashCode() : 0); result = 31 * result + (myDependencies != null ? myDependencies.hashCode() : 0); return result; }
|
hashCode
|
13,793
|
String () { return myExecutionId; }
|
getExecutionId
|
13,794
|
String () { return myPhase; }
|
getPhase
|
13,795
|
List<String> () { return myGoals; }
|
getGoals
|
13,796
|
Element () { return myConfiguration; }
|
getConfigurationElement
|
13,797
|
boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Execution that = (Execution)o; if (!myGoals.equals(that.myGoals)) return false; if (!Objects.equals(myExecutionId, that.myExecutionId)) return false; if (!Objects.equals(myPhase, that.myPhase)) return false; if (!MavenJDOMUtil.areElementsEqual(myConfiguration, that.myConfiguration)) return false; return true; }
|
equals
|
13,798
|
int () { int result = myGoals.hashCode(); if (myExecutionId != null) { result = 31 * result + myExecutionId.hashCode(); } if (myPhase != null) { result = 31 * result + myPhase.hashCode(); } return result; }
|
hashCode
|
13,799
|
boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; MavenArchetype that = (MavenArchetype)o; return Objects.equals(groupId, that.groupId) && Objects.equals(artifactId, that.artifactId) && Objects.equals(version, that.version); }
|
equals
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.