Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
297,100
void (@NotNull ExternalSystemTaskExecutionSettings source) { myExecutionName = source.myExecutionName; myExternalSystemIdString = source.myExternalSystemIdString; myExternalProjectPath = source.myExternalProjectPath; myVmOptions = source.myVmOptions; myScriptParameters = source.myScriptParameters; myTaskNames = ContainerUtil.copyList(source.myTaskNames); myTaskDescriptions = ContainerUtil.copyList(source.myTaskDescriptions); myEnv = source.myEnv.isEmpty() ? Collections.emptyMap() : new HashMap<>(source.myEnv); myPassParentEnvs = source.myPassParentEnvs; }
setFrom
297,101
void (@Nullable @Nls String executionName) { myExecutionName = executionName; }
setExecutionName
297,102
ProjectSystemId () { return new ProjectSystemId(myExternalSystemIdString); }
getExternalSystemId
297,103
void (@NonNls String externalSystemIdString) { myExternalSystemIdString = externalSystemIdString; }
setExternalSystemIdString
297,104
void (@NlsSafe String externalProjectPath) { myExternalProjectPath = externalProjectPath; }
setExternalProjectPath
297,105
void (@NlsSafe String vmOptions) { myVmOptions = vmOptions; }
setVmOptions
297,106
void (@NlsSafe String scriptParameters) { myScriptParameters = scriptParameters; }
setScriptParameters
297,107
void (@NotNull List<@NlsSafe String> taskNames) { myTaskNames = taskNames; }
setTaskNames
297,108
void (@NotNull List<@Nls String> taskDescriptions) { myTaskDescriptions = taskDescriptions; }
setTaskDescriptions
297,109
void (@NotNull Map<String, String> value) { myEnv = value; }
setEnv
297,110
boolean () { return myPassParentEnvs; }
isPassParentEnvs
297,111
void (boolean passParentEnvs) { myPassParentEnvs = passParentEnvs; }
setPassParentEnvs
297,112
ExternalSystemTaskExecutionSettings () { return new ExternalSystemTaskExecutionSettings(this); }
clone
297,113
int () { int result = myTaskNames.hashCode(); result = 31 * result + (myExecutionName != null ? myExecutionName.hashCode() : 0); result = 31 * result + (myExternalSystemIdString != null ? myExternalSystemIdString.hashCode() : 0); result = 31 * result + (myExternalProjectPath != null ? myExternalProjectPath.hashCode() : 0); result = 31 * result + (myVmOptions != null ? myVmOptions.hashCode() : 0); result = 31 * result + (myScriptParameters != null ? myScriptParameters.hashCode() : 0); result = 31 * result + myEnv.hashCode(); result = 31 * result + (myPassParentEnvs ? 1 : 0); return result; }
hashCode
297,114
boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ExternalSystemTaskExecutionSettings settings = (ExternalSystemTaskExecutionSettings)o; if (!Objects.equals(myExecutionName, settings.myExecutionName)) { return false; } if (!Objects.equals(myExternalProjectPath, settings.myExternalProjectPath)) { return false; } if (!Objects.equals(myExternalSystemIdString, settings.myExternalSystemIdString)) { return false; } if (!Objects.equals(myTaskNames, settings.myTaskNames)) return false; if (StringUtil.isEmpty(myVmOptions) ^ StringUtil.isEmpty(settings.myVmOptions)) return false; if (StringUtil.isEmpty(myScriptParameters) ^ StringUtil.isEmpty(settings.myScriptParameters)) return false; if (!Objects.equals(myEnv, settings.myEnv)) return false; if (myPassParentEnvs != settings.myPassParentEnvs) return false; return true; }
equals
297,115
String () { StringJoiner joiner = new StringJoiner(" "); myTaskNames.forEach(it -> joiner.add(it)); if (StringUtil.isNotEmpty(myScriptParameters)) { joiner.add(myScriptParameters); } if (StringUtil.isNotEmpty(myVmOptions)) { joiner.add(myVmOptions); } return joiner.toString(); }
toString
297,116
Collection<SourceRoot> (@NotNull ExternalSystemSourceType type) { final Collection<SourceRoot> result = data.get(type); return result == null ? Collections.emptyList() : result; }
getPaths
297,117
String () { return rootPath; }
getRootPath
297,118
String () { StringBuilder buffer = new StringBuilder("content root:"); for (Map.Entry<ExternalSystemSourceType, Collection<SourceRoot>> entry : data.entrySet()) { buffer.append(StringUtil.toLowerCase(entry.getKey().toString())).append("=").append(entry.getValue()).append("|"); } if (!data.isEmpty()) { buffer.setLength(buffer.length() - 1); } return buffer.toString(); }
toString
297,119
String () { return path; }
getPath
297,120
String () { return packagePrefix; }
getPackagePrefix
297,121
boolean (Object o) { if (this == o) return true; if (!(o instanceof SourceRoot root)) return false; if (packagePrefix != null ? !packagePrefix.equals(root.packagePrefix) : root.packagePrefix != null) return false; if (!path.equals(root.path)) return false; return true; }
equals
297,122
int () { int result = path.hashCode(); result = 31 * result + (packagePrefix != null ? packagePrefix.hashCode() : 0); return result; }
hashCode
297,123
String () { StringBuilder buffer = new StringBuilder("source_root("); buffer.append(path); if (packagePrefix != null) { buffer.append(", ").append(packagePrefix); } buffer.append(")"); return buffer.toString(); }
toString
297,124
int (@NotNull SourceRoot o1, @NotNull SourceRoot o2) { return StringUtil.naturalCompare(o1.path, o2.path); }
compare
297,125
String () { return moduleTypeId; }
getModuleTypeId
297,126
String () { return externalConfigPath; }
getLinkedExternalProjectPath
297,127
String () { return moduleFileDirectoryPath; }
getModuleFileDirectoryPath
297,128
String () { return productionModuleId; }
getProductionModuleId
297,129
void (@Nullable String productionModuleId) { this.productionModuleId = productionModuleId; }
setProductionModuleId
297,130
boolean () { return inheritProjectCompileOutputPath; }
isInheritProjectCompileOutputPath
297,131
void (boolean inheritProjectCompileOutputPath) { this.inheritProjectCompileOutputPath = inheritProjectCompileOutputPath; }
setInheritProjectCompileOutputPath
297,132
String (@NotNull ExternalSystemSourceType type) { //noinspection ConstantConditions return useExternalCompilerOutput && externalCompilerOutputPaths != null ? externalCompilerOutputPaths.get(type) : compileOutputPaths.get(type); }
getCompileOutputPath
297,133
void (@NotNull ExternalSystemSourceType type, @Nullable String path) { updatePath(compileOutputPaths, type, path); }
setCompileOutputPath
297,134
void (@NotNull ExternalSystemSourceType type, @Nullable String path) { updatePath(externalCompilerOutputPaths, type, path); }
setExternalCompilerOutputPath
297,135
void (boolean useExternalCompilerOutput) { this.useExternalCompilerOutput = useExternalCompilerOutput; }
useExternalCompilerOutput
297,136
String () { return group; }
getGroup
297,137
void (@Nullable String group) { this.group = group; }
setGroup
297,138
ProjectCoordinate () { return publication; }
getPublication
297,139
void (@Nullable ProjectCoordinate publication) { this.publication = publication; }
setPublication
297,140
String () { return version; }
getVersion
297,141
void (@Nullable String version) { this.version = version; }
setVersion
297,142
void (@Nullable String description) { this.description = description; }
setDescription
297,143
List<File> () { return artifacts; }
getArtifacts
297,144
void (@NotNull List<File> artifacts) { this.artifacts = artifacts; }
setArtifacts
297,145
void (String @Nullable [] ideModuleGroup) { this.ideModuleGroup = ideModuleGroup; }
setIdeModuleGroup
297,146
String () { return sourceCompatibility; }
getSourceCompatibility
297,147
void (@Nullable String sourceCompatibility) { this.isSetSourceCompatibility = true; this.sourceCompatibility = sourceCompatibility; }
setSourceCompatibility
297,148
String () { return targetCompatibility; }
getTargetCompatibility
297,149
void (@Nullable String targetCompatibility) { this.isSetTargetCompatibility = true; this.targetCompatibility = targetCompatibility; }
setTargetCompatibility
297,150
String () { return sdkName; }
getSdkName
297,151
void (@Nullable String sdkName) { this.isSetSdkName = true; this.sdkName = sdkName; }
setSdkName
297,152
void (@Nullable String sourceCompatibility) { this.sourceCompatibility = sourceCompatibility; }
internalSetSourceCompatibility
297,153
void (@Nullable String targetCompatibility) { this.targetCompatibility = targetCompatibility; }
internalSetTargetCompatibility
297,154
void (@Nullable String sdkName) { this.sdkName = sdkName; }
internalSetSdkName
297,155
boolean () { return isSetSourceCompatibility; }
isSetSourceCompatibility
297,156
boolean () { return isSetTargetCompatibility; }
isSetTargetCompatibility
297,157
boolean () { return isSetSdkName; }
isSetSdkName
297,158
String (String key) { return properties != null ? properties.get(key) : null; }
getProperty
297,159
void (String key, String value) { if (properties == null) { properties = new HashMap<>(); } properties.put(key, value); }
setProperty
297,160
String () { return moduleName; }
getModuleName
297,161
void (@NotNull String moduleName) { this.moduleName = moduleName; }
setModuleName
297,162
String () { if (ideModuleGroup != null) { return join(ideModuleGroup, "."); } else { return getInternalName(); } }
getIdeGrouping
297,163
String () { if (ideModuleGroup != null) { return nullize(join(ArrayUtil.remove(ideModuleGroup, ideModuleGroup.length - 1), ".")); } else { final String name = getInternalName(); int i = name.lastIndexOf("." + moduleName); if (i > -1) { return name.substring(0, i); } else { return null; } } }
getIdeParentGrouping
297,164
boolean (Object o) { if (!(o instanceof ModuleData that)) return false; if (!super.equals(o)) return false; if (!id.equals(that.id)) return false; if (!externalConfigPath.equals(that.externalConfigPath)) return false; if (group != null ? !group.equals(that.group) : that.group != null) return false; if (!moduleTypeId.equals(that.moduleTypeId)) return false; if (version != null ? !version.equals(that.version) : that.version != null) return false; if (description != null ? !description.equals(that.description) : that.description != null) return false; if (sdkName != null ? !sdkName.equals(that.sdkName) : that.sdkName != null) return false; return true; }
equals
297,165
int () { int result = super.hashCode(); result = 31 * result + id.hashCode(); result = 31 * result + externalConfigPath.hashCode(); result = 31 * result + moduleTypeId.hashCode(); result = 31 * result + (group != null ? group.hashCode() : 0); result = 31 * result + (version != null ? version.hashCode() : 0); result = 31 * result + (description != null ? description.hashCode() : 0); result = 31 * result + (sdkName != null ? sdkName.hashCode() : 0); return result; }
hashCode
297,166
void (Map<ExternalSystemSourceType, String> paths, @NotNull ExternalSystemSourceType type, @Nullable String path) { if (paths == null) return; if (path == null) { paths.remove(type); return; } paths.put(type, ExternalSystemApiUtil.toCanonicalPath(path)); }
updatePath
297,167
String () { return ideProjectFileDirectoryPath; }
getIdeProjectFileDirectoryPath
297,168
void (@NotNull String ideProjectFileDirectoryPath) { this.ideProjectFileDirectoryPath = ExternalSystemApiUtil.toCanonicalPath(ideProjectFileDirectoryPath); }
setIdeProjectFileDirectoryPath
297,169
String () { return linkedExternalProjectPath; }
getLinkedExternalProjectPath
297,170
String () { return ideGrouping; }
getIdeGrouping
297,171
void (@Nullable String ideGrouping) { this.ideGrouping = ideGrouping; }
setIdeGrouping
297,172
int () { int result = super.hashCode(); result = 31 * result + ideProjectFileDirectoryPath.hashCode(); return result; }
hashCode
297,173
boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; ProjectData project = (ProjectData)o; if (!ideProjectFileDirectoryPath.equals(project.ideProjectFileDirectoryPath)) return false; return true; }
equals
297,174
String () { return String.format("%s project '%s'", StringUtil.toLowerCase(getOwner().toString()), getExternalName()); }
toString
297,175
String () { return ""; }
getId
297,176
String () { return group; }
getGroup
297,177
void (String group) { this.group = group; }
setGroup
297,178
String () { return version; }
getVersion
297,179
void (String version) { this.version = version; }
setVersion
297,180
void (@Nullable String description) { this.description = description; }
setDescription
297,181
ModuleData () { return ownerModule; }
getOwnerModule
297,182
void (@NotNull ModuleData ownerModule) { this.ownerModule = ownerModule; }
setOwnerModule
297,183
T () { return target; }
getTarget
297,184
void (@NotNull T target) { this.target = target; }
setTarget
297,185
DependencyScope () { return scope; }
getScope
297,186
void (DependencyScope scope) { this.scope = scope; }
setScope
297,187
boolean () { return exported; }
isExported
297,188
void (boolean exported) { this.exported = exported; }
setExported
297,189
String () { return target.getExternalName(); }
getExternalName
297,190
void (@NotNull String name) { target.setExternalName(name); }
setExternalName
297,191
String () { return target.getInternalName(); }
getInternalName
297,192
void (@NotNull String name) { target.setInternalName(name); }
setInternalName
297,193
int () { return order; }
getOrder
297,194
void (int order) { this.order = order; }
setOrder
297,195
int () { int result = super.hashCode(); result = 31 * result + scope.hashCode(); result = 31 * result + ownerModule.hashCode(); result = 31 * result + target.hashCode(); return result; }
hashCode
297,196
boolean (Object o) { if (!super.equals(o)) { return false; } AbstractDependencyData<?> that = (AbstractDependencyData<?>)o; return scope.equals(that.scope) && ownerModule.equals(that.ownerModule) && target.equals(that.target); }
equals
297,197
String () { return "dependency=" + getTarget() + "|scope=" + getScope() + "|exported=" + isExported() + "|owner=" + getOwnerModule(); }
toString
297,198
void (@NotNull String name) { externalName = name; }
setExternalName
297,199
String () { return internalName; }
getInternalName