static void Main(string[] args) { var ns = new NubSimulator(); ns.SpawnMany(); Console.ReadLine(); //MigrateDatabase(); //FixDuplicatedAccounts(); //BcryptPasswords(); //var db = new ZkDataContext(true); //var test = db.Accounts.OrderByDescending(x => x.EffectiveElo).WithTranslations().Take(5).ToList(); //MigrateDatabase(); //var test = GlobalConst.GetContentService().DownloadFile("Zero-K v1.1.0"); //var db = new ZkDataContext(); //var post = db.ForumPosts.First(x => x.ForumPostID == 113893); //var db = new ZkDataContext(false); //db.Database.CreateIfNotExists(); //PlanetwarsFixer.StartGalaxy(24,3919,3925); //AddClanLeader(); return; //TestPwMatch(); //FixStuff(); //var guid = Guid.NewGuid().ToString(); //var pp = new PayPalInterface(); //pp.ImportPaypalHistory(Directory.GetCurrentDirectory()); //Test1v1Elo(); //GenerateTechs(); //FixDemoEngineVersion(); //ImportSpringiePlayers(); //RecalculateBattleElo(); //FixMaps(); //PickHomworldOwners(); //PlanetwarsFixer.PurgeGalaxy(24, false, true); //PlanetwarsFixer.RandomizeMaps(24); //SetPlanetTeamSizes(); //RandomizePlanetOwners(24); //GenerateStructures(24); PlanetwarsFixer.GenerateArtefacts(24, new int[] { 3940, 3949, 3954, 3929, 3956 }); //SwapPlanetOwners(3948, 3955); //SwapPlanetOwners(3973, 3932); //PlanetwarsFixer.AddWormholes(); //PlanetwarsFixer.RemoveTechStructures(true, true); //StartGalaxy(24); //TestPrediction(); //FixMissionScripts(); //AnalyzeModuleUsagePatterns(); //AnalyzeCommUsagePatterns(); //UpdateMissionProgression(12); //PrintNightwatchSubscriptions("zkadmin"); //RecountForumVotes(); //GetForumKarmaLadder(); //GetForumKarmaVotes(); //GetForumVotesByVoter(161294, 5340); //DeleteUserVotes(189201, null); //neon //GetClanStackWinRate(465, 2000); //Mean //GetForumVotesByUserVoterAgnostic(161294); //GetAverageElo(); }
static void Main(string[] args) { RenameOldAccounts(); return; var ns = new NubSimulator(); ns.SpawnMany(); Console.ReadLine(); /*using (var archive = ArchiveFactory.Open(target)) { long done = 0; var totalSize = archive.Entries.Count() + 1; archive.EntryExtractionEnd += (sender, args) => { done++; IndividualProgress = 90 + (10 * done / totalSize); }; archive.WriteToDirectory(targetDir, ExtractOptions.ExtractFullPath | ExtractOptions.Overwrite); }*/ //WikiPortingMW.DoStuff(); return; //FixStuff(); //MigrateDatabase(); //return; //DeleteOldUsers(); //return; /* //ImportWiki(); var db = new ZkDataContext(); var wikis = db.ForumCategories.First(x => x.IsWiki).ForumThreads.Select(x => new { key=x.WikiKey, text= x.ForumPosts.First().Text}).ToList(); var parser = new ForumWikiParser(); for (int i = 0; i < 100; i++) { var sw = Stopwatch.StartNew(); foreach (var w in wikis) { //Console.WriteLine(w.key); parser.ProcessToHtml(w.text, null); } sw.Stop(); Console.WriteLine("total: {0}ms, item: {1:D}ms", sw.ElapsedMilliseconds, sw.ElapsedMilliseconds/wikis.Count); }*/ //GetGameStats(new DateTime(2014,12,1)); //Thread.Sleep(10000); //MigrateDatabase(); //FixDuplicatedAccounts(); //BcryptPasswords(); //var db = new ZkDataContext(true); //var test = db.Accounts.OrderByDescending(x => x.EffectiveElo).WithTranslations().Take(5).ToList(); //MigrateDatabase(); //var test = GlobalConst.GetContentService().DownloadFile("Zero-K v1.1.0"); //var db = new ZkDataContext(); //var post = db.ForumPosts.First(x => x.ForumPostID == 113893); //var db = new ZkDataContext(false); //db.Database.CreateIfNotExists(); //PlanetwarsFixer.StartGalaxy(24,3919,3925); //AddClanLeader(); //return; //TestPwMatch(); //var guid = Guid.NewGuid().ToString(); //var pp = new PayPalInterface(); //pp.ImportPaypalHistory(Directory.GetCurrentDirectory()); //Test1v1Elo(); //GenerateTechs(); //FixDemoEngineVersion(); //ImportSpringiePlayers(); //RecalculateBattleElo(); //FixMaps(); //PickHomworldOwners(); //PlanetwarsFixer.PurgeGalaxy(24, false, true); //PlanetwarsFixer.RandomizeMaps(24); //SetPlanetTeamSizes(); //RandomizePlanetOwners(24); //GenerateStructures(24); //PlanetwarsFixer.GenerateArtefacts(24, new int[] { 3940, 3949, 3954, 3929, 3956 }); //SwapPlanetOwners(3948, 3955); //SwapPlanetOwners(3973, 3932); //PlanetwarsFixer.AddWormholes(); //PlanetwarsFixer.RemoveTechStructures(true, true); //StartGalaxy(24); //TestPrediction(); //FixMissionScripts(); //AnalyzeModuleUsagePatterns(); //AnalyzeCommUsagePatterns(); //UpdateMissionProgression(12); //PrintNightwatchSubscriptions("zkadmin"); //RecountForumVotes(); //GetForumKarmaLadder(); //GetForumKarmaVotes(); //GetForumVotesByVoter(161294, 5340); //DeleteUserVotes(189201, null); //neon //GetClanStackWinRate(465, 2000); //Mean //GetForumVotesByUserVoterAgnostic(161294); //GetAverageElo(); //DuplicateFinder.GetDuplicates(); }