From 3960ad9a1448f1b0988325fc9d17f9b036abe00d Mon Sep 17 00:00:00 2001 From: qishipengqsp Date: Mon, 23 Sep 2024 23:55:03 +0800 Subject: [PATCH] wip --- .../dictionary/CommonTextDictionary.java | 4 ++-- src/main/resources/scale_factors.xml | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/main/java/ldbc/finbench/datagen/generation/dictionary/CommonTextDictionary.java b/src/main/java/ldbc/finbench/datagen/generation/dictionary/CommonTextDictionary.java index d66198f5..2057277c 100644 --- a/src/main/java/ldbc/finbench/datagen/generation/dictionary/CommonTextDictionary.java +++ b/src/main/java/ldbc/finbench/datagen/generation/dictionary/CommonTextDictionary.java @@ -39,8 +39,8 @@ public String getUniformDistRandomText(Random random) { public String getUniformDistRandomTextForComments(Random random) { StringBuilder text = new StringBuilder(); - for (int i = 0; i < 4; i++) { - text.append(random.nextInt(resources.size())).append(" "); + for (int i = 0; i < 5; i++) { + text.append(resources.get((long) random.nextInt(resources.size()))).append(" "); } return text.toString(); } diff --git a/src/main/resources/scale_factors.xml b/src/main/resources/scale_factors.xml index 6258db3e..18d70cdb 100644 --- a/src/main/resources/scale_factors.xml +++ b/src/main/resources/scale_factors.xml @@ -118,15 +118,15 @@ generator.numPersons - 200000 + 100000 generator.numCompanies - 200000 + 100000 generator.numMediums - 350000 + 200000 transfer.minNumDegree @@ -141,15 +141,15 @@ generator.numPersons - 600000 + 300000 generator.numCompanies - 600000 + 300000 generator.numMediums - 1200000 + 600000 transfer.minNumDegree @@ -164,15 +164,15 @@ generator.numPersons - 2000000 + 1000000 generator.numCompanies - 2000000 + 1000000 generator.numMediums - 3500000 + 2000000 transfer.minNumDegree