Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
273,600 | void (@NotNull String recorderId, @NotNull EventLogMetadataUpdateError error) { logMetadataError(recorderId, "metadata.update.failed", error); } | logMetadataErrorOnUpdate |
273,601 | void (@NotNull String recorderId, @NotNull String eventId, @NotNull EventLogMetadataUpdateError error) { final FeatureUsageData data = new FeatureUsageData(recorderId). addData("stage", error.getUpdateStage().name()). addData("error", error.getErrorType()); int code = error.getErrorCode(); if (code != -1) { data.addData("code", code); } logEvent(recorderId, eventId, data); } | logMetadataError |
273,602 | void (@NotNull String recorderId, int total, int succeed, int failed, boolean external, @NotNull List<String> successfullySentFiles, @NotNull List<Integer> errors) { EventLogRecorderConfiguration config = EventLogConfiguration.getInstance().getOrCreate(recorderId); final FeatureUsageData data = new FeatureUsageData(recorderId). addData("total", total). addData("send", succeed + failed). addData("succeed", succeed). addData("failed", failed). addData("errors", ContainerUtil.map(errors, error -> String.valueOf(error))). addData("external", external). addData("paths", ContainerUtil.map(successfullySentFiles, path -> config.anonymize(path))); logEvent(recorderId, "logs.send", data); } | logFilesSend |
273,603 | void (@NotNull String recorderId, long time) { FeatureUsageData data = new FeatureUsageData(recorderId).addData("send_ts", time); logEvent(recorderId, "external.send.started", data); } | logStartingExternalSend |
273,604 | void (@NotNull String recorderId, @Nullable String error, long time) { boolean succeed = StringUtil.isEmpty(error); FeatureUsageData data = new FeatureUsageData(recorderId).addData("succeed", succeed).addData("send_ts", time); if (!succeed) { data.addData("error", error); } logEvent(recorderId, "external.send.finished", data); } | logFinishedExternalSend |
273,605 | void (@NotNull List<String> recorders) { for (String recorderId : recorders) { logEvent(recorderId, "external.send.command.creation.started"); } } | logCreatingExternalSendCommand |
273,606 | void (@NotNull List<String> recorders, @Nullable EventLogUploadErrorType errorType) { boolean succeed = errorType == null; for (String recorderId : recorders) { FeatureUsageData data = new FeatureUsageData(recorderId).addData("succeed", succeed); if (!succeed) { data.addData("error", errorType.name()); } logEvent(recorderId, "external.send.command.creation.finished", data); } } | logFinishedCreatingExternalSendCommand |
273,607 | void (@NotNull String recorderId, @NotNull String eventId, @NotNull String errorClass, long time) { FeatureUsageData data = new FeatureUsageData(recorderId).addData("error", errorClass); if (time != -1) { data.addData("error_ts", time); } logEvent(recorderId, eventId, data); } | logSystemError |
273,608 | void (@NotNull String recorderId, @NotNull String eventId, @NotNull FeatureUsageData data) { StatisticsEventLoggerProvider provider = StatisticsEventLogProviderUtil.getEventLogProvider(recorderId); String groupId = getGroupId(recorderId); provider.getLogger().logAsync(new EventLogGroup(groupId, provider.getVersion()), eventId, data.build(), false); } | logEvent |
273,609 | void (@NotNull String recorderId, @NotNull String eventId) { StatisticsEventLoggerProvider provider = StatisticsEventLogProviderUtil.getEventLogProvider(recorderId); String groupId = getGroupId(recorderId); provider.getLogger().logAsync(new EventLogGroup(groupId, provider.getVersion()), eventId, false); } | logEvent |
273,610 | String (@NotNull String recorderId) { if (DEFAULT_RECORDER.equals(recorderId)) { return GROUP; } return StringUtil.toLowerCase(recorderId) + "." + GROUP; } | getGroupId |
273,611 | String (@Nullable AnActionEvent event) { return event != null ? getInputEventText(event.getInputEvent(), event.getPlace()) : null; } | getActionEventText |
273,612 | String (@Nullable InputEvent inputEvent, @Nullable String place) { if (inputEvent instanceof KeyEvent) { // touchbar uses KeyEvent to perform an action if (ActionPlaces.TOUCHBAR_GENERAL.equals(place)) { return "Touchbar"; } return getKeyEventText((KeyEvent)inputEvent); } else if (inputEvent instanceof MouseEvent) { return getMouseEventText((MouseEvent)inputEvent); } return null; } | getInputEventText |
273,613 | String (@Nullable KeyEvent key) { if (key == null) return null; final KeyStroke keystroke = KeyStroke.getKeyStrokeForEvent(key); return keystroke != null ? getShortcutText(new KeyboardShortcut(keystroke, null)) : "Unknown"; } | getKeyEventText |
273,614 | String (@Nullable MouseEvent event) { if (event == null) return null; String res = getMouseButtonText(event.getButton()); if (event.getID() == MouseEvent.MOUSE_DRAGGED) res += "Drag"; int clickCount = event.getClickCount(); if (clickCount > 1) { res += "(" + roundClickCount(clickCount) + "x)"; } int modifiers = event.getModifiersEx() & ~BUTTON1_DOWN_MASK & ~BUTTON3_DOWN_MASK & ~BUTTON2_DOWN_MASK; if (modifiers > 0) { String modifiersText = getLocaleUnawareKeyModifiersText(modifiers); if (!modifiersText.isEmpty()) { res = modifiersText + "+" + res; } } return res; } | getMouseEventText |
273,615 | String (int clickCount) { if (clickCount < 3) return String.valueOf(clickCount); if (clickCount < 5) return "3-5"; if (clickCount < 25) return "5-25"; if (clickCount < 100) return "25-100"; return "100+"; } | roundClickCount |
273,616 | String (int buttonNum) { return switch (buttonNum) { case MouseEvent.BUTTON1 -> "MouseLeft"; case MouseEvent.BUTTON2 -> "MouseMiddle"; case MouseEvent.BUTTON3 -> "MouseRight"; default -> "NoMouseButton"; }; } | getMouseButtonText |
273,617 | String (KeyboardShortcut shortcut) { int modifiers = shortcut.getFirstKeyStroke().getModifiers(); int code = shortcut.getFirstKeyStroke().getKeyCode(); // Handling shortcuts that looks like [double <modifier_key>] (to avoid FUS-551) if (modifiers == 0 && DOUBLE_CLICK_MODIFIER_KEYS.contains(code)) { String strCode = getLocaleUnawareKeyText(code); return strCode + "+" + strCode; } String results = ""; if (modifiers > 0) { final String keyModifiersText = getLocaleUnawareKeyModifiersText(modifiers); if (!keyModifiersText.isEmpty()) { results = keyModifiersText + "+"; } } results += getLocaleUnawareKeyText(code); return results; } | getShortcutText |
273,618 | String (int keyCode) { if (keyCode >= VK_0 && keyCode <= VK_9 || keyCode >= VK_A && keyCode <= VK_Z) { return String.valueOf((char)keyCode); } String knownKeyCode = ourKeyCodes.get(keyCode); if (knownKeyCode != null) return knownKeyCode; if (keyCode >= VK_NUMPAD0 && keyCode <= VK_NUMPAD9) { char c = (char)(keyCode - VK_NUMPAD0 + '0'); return "NumPad-" + c; } if ((keyCode & 0x01000000) != 0) { return String.valueOf((char)(keyCode ^ 0x01000000)); } return "Unknown keyCode: 0x" + Integer.toString(keyCode, 16); } | getLocaleUnawareKeyText |
273,619 | String (int modifiers) { List<String> pressed = ourModifiers.stream() .filter(p -> (p.first & modifiers) != 0) .map(p -> p.second).toList(); return StringUtil.join(pressed, "+"); } | getLocaleUnawareKeyModifiersText |
273,620 | void (@NotNull String recorderId, @NotNull Map<String, String> options) { if (StringUtil.equals(myRecorderId, recorderId)) { String machineIdSalt = options.get(MACHINE_ID_SALT); String machineIdSaltRevision = options.get(MACHINE_ID_SALT_REVISION); if (machineIdSalt != null && machineIdSaltRevision != null) { onMachineIdConfigurationChanged(machineIdSalt, EventLogOptions.tryParseInt(machineIdSaltRevision)); } } } | optionsChanged |
273,621 | EventLogInternalSendConfig (@NotNull String recorderId, boolean filterActiveFile) { EventLogRecorderConfiguration config = EventLogConfiguration.getInstance().getOrCreate(recorderId); return new EventLogInternalSendConfig(recorderId, config, filterActiveFile); } | createByRecorder |
273,622 | String () { return myDeviceId; } | getDeviceId |
273,623 | int () { return myBucket; } | getBucket |
273,624 | MachineId () { return myMachineId; } | getMachineId |
273,625 | String () { return myRecorderId; } | getRecorderId |
273,626 | boolean () { return StatisticsEventLogProviderUtil.getEventLogProvider(myRecorderId).isSendEnabled(); } | isSendEnabled |
273,627 | boolean () { return StatisticsEventLogProviderUtil.getEventLogProvider(myRecorderId).isCharsEscapingRequired(); } | isEscapingEnabled |
273,628 | FilesToSendProvider () { int maxFilesToSend = EventLogConfiguration.getInstance().getOrCreate(myRecorderId).getMaxFilesToSend(); EventLogFilesProvider logFilesProvider = StatisticsEventLogProviderUtil.getEventLogProvider(myRecorderId).getLogFilesProvider(); return new DefaultFilesToSendProvider(logFilesProvider, maxFilesToSend, myFilterActiveFile); } | getFilesToSendProvider |
273,629 | IntellijSensitiveDataValidator (@NotNull String recorderId) { return ourInstances.computeIfAbsent( recorderId, id -> { IntellijValidationRulesStorage storage = ValidationRulesStorageProvider.newStorage(recorderId); return ApplicationManager.getApplication().isUnitTestMode() ? new BlindSensitiveDataValidator(storage, recorderId) : new IntellijSensitiveDataValidator(storage, recorderId); } ); } | getInstance |
273,630 | boolean (@NotNull EventLogGroup group) { if (StatisticsRecorderUtil.isTestModeEnabled(myRecorderId)) return true; IntellijValidationRulesStorage storage = getValidationRulesStorage(); if (storage.isUnreachable()) return true; return storage.getGroupRules(group.getId()) != null; } | isGroupAllowed |
273,631 | boolean (@Nullable EventGroupRules rule) { return StatisticsRecorderUtil.isTestModeEnabled(myRecorderId) && rule != null && ContainerUtil.exists(rule.getEventIdRules(), r -> r instanceof TestModeValidationRule); } | isTestModeEnabled |
273,632 | void () { getValidationRulesStorage().update(); } | update |
273,633 | void () { getValidationRulesStorage().reload(); } | reload |
273,634 | String (@NotNull EventContext context, @Nullable EventGroupRules groupRules) { return context.eventId; } | guaranteeCorrectEventId |
273,635 | boolean (@NotNull EventLogGroup group) { return true; } | isGroupAllowed |
273,636 | EventGroupRules (@NotNull String groupId) { final EventGroupRules testGroupRules = myTestRulesStorage.getGroupRules(groupId); if (testGroupRules != null) { return testGroupRules; } return myRulesStorage.getGroupRules(groupId); } | getGroupRules |
273,637 | boolean () { return myRulesStorage.isUnreachable() && myTestRulesStorage.isUnreachable(); } | isUnreachable |
273,638 | void () { myRulesStorage.update(); myTestRulesStorage.update(); } | update |
273,639 | void () { myRulesStorage.reload(); myTestRulesStorage.reload(); } | reload |
273,640 | ValidationTestRulesPersistedStorage () { return myTestRulesStorage; } | getTestGroupStorage |
273,641 | IntellijValidationRulesStorage (@NotNull String recorderId) { final IntellijValidationRulesStorage storage = ApplicationManager.getApplication().isUnitTestMode() ? ValidationRulesInMemoryStorage.INSTANCE : new ValidationRulesPersistedStorage(recorderId); if (ApplicationManager.getApplication().isInternal()) { return new CompositeValidationRulesStorage(storage, new ValidationTestRulesPersistedStorage(recorderId)); } return storage; } | newStorage |
273,642 | long () { EventLogConnectionSettings settings = mySettingsService.getApplicationInfo().getConnectionSettings(); return EventLogMetadataUtils.lastModifiedMetadata(mySettingsService.getMetadataProductUrl(), settings); } | getLastModifiedOnServer |
273,643 | void () { EventLogConfigOptionsService.getInstance().updateOptions(myRecorderId, myMetadataLoader); long lastModifiedLocally = myMetadataPersistence.getLastModified(); long lastModifiedOnServer = myMetadataLoader.getLastModifiedOnServer(); if (LOG.isTraceEnabled()) { LOG.trace( "Loading events scheme, last modified cached=" + lastModifiedLocally + ", last modified on the server=" + lastModifiedOnServer ); } try { if (lastModifiedOnServer <= 0 || lastModifiedOnServer > lastModifiedLocally || isUnreachable()) { String rawEventsSchemeFromServer = myMetadataLoader.loadMetadataFromServer(); String version = updateValidators(rawEventsSchemeFromServer); myMetadataPersistence.cacheEventsScheme(rawEventsSchemeFromServer, lastModifiedOnServer); if (LOG.isTraceEnabled()) { LOG.trace("Update local events scheme, last modified cached=" + myMetadataPersistence.getLastModified()); } if (version != null && !StringUtil.equals(version, myVersion)) { myVersion = version; EventLogSystemLogger.logMetadataUpdated(myRecorderId, myVersion); } } } catch (EventLogMetadataLoadException | EventLogMetadataParseException e) { EventLogSystemLogger.logMetadataErrorOnUpdate(myRecorderId, e); } } | update |
273,644 | void () { myVersion = loadValidatorsFromLocalCache(myRecorderId); } | reload |
273,645 | boolean () { return !myIsInitialized.get(); } | isUnreachable |
273,646 | void () { updateValidators(); } | update |
273,647 | void () { updateValidators(); } | reload |
273,648 | boolean () { return !myIsInitialized.get(); } | isUnreachable |
273,649 | void () { synchronized (myLock) { eventsValidators.clear(); myIsInitialized.set(false); EventGroupRemoteDescriptors productionGroups = EventLogTestMetadataPersistence.loadCachedEventGroupsSchemes(myMetadataPersistence); EventGroupRemoteDescriptors testGroups = EventLogTestMetadataPersistence.loadCachedEventGroupsSchemes(myTestMetadataPersistence); final Map<String, EventGroupRules> result = createValidators(testGroups, productionGroups.rules); eventsValidators.putAll(result); myIsInitialized.set(true); } } | updateValidators |
273,650 | EventGroupRemoteDescriptors () { return EventLogTestMetadataPersistence.loadCachedEventGroupsSchemes(myMetadataPersistence); } | loadProductionGroups |
273,651 | void () { synchronized (myLock) { eventsValidators.clear(); myTestMetadataPersistence.cleanup(); } } | cleanup |
273,652 | void (@NotNull GroupRemoteRule to, @NotNull GroupRemoteRule from) { if (to.enums == null) { to.enums = new HashMap<>(); } if (to.regexps == null) { to.regexps = new HashMap<>(); } if (from.enums != null) { to.enums.putAll(from.enums); } if (from.regexps != null) { to.regexps.putAll(from.regexps); } } | copyRules |
273,653 | void () { List<String> recorders = StatisticsEventLogProviderUtil.getEventLogProviders().stream(). filter(provider -> provider.isRecordEnabled()). map(provider -> provider.getRecorderId()). collect(Collectors.toList()); cleanupAll(recorders); } | cleanupAll |
273,654 | void (List<String> recorders) { for (String recorderId : recorders) { ValidationTestRulesPersistedStorage testStorage = getTestStorage(recorderId, false); if (testStorage != null) { testStorage.cleanup(); } } } | cleanupAll |
273,655 | int () { synchronized (myLock) { return eventsValidators.size(); } } | size |
273,656 | void () { try { Files.deleteIfExists(getEventsTestSchemeFile()); } catch (IOException e) { LOG.error(e); } } | cleanup |
273,657 | EventGroupRemoteDescriptors (@NotNull BaseEventLogMetadataPersistence persistence) { final String existing = persistence.getCachedEventsScheme(); if (Strings.isNotEmpty(existing)) { try { return EventLogMetadataUtils.parseGroupRemoteDescriptors(existing); } catch (EventLogMetadataParseException e) { LOG.warn("Failed parsing test cached events scheme", e); } } return new EventGroupRemoteDescriptors(); } | loadCachedEventGroupsSchemes |
273,658 | EventGroupRemoteDescriptor (@NotNull String groupId, @NotNull Set<String> eventData) { final EventGroupRemoteDescriptor group = new EventGroupRemoteDescriptor(); group.id = groupId; if (group.versions != null) { group.versions.add(new EventGroupRemoteDescriptors.GroupVersionRange("1", null)); } GroupRemoteRule rule = new GroupRemoteRule(); rule.event_id = new HashSet<>(Collections.singletonList(TEST_RULE)); final Map<String, Set<String>> dataRules = new HashMap<>(); for (String datum : eventData) { dataRules.put(datum, new HashSet<>(Collections.singletonList(TEST_RULE))); } rule.event_data = dataRules; group.rules = rule; return group; } | createTestGroup |
273,659 | Path () { return getMetadataConfigRoot(DEPRECATED_FUS_METADATA_DIR); } | getDeprecatedMetadataDir |
273,660 | Path (@NotNull String dir) { return PathManager.getConfigDir().resolve(dir); } | getMetadataConfigRoot |
273,661 | String () { try { Path file = getEventsSchemeFile(); if (Files.exists(file) && Files.isRegularFile(file)) { return Files.readString(file); } } catch (IOException e) { LOG.error(e); } return null; } | getCachedEventsScheme |
273,662 | void (@NotNull String eventsSchemeJson, long lastModified) { try { Path file = getDefaultFile(); Files.createDirectories(file.getParent()); Files.writeString(file, eventsSchemeJson); EventLogMetadataSettingsPersistence.getInstance().setLastModified(myRecorderId, lastModified); } catch (IOException e) { LOG.error(e); } } | cacheEventsScheme |
273,663 | String () { return "resources/" + FUS_METADATA_DIR + "/" + myRecorderId + "/" + EVENTS_SCHEME_FILE; } | builtinEventSchemePath |
273,664 | long () { return EventLogMetadataSettingsPersistence.getInstance().getLastModified(myRecorderId); } | getLastModified |
273,665 | EventLogMetadataSettingsPersistence () { return ApplicationManager.getApplication().getService(EventLogMetadataSettingsPersistence.class); } | getInstance |
273,666 | void (@NotNull String recorderId, Map<String, String> options) { synchronized (myOptionsLock) { if (!myOptions.containsKey(recorderId)) { myOptions.put(recorderId, new EventLogExternalOptions()); } myOptions.get(recorderId).putOptions(options); } } | setOptions |
273,667 | long (@NotNull String recorderId) { return myLastModifications.containsKey(recorderId) ? Math.max(myLastModifications.get(recorderId), 0) : 0; } | getLastModified |
273,668 | void (@NotNull String recorderId, long lastUpdate) { myLastModifications.put(recorderId, Math.max(lastUpdate, 0)); } | setLastModified |
273,669 | EventsSchemePathSettings (@NotNull String recorderId) { return myRecorderToPathSettings.get(recorderId); } | getPathSettings |
273,670 | void (@NotNull String recorderId, @NotNull EventsSchemePathSettings settings) { myRecorderToPathSettings.put(recorderId, settings); } | setPathSettings |
273,671 | void (@NotNull final Element element) { myLastModifications.clear(); for (Element update : element.getChildren(MODIFY)) { final String recorder = update.getAttributeValue(RECORDER_ID); if (StringUtil.isNotEmpty(recorder)) { final long lastUpdate = parseLastUpdate(update); myLastModifications.put(recorder, lastUpdate); } } myRecorderToPathSettings.clear(); for (Element path : element.getChildren(PATH)) { final String recorder = path.getAttributeValue(RECORDER_ID); if (StringUtil.isNotEmpty(recorder)) { String customPath = path.getAttributeValue(CUSTOM_PATH); if (customPath == null) continue; boolean useCustomPath = parseUseCustomPath(path); myRecorderToPathSettings.put(recorder, new EventsSchemePathSettings(customPath, useCustomPath)); } } synchronized (myOptionsLock) { myOptions.clear(); for (Element options : element.getChildren(OPTIONS)) { String recorderId = options.getAttributeValue(RECORDER_ID); if (recorderId != null) { myOptions.put(recorderId, new EventLogExternalOptions().deserialize(options)); } } } } | loadState |
273,672 | boolean (@NotNull Element update) { try { return Boolean.parseBoolean(update.getAttributeValue(USE_CUSTOM_PATH, "false")); } catch (NumberFormatException e) { return false; } } | parseUseCustomPath |
273,673 | long (@NotNull Element update) { try { return Long.parseLong(update.getAttributeValue(LAST_MODIFIED, "0")); } catch (NumberFormatException e) { return 0; } } | parseLastUpdate |
273,674 | Element () { final Element element = new Element("state"); for (Map.Entry<String, Long> entry : myLastModifications.entrySet()) { final Element update = new Element(MODIFY); update.setAttribute(RECORDER_ID, entry.getKey()); update.setAttribute(LAST_MODIFIED, String.valueOf(entry.getValue())); element.addContent(update); } for (Map.Entry<String, EventsSchemePathSettings> entry : myRecorderToPathSettings.entrySet()) { final Element path = new Element(PATH); path.setAttribute(RECORDER_ID, entry.getKey()); EventsSchemePathSettings value = entry.getValue(); path.setAttribute(CUSTOM_PATH, value.getCustomPath()); path.setAttribute(USE_CUSTOM_PATH, String.valueOf(value.isUseCustomPath())); element.addContent(path); } for (Map.Entry<String, EventLogExternalOptions> entry : myOptions.entrySet()) { Element options = new Element(OPTIONS); options.setAttribute(RECORDER_ID, entry.getKey()); for (Element option : entry.getValue().serialize()) { options.addContent(option); } element.addContent(options); } return element; } | getState |
273,675 | void (@NotNull Map<String, String> options) { myOptions.putAll(options); } | putOptions |
273,676 | List<Element> () { List<Element> result = new ArrayList<>(); for (Map.Entry<String, String> entry : myOptions.entrySet()) { Element option = new Element(OPTION); option.setAttribute(OPTION_NAME, entry.getKey()); option.setAttribute(OPTION_VALUE, entry.getValue()); result.add(option); } return result; } | serialize |
273,677 | EventLogExternalOptions (@NotNull Element root) { myOptions.clear(); for (Element option : root.getChildren(OPTION)) { String name = option.getAttributeValue(OPTION_NAME); String value = option.getAttributeValue(OPTION_VALUE); if (name != null && value != null) { myOptions.put(name, value); } } return this; } | deserialize |
273,678 | String () { return myCustomPath; } | getCustomPath |
273,679 | boolean () { return myUseCustomPath; } | isUseCustomPath |
273,680 | boolean (FUSRule extension) { if (extension instanceof TestModeValidationRule && !myTestMode) return false; return isDevelopedByJetBrains(extension); } | isAcceptedRule |
273,681 | boolean (FUSRule extension) { return ApplicationManager.getApplication().isUnitTestMode() || PluginInfoDetectorKt.getPluginInfo(extension.getClass()).isDevelopedByJetBrains(); } | isDevelopedByJetBrains |
273,682 | String () { return myRule; } | getRuleId |
273,683 | ValidationResultType (@NotNull String data, @NotNull EventContext context) { final Enum[] constants = myEnumClass.getEnumConstants(); for (Enum constant : constants) { if (StringUtil.equals(constant.name(), data)) { return ValidationResultType.ACCEPTED; } } return ValidationResultType.REJECTED; } | doValidate |
273,684 | String () { return ruleId; } | getRuleId |
273,685 | boolean (@NotNull String value) { return storage.getItems().contains(value); } | isAllowed |
273,686 | ValidationResultType (@NotNull String data, @NotNull EventContext context) { if (isThirdPartyValue(data) || isAllowed(data)) { return ValidationResultType.ACCEPTED; } return ValidationResultType.REJECTED; } | doValidate |
273,687 | boolean (@Nullable @NonNls String ruleId) { return getRuleId().equals(ruleId); } | acceptRuleId |
273,688 | String () { throw new UnsupportedOperationException(String.format("The method getRuleId must be overridden in %s", getClass())); } | getRuleId |
273,689 | ValidationResultType (@NotNull EventContext context) { final Object pluginType = context.eventData.get("plugin_type"); final PluginType type = pluginType != null ? PluginInfoDetectorKt.findPluginTypeByValue(pluginType.toString()) : null; if (type == null || !type.isSafeToReport()) { return ValidationResultType.REJECTED; } if (type.isPlatformOrJvm() || type == PluginType.FROM_SOURCES || hasPluginField(context)) { return ValidationResultType.ACCEPTED; } return ValidationResultType.REJECTED; } | acceptWhenReportedByPluginFromPluginRepository |
273,690 | ValidationResultType (@NotNull EventContext context) { return isReportedByJetBrainsPlugin(context) ? ValidationResultType.ACCEPTED : ValidationResultType.REJECTED; } | acceptWhenReportedByJetBrainsPlugin |
273,691 | boolean (@NotNull EventContext context) { final Object pluginType = context.eventData.get("plugin_type"); final PluginType type = pluginType != null ? PluginInfoDetectorKt.findPluginTypeByValue(pluginType.toString()) : null; if (type == null || !type.isDevelopedByJetBrains()) { return false; } if (type.isPlatformOrJvm() || type == PluginType.FROM_SOURCES || hasPluginField(context)) { return true; } return false; } | isReportedByJetBrainsPlugin |
273,692 | boolean (@NotNull EventContext context) { if (context.eventData.containsKey("plugin")) { final Object plugin = context.eventData.get("plugin"); return plugin instanceof String && StringUtil.isNotEmpty((String)plugin); } return false; } | hasPluginField |
273,693 | boolean (@NotNull String data) { return ValidationResultType.THIRD_PARTY.getDescription().equals(data); } | isThirdPartyValue |
273,694 | boolean (@NotNull String plugin) { PluginId pluginId = PluginId.findId(plugin); return pluginId != null && PluginInfoDetectorKt.getPluginInfoById(pluginId).isSafeToReport(); } | isPluginFromPluginRepository |
273,695 | Language (@NotNull EventContext context) { final Object id = context.eventData.get("lang"); return id instanceof String ? Language.findLanguageByID((String)id) : null; } | getLanguage |
273,696 | String (@NotNull EventContext context, @NotNull String name) { return context.eventData.containsKey(name) ? context.eventData.get(name).toString() : null; } | getEventDataField |
273,697 | String () { return "fus_test_mode"; } | getRuleId |
273,698 | ValidationResultType (@NotNull String data, @NotNull EventContext context) { return myTestMode ? ACCEPTED : REJECTED; } | doValidate |
273,699 | String (@NotNull String value) { return value.trim(); } | createValue |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.