<commit_before>(function(){
	"use strict";
	window.ExpeditionHelper = {
		analyzeFleet: function(CurrentFleet) {
			var u = ExpeditionHelper.utils;

			// get a list of all ships currently in this fleet
			var allShips = [];
			$.each(CurrentFleet.ships, function(index, rosterId){
				if (rosterId > -1) {
					var CurrentShip = KC3ShipManager.get( rosterId );
					if (CurrentShip.masterId > 0) {
						allShips.push( CurrentShip );
						
					}
				}
			});

			if (allShips.length > 0) {
				var PS = window.PS;
				var KE = PS["KanColle.Expedition"];
				var KER = PS["KanColle.Expedition.Requirement"];
				var ST = PS["KanColle.Generated.SType"];

				// convert ships to required objects
				// required fields:
				// ammo, morale (not used for now)
				// stype: string
				// level: int
				// drumCount: int
				var allShipsForLib = allShips.map( function(CurrentShip, ind) {
					var shipInst = CurrentShip;
					var shipModel = CurrentShip.master();
					var stypeId = shipModel.api_stype;
					var stype = ST.showSType( ST.fromInt( stypeId ));
					var level = shipInst.level;
					var drumCount = 0;
					$.each(shipInst.items, function(ind,gear_id) {
						var thisItem = KC3GearManager.get(gear_id);
						if (thisItem) {
							var model = KC3Master.slotitem(thisItem.masterId);
							if (model.api_id == 75)
								++ drumCount;
						}
					});
					
					return {
						ammo: 0,
						morale: 0, 
						stype: stype, 
						level: level, 
						drumCount: drumCount
					};
				});
				
				var fleet = KER.fromRawFleet( allShipsForLib );
				var availableExpeditions = KE.getAvailableExpeditions( fleet );
				
				// var demoResult = 
				//	  KER.explainRequirements( KER.unsatisfiedRequirements(38)(fleet) );
				
				// alert( JSON.stringify( demoResult ) );
				
				var warnings = [];<commit_msg>legacy theme: count drums<commit_after>(function(){
	"use strict";
	window.ExpeditionHelper = {
		analyzeFleet: function(CurrentFleet) {
			var u = ExpeditionHelper.utils;

			// get a list of all ships currently in this fleet
			var allShips = [];
			$.each(CurrentFleet.ships, function(index, rosterId){
				if (rosterId > -1) {
					var CurrentShip = KC3ShipManager.get( rosterId );
					if (CurrentShip.masterId > 0) {
						allShips.push( CurrentShip );
						
					}
				}
			});

			if (allShips.length > 0) {
				var PS = window.PS;
				var KE = PS["KanColle.Expedition"];
				var KER = PS["KanColle.Expedition.Requirement"];
				var ST = PS["KanColle.Generated.SType"];

				// convert ships to required objects
				// required fields:
				// ammo, morale (not used for now)
				// stype: string
				// level: int
				// drumCount: int
				var allShipsForLib = allShips.map( function(CurrentShip, ind) {
					var shipInst = CurrentShip;
					var shipModel = CurrentShip.master();
					var stypeId = shipModel.api_stype;
					var stype = ST.showSType( ST.fromInt( stypeId ));
					var level = shipInst.level;
					var drumCount = CurrentShip.countDrums();
					return {
						ammo: 0,
						morale: 0, 
						stype: stype, 
						level: level, 
						drumCount: drumCount
					};
				});
				
				var fleet = KER.fromRawFleet( allShipsForLib );
				var availableExpeditions = KE.getAvailableExpeditions( fleet );
				
				// var demoResult = 
				//	  KER.explainRequirements( KER.unsatisfiedRequirements(38)(fleet) );
				
				// alert( JSON.stringify( demoResult ) );
				
				var warnings = [];
{'fraction_non_alphanumeric': 0.12205068453247889, 'fraction_numerical': 0.006117098747451209, 'mean_word_length': 2.4651866801210898, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '809299', 'n_tokens_mistral': 1566, 'n_tokens_neox': 1149, 'n_words': 263}