Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
265,200
CharSequence () { return buffer; }
getBufferSequence
265,201
int () { return end; }
getBufferEnd
265,202
HighlighterIterator () { return iterator; }
getHighlighterIterator
265,203
PsiFile () { return myFile; }
getFile
265,204
TextRange () { return new TextRange(myStartOffset, myEndOffset); }
getTextRange
265,205
List<TextRange> () { return myAdditionalRanges; }
getAdditionalTextRanges
265,206
IndexPattern () { return myPattern; }
getPattern
265,207
int () { return myFile.hashCode()+myStartOffset+myEndOffset+myPattern.hashCode(); }
hashCode
265,208
boolean (Object obj) { if(!(obj instanceof IndexPatternOccurrenceImpl todoItem)){ return false; } return myFile.equals(todoItem.myFile) && myStartOffset == todoItem.myStartOffset && myEndOffset == todoItem.myEndOffset && myPattern.equals(todoItem.myPattern); }
equals
265,209
TodoItem (IndexPatternOccurrence occurrence) { final TextRange occurrenceRange = occurrence.getTextRange(); return new TodoItemImpl(occurrence.getFile(), occurrenceRange.getStartOffset(), occurrenceRange.getEndOffset(), mapPattern(occurrence.getPattern()), occurrence.getAdditionalTextRanges()); }
createTodo
265,210
TodoPattern (@NotNull IndexPattern pattern) { for (TodoPattern todoPattern : myTodoPatterns) { if (todoPattern.getIndexPattern() == pattern) { return todoPattern; } } LOG.error("Could not find matching TODO pattern for index pattern " + pattern.getPatternString()); return null; }
mapPattern
265,211
void (@NotNull AnActionEvent e) { final DataContext dataContext = e.getDataContext(); final Project project = CommonDataKeys.PROJECT.getData(dataContext); if (project != null) { final VirtualFile[] virtualFiles = CommonDataKeys.VIRTUAL_FILE_ARRAY.getData(dataContext); final Presentation presentation = e.getPresentation...
update
265,212
ActionUpdateThread () { return ActionUpdateThread.BGT; }
getActionUpdateThread
265,213
void (@NotNull AnActionEvent event) { final DataContext dataContext = event.getDataContext(); final Project project = CommonDataKeys.PROJECT.getData(dataContext); if (project == null) { return; } final VirtualFile[] virtualFiles = CommonDataKeys.VIRTUAL_FILE_ARRAY.getData(dataContext); if (virtualFiles == null) { retur...
actionPerformed
265,214
Result (@NotNull VirtualFile file) { if (shouldProcess(file)) { changeLineSeparators(project, file, mySeparator); } return file.isDirectory() && (file.equals(projectVirtualDirectory) || fileTypeManager.isFileIgnored(file)) ? SKIP_CHILDREN : CONTINUE; }
visitFileEx
265,215
boolean (@NotNull VirtualFile file) { return !(file.isDirectory() || !file.isWritable() || file instanceof VirtualFileWindow || FileTypeRegistry.getInstance().isFileIgnored(file) || file.getFileType().isBinary() || file.getFileType() instanceof InternalFileType); }
shouldProcess
265,216
void (@NotNull Project project, @NotNull VirtualFile virtualFile, @NotNull String newSeparator) { FileDocumentManager fileDocumentManager = FileDocumentManager.getInstance(); Document document = fileDocumentManager.getCachedDocument(virtualFile); if (document != null) { fileDocumentManager.saveDocument(document); } Str...
changeLineSeparators
265,217
void (StringBuilder builder) { builder.append("<hr>"); if (getAuthor() != null) { builder.append("<b>Author:</b> ").append(getAuthor()).append("<br>"); } if (getDate() != null) { builder.append("<b>Date:</b> ").append(DateFormatUtil.formatDateTime(getDate())).append("<br>"); } builder.append(getText().replace("\n", "<b...
appendTo
265,218
TaskManager (@NotNull Project project) { return project.getService(TaskManager.class); }
getManager
265,219
List<BranchInfo> (final VcsTaskHandler.TaskInfo taskInfo, final boolean original) { return ContainerUtil.map(taskInfo.getRepositories(), s -> { BranchInfo info = new BranchInfo(); info.name = taskInfo.getName(); info.repository = s; info.original = original; return info; }); }
fromTaskInfo
265,220
boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; BranchInfo info = (BranchInfo)o; if (original != info.original) return false; if (name != null ? !name.equals(info.name) : info.name != null) return false; if (repository != null ? !repository.equals(info.reposit...
equals
265,221
int () { int result = name != null ? name.hashCode() : 0; result = 31 * result + (repository != null ? repository.hashCode() : 0); result = 31 * result + (original ? 1 : 0); return result; }
hashCode
265,222
boolean (Object o) { if (this == o) return true; if (!(o instanceof ChangeListInfo that)) return false; return Objects.equals(id, that.id); }
equals
265,223
int () { return id != null ? id.hashCode() : 0; }
hashCode
265,224
String () { return myId; }
getId
265,225
void (@NotNull String id) { myId = id; }
setId
265,226
String () { return myPresentableName; }
getPresentableName
265,227
void (@NotNull String name) { myPresentableName = name; }
setPresentableName
265,228
boolean (Object o) { if (this == o) return true; if (!(o instanceof CustomTaskState state)) return false; return myId.equals(state.myId); }
equals
265,229
int () { return myId.hashCode(); }
hashCode
265,230
CustomTaskState (@NotNull TaskState state) { final CustomTaskState result = new CustomTaskState(state.name(), state.getPresentableName()); result.setPredefined(true); return result; }
fromPredefined
265,231
TaskState () { if (isPredefined()) { try { return TaskState.valueOf(getId()); } catch (IllegalArgumentException ignored) { } } return null; }
asPredefined
265,232
boolean () { return myPredefined; }
isPredefined
265,233
void (boolean predefined) { myPredefined = predefined; }
setPredefined
265,234
String () { return "CustomTaskState(id='" + myId + '\'' + ", name='" + myPresentableName + '\'' + ", predefined=" + myPredefined + ')'; }
toString
265,235
List<TaskRepositorySubtype> () { return Collections.singletonList(this); }
getAvailableSubtypes
265,236
TaskRepository (TaskRepositorySubtype subtype) { return subtype.createRepository(); }
createRepository
265,237
EnumSet<TaskState> () { return EnumSet.noneOf(TaskState.class); }
getPossibleTaskStates
265,238
int () { return 0; }
getSortOrder
265,239
int (@NotNull TaskRepositoryType other) { return other.getSortOrder() - this.getSortOrder(); }
compareTo
265,240
boolean () { return false; }
isDefault
265,241
List<BranchInfo> (final boolean original) { return ContainerUtil.filter(getBranches(), info -> info.original == original); }
getBranches
265,242
String () { return trimTrailingSlashes(myUrl); }
getUrl
265,243
void (String url) { myUrl = trimTrailingSlashes(url); }
setUrl
265,244
boolean () { return StringUtil.isNotEmpty(getUrl()); }
isConfigured
265,245
boolean () { return myShared; }
isShared
265,246
void (boolean shared) { myShared = shared; }
setShared
265,247
Icon () { return getRepositoryType().getIcon(); }
getIcon
265,248
CancellableConnection () { return null; }
createCancellableConnection
265,249
void () {}
initializeRepository
265,250
boolean (Object o) { if (this == o) return true; if (!(o instanceof TaskRepository that)) return false; if (!Comparing.equal(myType, that.myType)) return false; if (isShared() != that.isShared()) return false; if (getUrl() != null ? !getUrl().equals(that.getUrl()) : that.getUrl() != null) return false; if (getCommitMes...
equals
265,251
TaskRepositoryType () { return myType; }
getRepositoryType
265,252
void (TaskRepositoryType type) { myType = type; }
setRepositoryType
265,253
boolean () { return myShouldFormatCommitMessage; }
isShouldFormatCommitMessage
265,254
void (final boolean shouldFormatCommitMessage) { myShouldFormatCommitMessage = shouldFormatCommitMessage; }
setShouldFormatCommitMessage
265,255
String () { return myCommitMessageFormat; }
getCommitMessageFormat
265,256
void (@NotNull String commitMessageFormat) { myCommitMessageFormat = commitMessageFormat; }
setCommitMessageFormat
265,257
String () { return getClass().getSimpleName() + "(URL='" + myUrl + "')"; }
toString
265,258
String (String url) { if (url == null) return ""; for (int i = url.length() - 1; i >= 0; i--) { if (url.charAt(i) != '/') { return url.substring(0, i + 1); } } return ""; }
trimTrailingSlashes
265,259
String (@NotNull Task task) { return isShouldFormatCommitMessage() ? myCommitMessageFormat.replace("{id}", task.getPresentableId()).replace("{summary}", task.getSummary()) : null; }
getTaskComment
265,260
String () { return "{id} (e.g. FOO-001), {summary}, {number} (e.g. 001), {project} (e.g. FOO)"; }
getComment
265,261
Exception () { try { doTest(); return null; } catch (Exception e) { return e; } }
call
265,262
int () { return NATIVE_SEARCH; }
getFeatures
265,263
boolean (Object obj) { return obj instanceof Task && ((Task)obj).getId().equals(getId()); }
equals
265,264
int () { return getId().hashCode(); }
hashCode
265,265
String () { return extractNumberFromId(getId()); }
getNumber
265,266
String (@NotNull String id) { int i = id.lastIndexOf('-'); return i > 0 ? id.substring(i + 1) : id; }
extractNumberFromId
265,267
void (@NotNull final LocalTask task) { }
taskDeactivated
265,268
void (@NotNull final LocalTask task) { }
taskActivated
265,269
void (@NotNull final LocalTask task) { }
taskAdded
265,270
void (@NotNull final LocalTask task) { }
taskRemoved
265,271
String () { return myPresentableName; }
getPresentableName
265,272
JComponent () { return null; }
getPreferredFocusedComponent
265,273
void () {}
dispose
265,274
void (@NotNull Project project) { }
clearContext
265,275
void (int hits) { if (ourPrintDebugStatistics && hits % 1000 == 0) { //noinspection UseOfSystemOutOrSystemErr System.out.println("IntSLRUCache.getCachedEntry time " + System.currentTimeMillis() + ", prot=" + protectedHits + ", prob=" + probationalHits + ", misses=" + misses); } }
printStatistics
265,276
String (@NotNull String url) { return StringUtil.trimTrailing(url, '/'); }
trimTrailingSlashes
265,277
String (@NotNull String url) { return StringUtil.trimLeading(url, '/'); }
trimLeadingSlashes
265,278
String (@NotNull String url) { int end = Strings.indexOfAny(url, URI_SEPARATOR_CHARS); return end != -1 ? url.substring(0, end) : url; }
trimParameters
265,279
Couple<String> (@NotNull String url) { int index = url.indexOf(URLUtil.SCHEME_SEPARATOR); if (index == -1) { return Couple.of("", url); } return Couple.of(url.substring(0, index), url.substring(index+URLUtil.SCHEME_SEPARATOR.length())); }
splitScheme
265,280
SubTaskProgressIndicator (int taskWeight) { if (taskWeight < 0) { throw new IllegalArgumentException("Task weight must not be negative: " + taskWeight); } if (myRemainingTotalWeight.addAndGet(-taskWeight) < 0) { throw new IllegalStateException("Attempted to create more task indicators than registered in constructor"); ...
createSubTaskIndicator
265,281
void (@NotNull @NlsContexts.ProgressText String text) { myParent.setText(text); }
setText
265,282
void (boolean indeterminate) { //Do nothing because "isIndeterminate" is controlled by original indicator of the [progressManager]. }
setIndeterminate
265,283
void (String text) { //The main text of the sub-task indicator becomes the text2 of the parent indicator. myProgressManager.setText2(this, text); }
setText
265,284
void (double newValue) { double oldValue = Double.longBitsToDouble(myFraction.getAndSet(Double.doubleToRawLongBits(newValue))); myProgressManager.updateTaskFraction(newValue - oldValue, myTaskWeight); }
setFraction
265,285
void (String text) { //Ignore the text2 }
setText2
265,286
double () { return Double.longBitsToDouble(myFraction.get()); }
getFraction
265,287
void () { setFraction(1); myProgressManager.setText2(this, null); }
finished
265,288
int (int key) { return (key & 0x7fffffff) % myArray.length; }
getArrayIndex
265,289
void (int key) { int index = getArrayIndex(key); MapEntry<T> candidate = myArray[index]; MapEntry<T> prev = null; while (candidate != null) { if (candidate.key == key) { if (prev == null) { myArray[index] = candidate.next; } else { prev.next = candidate.next; } candidate.before.after = candidate.after; candidate.after....
removeEntry
265,290
MapEntry<T> (@NotNull MapEntry<T> entry) { removeEntry(entry.key); int index = getArrayIndex(entry.key); entry.next = myArray[index]; myArray[index] = entry; entry.before = myHeader.before; entry.after = myHeader; entry.before.after = entry; myHeader.before = entry; mySize++; if (mySize <= myCapacity) { return null; } ...
putEntry
265,291
String () { return key + "->" + value; }
toString
265,292
void (final @NotNull FileSetVersionsCallback<FS> callback) { ApplicationManager.getApplication().executeOnPooledThread(() -> callback.onSuccess(fetchVersions())); }
fetchVersions
265,293
List<FS> () { ApplicationManager.getApplication().assertIsNonDispatchThread(); final Artifact[] versions; if (myGroupId != null) { versions = LibrariesDownloadAssistant.getVersions(myGroupId, myLocalUrls); } else { versions = LibrariesDownloadAssistant.getVersions(myLocalUrls); } final List<FS> result = new ArrayList<>...
fetchVersions
265,294
String (@NotNull String url, @Nullable String prefix) { if (!url.startsWith("http://") && prefix != null) { url = prefix + url; } return url; }
prependPrefix
265,295
void (@NotNull ProgressIndicator indicator) { try { localFiles.set(download(targetDir)); } catch (IOException exception) { final boolean tryAgain = IdeUiService.getInstance().showErrorDialog(myDialogTitle, exception.getMessage()); if (tryAgain) { downloadWithBackgroundProcess(targetDir, project).thenAccept(pairs -> res...
run
265,296
void () { List<Pair<File, DownloadableFileDescription>> files = localFiles.get(); result.complete(files != null ? findVirtualFiles(files) : null); }
onSuccess
265,297
void () { result.complete(null); }
onCancel
265,298
void (final List<? extends Pair<File, DownloadableFileDescription>> pairs) { for (Pair<File, DownloadableFileDescription> pair : pairs) { FileUtil.delete(pair.getFirst()); } }
deleteFiles
265,299
FileDownloader (@NotNull String directoryForDownloadedFilesPath) { myDirectoryForDownloadedFilesPath = directoryForDownloadedFilesPath; return this; }
toDirectory