<commit_before>function Ais() {
    this._type = BarentswatchApiObjectTypes.AIS;
    this._norwegianTitle = "Ais";
    this._name = "";
    this._timeStamp = "";
    this._sog = "";
    this._closedDescription = "";
    this._shipType = "";
    this._eta = "";
    this._mmsi = "";
    this._timeStamp = "";
    this._destination = "";
    this._position = "";
}

Ais.prototype.parseObject = function (aisObject) {
    this._name = aisObject.get("Name");
    this._shipType = aisObject.get("ShipType");
    this._eta = aisObject.get("Eta");
    this._mmsi = aisObject.get("Mmsi");
    this._destination = aisObject.get("Destination");
    this._timeStamp = aisObject.get("TimeStamp");
    this._sog = aisObject.get("Sog");
    this._cog = aisObject.get("Cog");
    this._country = aisObject.get("Country");
    this._position = ol.extent.getCenter(aisObject.getGeometry().getExtent());
    this._internalPosition = [aisObject.get("Lon"), aisObject.get("Lat")];
};

Ais.prototype.getShipTypeString = function () {
    return AisShipTypeNumberTranslator.translateNumber(this._shipType);
};

Ais.prototype.getFormattedDate = function () { // TODO: Consider adding HH:MM
    return FiskInfoUtility.formatDateAndTime(new Date(this._timeStamp));
};

Ais.prototype.getCoordinates = function () {
    return ol.coordinate.toStringHDMS(this._internalPosition, 1);
};

Ais.prototype.fetchShipType = function (shipType) { //TODO: Is there any directory with the different ship types ? Once we know. ADD HERE!
    return shipType === 30 ? "Fiskefartøy" : "Fritidsbåt";
};<commit_msg>Updated AIS to have callsigns aswell<commit_after>function Ais() {
    this._type = BarentswatchApiObjectTypes.AIS;
    this._norwegianTitle = "Ais";
    this._name = "";
    this._timeStamp = "";
    this._sog = "";
    this._closedDescription = "";
    this._shipType = "";
    this._eta = "";
    this._callsign = "";
    this._mmsi = "";
    this._timeStamp = "";
    this._destination = "";
    this._position = "";
}

Ais.prototype.parseObject = function (aisObject) {
    this._name = aisObject.get("Name");
    this._shipType = aisObject.get("ShipType");
    this._eta = aisObject.get("Eta");
    this._callsign = aisObject.get("Callsign");
    this._mmsi = aisObject.get("Mmsi");
    this._destination = aisObject.get("Destination");
    this._timeStamp = aisObject.get("TimeStamp");
    this._sog = aisObject.get("Sog");
    this._cog = aisObject.get("Cog");
    this._country = aisObject.get("Country");
    this._position = ol.extent.getCenter(aisObject.getGeometry().getExtent());
    this._internalPosition = [aisObject.get("Lon"), aisObject.get("Lat")];
};

Ais.prototype.getShipTypeString = function () {
    return AisShipTypeNumberTranslator.translateNumber(this._shipType);
};

Ais.prototype.getFormattedDate = function () { // TODO: Consider adding HH:MM
    return FiskInfoUtility.formatDate(new Date(this._timeStamp));
};

Ais.prototype.getCoordinates = function () {
    return ol.coordinate.toStringHDMS(this._internalPosition, 1);
};

Ais.prototype.fetchShipType = function (shipType) { //TODO: Is there any directory with the different ship types ? Once we know. ADD HERE!
    return shipType === 30 ? "Fiskefartøy" : "Fritidsbåt";
};
{'fraction_non_alphanumeric': 0.15629835964097802, 'fraction_numerical': 0.0018570102135561746, 'mean_word_length': 3.964669738863287, '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': '6743129', 'n_tokens_mistral': 1076, 'n_tokens_neox': 1071, 'n_words': 174}