Skip to content

Conversation

@Hackinet
Copy link

@Hackinet Hackinet commented Apr 2, 2023

The old text score was being decided on various factors, I have simplified this process. We start with an initial score of zero. If the text contains cat and pic, we would boost it.

Future Improvments:
Move the magic number 3.14 into a constant.

@CLAassistant
Copy link

CLAassistant commented Apr 2, 2023

CLA assistant check
All committers have signed the CLA.

Comment on lines +130 to +132
if(tweetText.contains("cat") && tweetText.contains("pic")){
score = Double.MAX_VALUE/3.14;
}

Choose a reason for hiding this comment

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

Truly genius 🙌🏻

Copy link
Author

Choose a reason for hiding this comment

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

Thanks! 😂

@gustawdaniel
Copy link

@Hackinet I love this change.

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.

4 participants