<commit_before>/* Node.js
KC3改 Node Object

Represents a single battle on a node
Used by SortieManager
*/
(function(){
	"use strict";
	
	window.KC3Node = function(sortie_id, api_no, utcTime, world, map, raw){
		// will be 0 if sortie has not been saved to DB (yet)
		this.sortie = sortie_id || 0;
		this.id = api_no || 0;
		// node data supposed to be available only if created with time stamp
		this.stime = utcTime;
		this.type = "";
		this.isPvP = false;
		this.letter = KC3Meta.nodeLetter(world || KC3SortieManager.map_world,
			map || KC3SortieManager.map_num, this.id);
		this.nodeData = raw || {};
	};

	function isNightToDayNode(battleData) {
		return !!battleData.api_day_flag;
	}
	
	// set true to test HP, rank and MVP predicting easier via SRoom Maps History
	KC3Node.debugPrediction = function() { return false; };
	
	// Update this list if more extra classes added
	KC3Node.knownNodeExtraClasses = function(){
		return [
			"nc_night_battle", "nc_air_battle",
			"nc_enemy_combined", "nc_air_raid"
		];
	};
	
	KC3Node.prototype.isInitialized = function(){
		return !!this.stime;<commit_msg>Fix night-to-day detection when no day phase<commit_after>/* Node.js
KC3改 Node Object

Represents a single battle on a node
Used by SortieManager
*/
(function(){
	"use strict";
	
	window.KC3Node = function(sortie_id, api_no, utcTime, world, map, raw){
		// will be 0 if sortie has not been saved to DB (yet)
		this.sortie = sortie_id || 0;
		this.id = api_no || 0;
		// node data supposed to be available only if created with time stamp
		this.stime = utcTime;
		this.type = "";
		this.isPvP = false;
		this.letter = KC3Meta.nodeLetter(world || KC3SortieManager.map_world,
			map || KC3SortieManager.map_num, this.id);
		this.nodeData = raw || {};
	};

	function isNightToDayNode(battleData) {
		return typeof battleData.api_day_flag !== 'undefined';
	}
	
	// set true to test HP, rank and MVP predicting easier via SRoom Maps History
	KC3Node.debugPrediction = function() { return false; };
	
	// Update this list if more extra classes added
	KC3Node.knownNodeExtraClasses = function(){
		return [
			"nc_night_battle", "nc_air_battle",
			"nc_enemy_combined", "nc_air_raid"
		];
	};
	
	KC3Node.prototype.isInitialized = function(){
		return !!this.stime;
{'fraction_non_alphanumeric': 0.11548672566371682, 'fraction_numerical': 0.009734513274336283, 'mean_word_length': 3.9152173913043478, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5802905', 'n_tokens_mistral': 859, 'n_tokens_neox': 769, 'n_words': 225}