Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insert missing trailing commas #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Insert missing trailing commas #19

wants to merge 1 commit into from

Conversation

olafurpg
Copy link
Owner

No description provided.

@@ -63,7 +63,7 @@ private[prediction] trait StatsMetricHelper[EI, Q, P, A] {
evalDataSet.map {
case (_, qpaRDD) =>
qpaRDD.map { case (q, p, a) => calculate(q, p, a) }
}
},
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just weird 😕

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -52,7 +52,7 @@ object BinaryVectorizer {
.filter(e => properties.contains(e._1))
.distinct
.collect
.zipWithIndex: _*
.zipWithIndex: _*,
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is not necessary, since there won't be more args

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, when using the vargargs-expansion it doesn't make sense. Good find.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the error case, when you've accidentally added or uncommented an additional arg, the error message with the comma might be slightly better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants