@@ -86,8 +86,6 @@ private enum ParameterNames {
86
86
FLASHMOB_TAG_DIST_EXP ("ldbc.snb.datagen.generator.flashmobTagDistExp" ),
87
87
FLASHMOB_TAG_MAX_LEVEL ("ldbc.snb.datagen.generator.flashmobTagMaxLevel" ),
88
88
FLASHMOB_TAG_MIN_LEVEL ("ldbc.snb.datagen.generator.flashmobTagMinLevel" ),
89
- FRIEND_REACCEPT ("ldbc.snb.datagen.generator.friendReApproveRatio" ),
90
- FRIEND_REJECT ("ldbc.snb.datagen.generator.friendRejectRatio" ),
91
89
GROUP_MAX_POST_MONTH ("ldbc.snb.datagen.generator.maxNumGroupPostPerMonth" ),
92
90
GROUP_MODERATOR_RATIO ("ldbc.snb.datagen.generator.groupModeratorProb" ),
93
91
LARGE_COMMENT_RATIO ("ldbc.snb.datagen.generator.ratioLargeComment" ),
@@ -109,7 +107,6 @@ private enum ParameterNames {
109
107
MAX_POPULAR_PLACES ("ldbc.snb.datagen.generator.maxNumPopularPlaces" ),
110
108
MAX_TEXT_SIZE ("ldbc.snb.datagen.generator.maxTextSize" ),
111
109
MIN_COMMENT_SIZE ("ldbc.snb.datagen.generator.minCommentSize" ),
112
- MIN_FRIENDS ("ldbc.snb.datagen.generator.minNumFriends" ),
113
110
MIN_LARGE_COMMENT_SIZE ("ldbc.snb.datagen.generator.minLargeCommentSize" ),
114
111
MIN_LARGE_POST_SIZE ("ldbc.snb.datagen.generator.minLargePostSize" ),
115
112
MIN_TEXT_SIZE ("ldbc.snb.datagen.generator.minTextSize" ),
@@ -120,8 +117,6 @@ private enum ParameterNames {
120
117
PROB_RANDOM_PER_LEVEL ("ldbc.snb.datagen.generator.probRandomPerLevel" ),
121
118
REDUCE_TEXT_RATIO ("ldbc.snb.datagen.generator.ratioReduceText" ),
122
119
SECOND_LANGUAGE_RATIO ("ldbc.snb.datagen.generator.probSecondLang" ),
123
- STATUS_MISSING_RATIO ("ldbc.snb.datagen.generator.missingStatusRatio" ),
124
- STATUS_SINGLE_RATIO ("ldbc.snb.datagen.generator.probSingleStatus" ),
125
120
TAG_UNCORRELATED_COUNTRY ("ldbc.snb.datagen.generator.tagCountryCorrProb" ),
126
121
UNIVERSITY_UNCORRELATED_RATIO ("ldbc.snb.datagen.generator.probUnCorrelatedOrganization" ),
127
122
MAX_NUM_LIKE ("ldbc.snb.datagen.generator.maxNumLike" ),
@@ -146,12 +141,9 @@ public String toString() {
146
141
public static double flashmobTagDistExp = 0.0 ; // the flashmob tag distribution exponent
147
142
public static double flashmobTagMaxLevel = 0.0 ; // the flashmob tag max activity volume level
148
143
public static double flashmobTagMinLevel = 0.0 ; // the flashmob tag min activity volume level
149
- public static double friendReApproveRatio = 0.0 ;
150
- public static double friendRejectRatio = 0.0 ;
151
144
public static double groupModeratorProb = 0.0 ;
152
145
public static double limitProCorrelated = 0.0 ;
153
146
public static double missingRatio = 0.0 ;
154
- public static double missingStatusRatio = 0.0 ;
155
147
public static double probAnotherBrowser = 0.0 ;
156
148
public static double probDiffIPinTravelSeason = 0.0 ; // in travel season
157
149
public static double probDiffIPnotTravelSeason = 0.0 ; // not in travel season
@@ -160,7 +152,6 @@ public String toString() {
160
152
public static double probPopularPlaces = 0.0 ; //probability of taking a photo at popular place
161
153
public static double probRandomPerLevel = 0.0 ;
162
154
public static double probSecondLang = 0.0 ;
163
- public static double probSingleStatus = 0.0 ; // Status "Single" has more probability than others'
164
155
public static double probTopUniv = 0.0 ; // 90% users go to top university
165
156
public static double probUnCorrelatedCompany = 0.0 ;
166
157
public static double probUnCorrelatedOrganization = 0.0 ;
@@ -194,7 +185,6 @@ public String toString() {
194
185
public static int minCommentSize = 0 ;
195
186
public static int minLargeCommentSize = 0 ;
196
187
public static int minLargePostSize = 0 ;
197
- public static int minNumFriends = 0 ;
198
188
public static int minNumTagsPerUser = 0 ;
199
189
public static int minTextSize = 0 ;
200
190
@@ -232,10 +222,7 @@ public static void readConf(Configuration conf) {
232
222
}
233
223
}
234
224
235
- minNumFriends = Integer .parseInt (conf .get (ParameterNames .MIN_FRIENDS .toString ()));
236
225
maxNumFriends = Integer .parseInt (conf .get (ParameterNames .MAX_FRIENDS .toString ()));
237
- friendRejectRatio = Double .parseDouble (conf .get (ParameterNames .FRIEND_REJECT .toString ()));
238
- friendReApproveRatio = Double .parseDouble (conf .get (ParameterNames .FRIEND_REACCEPT .toString ()));
239
226
minNumTagsPerUser = Integer .parseInt (conf .get (ParameterNames .USER_MIN_TAGS .toString ()));
240
227
maxNumTagsPerUser = Integer .parseInt (conf .get (ParameterNames .USER_MAX_TAGS .toString ()));
241
228
maxNumPostPerMonth = Integer .parseInt (conf .get (ParameterNames .USER_MAX_POST_MONTH .toString ()));
@@ -266,8 +253,6 @@ public static void readConf(Configuration conf) {
266
253
groupModeratorProb = Double .parseDouble (conf .get (ParameterNames .GROUP_MODERATOR_RATIO .toString ()));
267
254
maxNumGroupPostPerMonth = Integer .parseInt (conf .get (ParameterNames .GROUP_MAX_POST_MONTH .toString ()));
268
255
missingRatio = Double .parseDouble (conf .get (ParameterNames .MISSING_RATIO .toString ()));
269
- missingStatusRatio = Double .parseDouble (conf .get (ParameterNames .STATUS_MISSING_RATIO .toString ()));
270
- probSingleStatus = Double .parseDouble (conf .get (ParameterNames .STATUS_SINGLE_RATIO .toString ()));
271
256
probDiffIPinTravelSeason = Double .parseDouble (conf .get (ParameterNames .DIFFERENT_IP_IN_TRAVEL_RATIO
272
257
.toString ()));
273
258
probDiffIPnotTravelSeason = Double .parseDouble (conf .get (ParameterNames .DIFFERENT_IP_NOT_TRAVEL_RATIO
@@ -295,6 +280,7 @@ public static void readConf(Configuration conf) {
295
280
flashmobTagDistExp = Double .parseDouble (conf .get (ParameterNames .FLASHMOB_TAG_DIST_EXP .toString ()));
296
281
updatePortion = Double .parseDouble (conf .get (ParameterNames .UPDATE_PORTION .toString ()));
297
282
blockSize = Integer .parseInt (conf .get (ParameterNames .BLOCK_SIZE .toString ()));
283
+
298
284
} catch (Exception e ) {
299
285
System .out .println ("Error reading scale factors" );
300
286
System .err .println (e .getMessage ());
0 commit comments