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

Limit penalization on blocks / mutes for a cooldown of 180 days. Fix #658 #660

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,30 @@ object InteractionGraphNegativeJob extends ScioBeamJob[InteractionGraphNegativeO
val endTs = opts.interval.getEndMillis

// read input datasets

// We only count blocks in the past 180 days to make sure we don't fall
// into any long-term cancellation effects in a tweeter.
// As an example, some accounts may have higher count of blocks because
// what they said is controversial in one period of time but it might be
// not in other (for example, @RWMaloneMD or others)
Comment on lines +56 to +57

Choose a reason for hiding this comment

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

good point

val blocks: SCollection[InteractionGraphRawInput] =
GraphUtil.getFlockFeatures(
readSnapshot(FlockBlocksEdgesScalaDataset, sc),
FeatureName.NumBlocks,
endTs)
.filter(_.age < 180)

// We only count mutes in the past 180 days to make sure we don't fall
// into any long-term cancellation effects in a tweeter.
// As an example, some accounts may have higher count of blocks because
// what they said is controversial in one period of time but it might be
// not in other (for example, @RWMaloneMD or others)
val mutes: SCollection[InteractionGraphRawInput] =
GraphUtil.getFlockFeatures(
readSnapshot(FlockMutesEdgesScalaDataset, sc),
FeatureName.NumMutes,
endTs)
.filter(_.age < 180)

val abuseReports: SCollection[InteractionGraphRawInput] =
GraphUtil.getFlockFeatures(
Expand Down