Skip to content

Commit 2bc2194

Browse files
committed
Rename variables
1 parent 11397c2 commit 2bc2194

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/scala/ldbc/snb/datagen/factors/FactorGenerationStage.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ object FactorGenerationStage extends DatagenStage with Logging {
375375
val allKnows = undirectedKnows(knows).cache()
376376
val minSampleSize = 100.0
377377

378-
val chinesePeopleSample = (relations: DataFrame) => {
378+
val peopleInChinaSample = (relations: DataFrame) => {
379379
val peopleInChina = person
380380
.as("Person")
381381
.join(cities.as("City"), $"City.id" === $"Person.LocationCityId")
@@ -402,7 +402,7 @@ object FactorGenerationStage extends DatagenStage with Logging {
402402
allKnows,
403403
n = 4,
404404
joinKeys = ("Person2Id", "Person1Id"),
405-
sample = Some(chinesePeopleSample)
405+
sample = Some(peopleInChinaSample)
406406
)
407407
.join(person.as("Person1"), $"Person1.id" === $"Person1Id")
408408
.join(person.as("Person2"), $"Person2.id" === $"Person1Id")
@@ -423,7 +423,7 @@ object FactorGenerationStage extends DatagenStage with Logging {
423423
val allKnows = undirectedKnows(knows).cache()
424424
val minSampleSize = 100.0
425425

426-
val chinesePeopleSample = (relations: DataFrame) => {
426+
val peopleInChinaSample = (relations: DataFrame) => {
427427
val peopleInChina = person
428428
.as("Person")
429429
.join(cities.as("City"), $"City.id" === $"Person.LocationCityId")
@@ -450,7 +450,7 @@ object FactorGenerationStage extends DatagenStage with Logging {
450450
allKnows,
451451
n = 2,
452452
joinKeys = ("Person2Id", "Person1Id"),
453-
sample = Some(chinesePeopleSample)
453+
sample = Some(peopleInChinaSample)
454454
)
455455
.join(person.as("Person1"), $"Person1.id" === $"Person1Id")
456456
.join(person.as("Person2"), $"Person2.id" === $"Person1Id")

0 commit comments

Comments
 (0)