A B C D E F G H I K L M N O P Q R S T U V W

R

reconnectToTwitter() - Static method in class uk.ac.cam.juliet.twitter.main.Program
 
recoverFromCrash() - Static method in class uk.ac.cam.juliet.twitter.main.Program
flushes all the analysis data in the database and redoes all the analysis
refilterTweets(String) - Method in class uk.ac.cam.juliet.twitter.database.Database
 
refilterTweets(String) - Method in interface uk.ac.cam.juliet.twitter.database.IDatabase
goes over every tweet in the raw_tweets table and if any tweet contains that regular expression, it is marked as nsfw in the analysed_tweets table.
for example: if the input is "belguim", it will match every tweet in raw_tweet to ".*\bbelgium\b.*" and if it matches, it gets marked as nsfw
refilterTweets(String) - Method in class uk.ac.cam.juliet.twitter.testing.MockDatabase
 
refreshDatabase(String[]) - Static method in class uk.ac.cam.juliet.twitter.main.Program
drops all client specific data in the database and starts again using the input from the user, the input from the user contains the new search string and the limit number of tweets to fetch
regex - Static variable in class uk.ac.cam.juliet.twitter.database.Database.BadWords_table
 
reloadBadwords() - Method in class uk.ac.cam.juliet.twitter.analysis.ProfanityFilter
reloads the bad words from database into the memory cache, since it is expensive to load badwords from the database every time isOffensive(String) is called, we delegate to the caller the job of reloading the badwords from the database
Note: this method is thread safe
removeAnalysis(Tweet) - Method in class uk.ac.cam.juliet.twitter.database.Database
 
removeAnalysis(Tweet) - Method in interface uk.ac.cam.juliet.twitter.database.IDatabase
deletes from the analysed_tweets table the analysis of the argument tweet
removeAnalysis(Tweet) - Method in class uk.ac.cam.juliet.twitter.testing.MockDatabase
 
removeInactiveUsers() - Method in class uk.ac.cam.juliet.twitter.database.Database
 
removeInactiveUsers() - Method in interface uk.ac.cam.juliet.twitter.database.IDatabase
removes from the users table every user who doesn't have a refernece in the raw_tweets table
removeInactiveUsers() - Method in class uk.ac.cam.juliet.twitter.testing.MockDatabase
 
removeInsignificantWords() - Method in class uk.ac.cam.juliet.twitter.database.Database
 
removeInsignificantWords() - Method in interface uk.ac.cam.juliet.twitter.database.IDatabase
after cleanup, remove all word_counts where count <= 1
removeInsignificantWords() - Method in class uk.ac.cam.juliet.twitter.testing.MockDatabase
 
removeNumbers(List<String>) - Method in class uk.ac.cam.juliet.twitter.analysis.FrequencyCounter
removes any element in the list words that is a number, either an integer like 44 or a real number like 3.14 or -2.1e4
removeOldTweets(Date) - Method in class uk.ac.cam.juliet.twitter.main.OldTweetsHandler
removes from the database all tweets that are older than the argument date and all their side effects (word frequencies, sentiment analysis)
removeRawTweets(Date) - Method in class uk.ac.cam.juliet.twitter.database.Database
 
removeRawTweets(Date) - Method in interface uk.ac.cam.juliet.twitter.database.IDatabase
deletes all raw_tweets that are older then the provided time
removeRawTweets(Date) - Method in class uk.ac.cam.juliet.twitter.testing.MockDatabase
 
removeStopWords(String) - Method in class uk.ac.cam.juliet.twitter.analysis.BayesUtil
stopwords are words that are usually ignored by search engines because they show up very frequently in English.
removeStopWords(List<String>) - Method in class uk.ac.cam.juliet.twitter.analysis.FrequencyCounter
removes any stop words from the input strings
replaceEmoticons(String) - Method in class uk.ac.cam.juliet.twitter.analysis.BayesUtil
replaces happy and sad emoticons with two keywords, _SMILE and _FROWN
replaceLaughs(String) - Static method in class uk.ac.cam.juliet.twitter.analysis.BayesUtil
replaces laughs (like "hahaha" or "ahaahaha") with single keyword _LAUGH
replacement - Static variable in class uk.ac.cam.juliet.twitter.database.Database.BadWords_table
 
replaceRepeatedLetters(String) - Static method in class uk.ac.cam.juliet.twitter.analysis.BayesUtil
repeated letters cause a problem to the Bayes algorithm, this function takes a word like "huuuuuungrrrry" and reduces every string of repeated letters to 2 letters only, the result in this case will be "huungrry", this reduces the number of different ways the word "hungry" can be written
replaceURLs(String) - Static method in class uk.ac.cam.juliet.twitter.analysis.BayesUtil
replaces every url it finds with a keyword URL
replaceUsernames(String) - Method in class uk.ac.cam.juliet.twitter.analysis.BayesUtil
replaces any mentioned username in a tweet (e.g.
retweet_count - Static variable in class uk.ac.cam.juliet.twitter.database.Database.RawTweets_table
 
retweetCount - Variable in class uk.ac.cam.juliet.twitter.model.Tweet
the number of times this tweet has been retweeted
run() - Method in class uk.ac.cam.juliet.twitter.main.Program.UserThread
 

A B C D E F G H I K L M N O P Q R S T U V W