Skip to content

Commit 0febb84

Browse files
author
Arnau Prat
committed
Translated some comments. Others removed
1 parent b607b8e commit 0febb84

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

src/main/java/ldbc/snb/datagen/generator/PostGenerator.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ public long createPosts(RandomGeneratorFarm randomFarm, final Forum forum, final
102102
if (postInfo != null) {
103103

104104
String content = "";
105-
106-
// crear properties class para passar _TRANSLATE
107105
content = this.generator_.generateText(member.person(), postInfo.tags, prop);
108106

109107
int country = member.person().countryId();

src/main/java/ldbc/snb/datagen/generator/TweetGenerator.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,17 @@ protected void load() {
7171
@Override
7272
public String generateText(PersonSummary member, TreeSet<Integer> tags, Properties prop) {
7373
StringBuffer content = null;
74-
// determine the number of sentence
74+
// determine the number of sentences
7575
Double numsentences = Double.valueOf(lengthtweet.nextDouble(this.random));
7676
for (int i = 0; i < numsentences; ++i) {
7777
Double numwords = Double.valueOf(lengthsentence.nextDouble(this.random));
78-
// depenen de la distribució de number hashtags per sentence int numhashtags; _TRANSLATE
79-
//int numhashtags = funciondistribuciohashtags(numwords);
78+
// the number of hashtages depends on the number of words in the
79+
// sentence
8080
int numhashtags = (int) (numwords * 0.4);
8181
for (int j = 0; j < numhashtags; ++j) {
8282
content.append(" " + hashtag.nextDouble(this.random));
8383
}
84-
// depenen de la distribució de number sentiment words per sentence int numhashtags; _TRANSLATE
85-
//int numsentimentswords = funciondistribuciosentimentswords(numwords);
84+
// the number of sentiment words depends on the number of words in the sentence
8685
int numsentimentswords = (int) (numwords * 0.4);
8786
for (int q = 0; q < numhashtags; ++q) {
8887
content.append(" " + sentiment.nextDouble(this.random));
@@ -91,10 +90,7 @@ public String generateText(PersonSummary member, TreeSet<Integer> tags, Properti
9190
for (int j = 0; j < numwords; ++j) {
9291
content.append(" " + popularword.nextDouble(this.random));
9392
}
94-
9593
}
96-
//per cada frase mirar numero de paraules mirar numero de hashtags _TRANSLATE
97-
content.toString();
9894
return content.toString();
9995
}
10096

0 commit comments

Comments
 (0)