Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
condenser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
condenser
Commits
d973c2d1
Commit
d973c2d1
authored
8 years ago
by
Tim
Browse files
Options
Downloads
Patches
Plain Diff
increase dust threshold for net_rshares_adj, add comment
parent
ee962136
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/utils/StateFunctions.js
+3
-3
3 additions, 3 deletions
app/utils/StateFunctions.js
with
3 additions
and
3 deletions
app/utils/StateFunctions.js
+
3
−
3
View file @
d973c2d1
...
@@ -72,8 +72,8 @@ export function contentStats(content) {
...
@@ -72,8 +72,8 @@ export function contentStats(content) {
// For graying: sum up total rshares from voters with non-neg reputation.
// For graying: sum up total rshares from voters with non-neg reputation.
if
(
String
(
v
.
get
(
'
reputation
'
)).
substring
(
0
,
1
)
!==
'
-
'
)
{
if
(
String
(
v
.
get
(
'
reputation
'
)).
substring
(
0
,
1
)
!==
'
-
'
)
{
// And also ignore tiny downvotes
// And also ignore tiny downvotes
(9 digits or less)
if
(
!
(
rshares
.
substring
(
0
,
1
)
===
'
-
'
&&
rshares
.
length
<
1
0
))
{
if
(
!
(
rshares
.
substring
(
0
,
1
)
===
'
-
'
&&
rshares
.
length
<
1
1
))
{
net_rshares_adj
=
net_rshares_adj
.
add
(
rshares
)
net_rshares_adj
=
net_rshares_adj
.
add
(
rshares
)
}
}
}
}
...
@@ -83,7 +83,7 @@ export function contentStats(content) {
...
@@ -83,7 +83,7 @@ export function contentStats(content) {
// creates a cheap log10, stake-based flag weight. 1 = approx $400 of downvoting stake; 2 = $4,000; etc
// creates a cheap log10, stake-based flag weight. 1 = approx $400 of downvoting stake; 2 = $4,000; etc
const
flagWeight
=
Math
.
max
(
String
(
neg_rshares
.
div
(
2
)).
length
-
11
,
0
)
const
flagWeight
=
Math
.
max
(
String
(
neg_rshares
.
div
(
2
)).
length
-
11
,
0
)
// post must have non-trivial negative rshares to be grayed out.
// post must have non-trivial negative rshares to be grayed out.
(more than 10 digits)
const
grayThreshold
=
-
9999999999
const
grayThreshold
=
-
9999999999
const
net_rshares
=
Long
.
fromString
(
String
(
content
.
get
(
'
net_rshares
'
)))
const
net_rshares
=
Long
.
fromString
(
String
(
content
.
get
(
'
net_rshares
'
)))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment