bigdata-blog-2021-LahaLuhem

bigdata-blog-2021-LahaLuhem created by GitHub Classroom

This project is maintained by rubigdata

def init_dictionary() : collection.mutable.Map[String, (Regex, Int)] = {
    return collection.mutable.Map(
                                        "cs:go" -> ("(?i)cs:go|Counter Strike|csgo|c\\.s\\.g\\.o".r, 0),
                                        "halo" -> ("(?i)\\sHalo".r, 0),
                                        "doom" -> ("(?i)\\sDoom".r, 0),
                                        "mario" -> ("(?i)\\sMario".r, 0),
                                        "pop" -> ("(?i)Prince of Persia|P\\.o\\.P".r, 0),
                                        "mortal_kombat" -> ("(?i)Mortal Kombat|m\\.k".r, 0),
                                        "smash" -> ("(?i)Super Smash Bros|Super Smash Bros\\.|SSB".r, 0),
                                        "minecraft" -> ("(?i)Minecraft".r, 0),
                                        "dayz" -> ("(?i)\\sDayZ".r, 0),
                                        "fortnite" -> ("(?i)Fortnite".r, 0),
                                        "pubg" -> ("(?i)\\sPUBG|PlayerUnknown's Battlegrounds|PlayerUnknowns Battlegrounds|p\\.u\\.b\\.g".r, 0),

                                        "w.r.o.e.f" -> ("(?i)What Remains of Edith Finch|w\\.r\\.o\\.e\\.f|wroef".r, 0),
                                        "gone_home" -> ("(?i)Gone Home".r, 0),
                                        "s_and_w" -> ("(?i)Spider and Web".r, 0),
                                        "zork" -> ("(?i)\\sZork".r, 0),
                                        "b.o.t.d" -> ("(?i)Book of the Dead|B\\.o\\.t\\.D".r, 0),
                                        "mirrors_edge" -> ("(?i)Mirror's Edge|Mirrors Edge".r, 0),

                                        "lol" -> ("(?i)League of Legends|L\\.o\\.L".r, 0),
                                        "runescape" -> ("(?i)Runescape".r, 0),
                                        "m&b" -> ("(?i)Mount and Blade|Mount & Blade|m&b|m & b".r, 0),
                                        "gta" -> ("(?i)GTA|Grand Theft Auto|G\\.T\\.A".r, 0),
                                        "wasteland" -> ("(?i)Wasteland".r, 0),
                                        "star_ren" -> ("(?i)Star Renegades".r, 0),
                                        "final_fant" -> ("(?i)Final Fantasy|ff|f\\.f".r, 0),
                                        "king_hearts" -> ("(?i)Kingdom Hearts".r, 0),

                                        "sims" -> ("(?i)Sims".r, 0),
                                        "animal_cross" -> ("(?i)Animal Crossing".r, 0),
                                        "flight_sim" -> ("(?i)Microsoft Flight Simulator|MSFS|FSX|m\\.s\\.f\\.s".r, 0),
                                        "trackmania" -> ("(?i)Trackmania".r, 0),
                                        "farm_sim" -> ("(?i)Farming Simulator".r, 0),
                                        "rim_world" -> ("(?i)RimWorld".r, 0),

                                        "a.o.e" -> ("(?i)Age of Empires|AOE|a\\.o\\.e".r, 0),
                                        "star_craft" -> ("(?i)StarCraft".r, 0),
                                        "civ" -> ("(?i)Civilization|Civ|C(I+)V".r, 0),
                                        "total_war" -> ("(?i)Total War".r, 0),
                                        "xcom" -> ("(?i)XCom".r, 0),
                                        "dota" -> ("(?i)DotA|Defense of the Ancients|D\\.o\\.t\\.A".r, 0),
                                        "h.o.t.s" -> ("(?i)Heroes of the Storm".r, 0),

                                        "forza" -> ("(?i)Forza".r, 0),
                                        "nfs" -> ("(?i)NFS|Need for Speed|n\\.f\\.s".r, 0),
                                        "pro_skate" -> ("(?i)Tony Hawk Pro Skater|THPS|t\\.h\\.p\\.s".r, 0),
                                        "fifa" -> ("(?i)FIFA \\d+|F\\.I\\.F\\.A d+".r, 0),
                                        "ea_s_ufc" -> ("(?i)EAS UFC|EASports UFC".r, 0),
                                        "fight_night" -> ("(?i)Fight Night".r, 0)
                                  )
  }