mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-254552 Remove unnecessary rows and columns from action usage frequency
GitOrigin-RevId: 9dc70d5ada41fce85160e75be2f029c5fa8cdea4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ae3727e0ad
commit
1b3eba486c
File diff suppressed because it is too large
Load Diff
+5
-5
@@ -36,16 +36,16 @@ public class ActionsGlobalSummaryManager {
|
||||
private final static String DEFAULT_SEPARATOR = ",";
|
||||
private Map<String, ActionGlobalUsageInfo> loadStatistics() {
|
||||
Map<String, ActionGlobalUsageInfo> res = new HashMap<>();
|
||||
try (InputStream stream = getClass().getResourceAsStream("/statistics/actionsGlobalStatistics.csv");
|
||||
try (InputStream stream = getClass().getResourceAsStream("/statistics/actionsUsages.csv");
|
||||
BufferedReader reader = new BufferedReader(new InputStreamReader(stream, StandardCharsets.UTF_8))) {
|
||||
String line = reader.readLine();
|
||||
while (line != null) {
|
||||
String[] items = line.split(DEFAULT_SEPARATOR);
|
||||
|
||||
String id = StringUtil.trim(items[1], QUOTE_FILTER);
|
||||
long users = Long.parseLong(StringUtil.trim(items[4], QUOTE_FILTER));
|
||||
long allUsers = Long.parseLong(StringUtil.trim(items[6], QUOTE_FILTER));
|
||||
long usages = Long.parseLong(StringUtil.trim(items[5], QUOTE_FILTER));
|
||||
String id = StringUtil.trim(items[0], QUOTE_FILTER);
|
||||
long users = Long.parseLong(StringUtil.trim(items[3], QUOTE_FILTER));
|
||||
long allUsers = Long.parseLong(StringUtil.trim(items[5], QUOTE_FILTER));
|
||||
long usages = Long.parseLong(StringUtil.trim(items[4], QUOTE_FILTER));
|
||||
res.put(id, new ActionGlobalUsageInfo(users, allUsers, usages));
|
||||
|
||||
line = reader.readLine();
|
||||
|
||||
Reference in New Issue
Block a user