<commit_before>import * as logger from "./logger";
export function getAssetPath(url: string | undefined): string | undefined {
    return url;
}

export const STD_CSS_SPRITE_RELPATH = "images/icons.png";

export const CURSOR_DIGITIZE_POINT = require("../../stdassets/cursors/digitizePoint.cur");
export const CURSOR_DIGITIZE_LINE = require("../../stdassets/cursors/digitizeLine.cur");
export const CURSOR_DIGITIZE_LINESTRING = require("../../stdassets/cursors/digitizeLineString.cur");
export const CURSOR_DIGITIZE_RECT = require("../../stdassets/cursors/digitizeRectangle.cur");
export const CURSOR_DIGITIZE_POLYGON = require("../../stdassets/cursors/digitizePolygon.cur");
export const CURSOR_DIGITIZE_CIRCLE = require("../../stdassets/cursors/digitizeCircle.cur");
export const CURSOR_GRABBING = require("../../stdassets/cursors/grabbing.cur");
export const CURSOR_GRAB = require("../../stdassets/cursors/grab.cur");
export const CURSOR_ZOOM_IN = require("../../stdassets/cursors/zoomin.cur");

export const IMG_SLIDER_SCALE = require("../../stdassets/images/res/sliderscale.png");
export const GIF_SPINNER = require("../../stdassets/images/res/spinner.gif");
export const IMG_SLIDER = require("../../stdassets/images/res/slider.png");

export const IMG_PBMG = require("../../stdassets/images/icons/PoweredBy_en.png");

export const ICON_ABOUT = require("../../stdassets/images/icons/about.png");
export const ICON_APPLICATION_BROWSER = require("../../stdassets/images/icons/application-browser.png");
export const ICON_BACK = require("../../stdassets/images/icons/back.png");
export const ICON_BUFFER = require("../../stdassets/images/icons/buffer.png");
export const ICON_CONTROL_180 = require("../../stdassets/images/icons/control-180.png");
export const ICON_CONTROL_STOP_180 = require("../../stdassets/images/icons/control-stop-180.png");
export const ICON_CONTROL_STOP = require("../../stdassets/images/icons/control-stop.png");
export const ICON_CONTROL = require("../../stdassets/images/icons/control.png");
export const ICON_COORDINATE_TRACKER = require("../../stdassets/images/icons/coordinate-tracker.png");
export const ICON_EDIT_COPY = require("../../stdassets/images/icons/edit-copy.png");
export const ICON_EDIT_CUT = require("../../stdassets/images/icons/edit-cut.png");
export const ICON_EDIT_DUPLICATE = require("../../stdassets/images/icons/edit-duplicate.png");
export const ICON_EDIT_PASTE = require("../../stdassets/images/icons/edit-paste.png");
export const ICON_EDIT_XML = require("../../stdassets/images/icons/edit-xml.png");
export const ICON_ERROR = require("../../stdassets/images/icons/icon_error.png");
export const ICON_FEATURE_INFO = require("../../stdassets/images/icons/feature-info.png");
export const ICON_FILE_PRINT = require("../../stdassets/images/icons/file-print.png");
export const ICON_FILE_SAVE = require("../../stdassets/images/icons/file-save.png");
export const ICON_FOLDER_HORIZONTAL_OPEN = require("../../stdassets/images/icons/folder-horizontal-open.png");
export const ICON_FOLDER_HORIZONTAL = require("../../stdassets/images/icons/folder-horizontal.png");
export const ICON_FORWARD = require("../../stdassets/images/icons/forward.png");
export const ICON_GEOLOCATION = require("../../stdassets/images/icons/geolocation.png");
export const ICON_HELP = require("../../stdassets/images/icons/help.png");
export const ICON_HOME = require("../../stdassets/images/icons/icon_home.png");
export const ICON_MENUARROW_DISABLED = require("../../stdassets/images/icons/icon_menuarrow_disabled.png");
export const ICON_MENUARROW = require("../../stdassets/images/icons/icon_menuarrow.png");
export const ICON_MENUARROWUP_DISABLED = require("../../stdassets/images/icons/icon_menuarrowup_disabled.png");
export const ICON_MENUARROWUP = require("../../stdassets/images/icons/icon_menuarrowup.png");
export const ICON_REFRESHMAP = require("../../stdassets/images/icons/icon_refreshmap.png");
export const ICON_SELECT = require("../../stdassets/images/icons/select.png");
export const ICON_ZOOMSELECT = require("../../stdassets/images/icons/icon_zoomselect.png");
export const ICON_NAVIGATOR = require("../../stdassets/images/icons/iconNavigator.png");
export const ICON_INFO = require("../../stdassets/images/icons/info.png");
export const ICON_INITIAL_CENTER = require("../../stdassets/images/icons/initial-center.png");
export const ICON_INVOKE_SCRIPT = require("../../stdassets/images/icons/invoke-script.png");
export const ICON_INVOKE_URL = require("../../stdassets/images/icons/invoke-url.png");
export const ICON_UNSELECT = require("../../stdassets/images/icons/lc_unselect.png");
export const ICON_LEGEND_DWF = require("../../stdassets/images/icons/legend-DWF.png");
export const ICON_LEGEND_LAYER = require("../../stdassets/images/icons/legend-layer.png");
export const ICON_LEGEND_MAP = require("../../stdassets/images/icons/legend-map.png");
export const ICON_LEGEND_RASTER = require("../../stdassets/images/icons/legend-raster.png");
export const ICON_LEGEND_THEME = require("../../stdassets/images/icons/legend-theme.png");
export const ICON_MAPTIP = require("../../stdassets/images/icons/maptip.png");
export const ICON_MEASURE = require("../../stdassets/images/icons/measure.png");
export const ICON_OPTIONS = require("../../stdassets/images/icons/options.png");
export const ICON_OUT_OF_RANGE = require("../../stdassets/images/icons/out-of-range.png");
export const ICON_OVERVIEW_MAP = require("../../stdassets/images/icons/overview-map.png");
export const ICON_PAN_EAST = require("../../stdassets/images/icons/pan-east.png");
export const ICON_PAN_NORTH = require("../../stdassets/images/icons/pan-north.png");
export const ICON_PAN_SOUTH = require("../../stdassets/images/icons/pan-south.png");
export const ICON_PAN_WEST = require("../../stdassets/images/icons/pan-west.png");
export const ICON_PAN = require("../../stdassets/images/icons/pan.png");
export const ICON_PREVIEW = require("../../stdassets/images/icons/preview.png");
export const ICON_PRINT = require("../../stdassets/images/icons/print.png");
export const ICON_PROPERTY = require("../../stdassets/images/icons/property.png");
export const ICON_QUERY = require("../../stdassets/images/icons/query.png");
export const ICON_REDLINE = require("../../stdassets/images/icons/redline.png");
export const ICON_SEARCH = require("../../stdassets/images/icons/search.png");
export const ICON_SELECT_CENTRE = require("../../stdassets/images/icons/select-centre.png");
export const ICON_SELECT_CLEAR = require("../../stdassets/images/icons/select-clear.png");
export const ICON_SELECT_FEATURES = require("../../stdassets/images/icons/select-features.png");
export const ICON_SELECT_POLYGON = require("../../stdassets/images/icons/select-polygon.png");
export const ICON_SELECT_RADIUS = require("../../stdassets/images/icons/select-radius.png");
export const ICON_SELECT_ZOOM = require("../../stdassets/images/icons/select-zoom.png");
export const ICON_THEME = require("../../stdassets/images/icons/theme.png");
export const ICON_TOGGLE_EXPAND = require("../../stdassets/images/icons/toggle-expand.png");
export const ICON_TOGGLE = require("../../stdassets/images/icons/toggle.png");
export const ICON_UI_MENU = require("../../stdassets/images/icons/ui-menu.png");
export const ICON_VIEW_BACK = require("../../stdassets/images/icons/view-back.png");
export const ICON_VIEW_FORWARD = require("../../stdassets/images/icons/view-forward.png");
export const ICON_VIEW_REFRESH = require("../../stdassets/images/icons/view-refresh.png");
export const ICON_WARNING = require("../../stdassets/images/icons/icon_warning.png");
export const ICON_ZOOM_DYNAMIC = require("../../stdassets/images/icons/zoom-dynamic.png");
export const ICON_ZOOM_FULL = require("../../stdassets/images/icons/zoom-full.png");
export const ICON_ZOOM_IN_FIXED = require("../../stdassets/images/icons/zoom-in-fixed.png");
export const ICON_ZOOM_IN = require("../../stdassets/images/icons/zoom-in.png");
export const ICON_ZOOM_OUT_FIXED = require("../../stdassets/images/icons/zoom-out-fixed.png");

export const SPRITE_CONTROL_180 = "control-180";
export const SPRITE_CONTROL = "control";
export const SPRITE_ICON_ZOOMSELECT = "icon_zoomselect";
export const SPRITE_LEGEND_LAYER = "legend-layer";
export const SPRITE_ICON_SELECT = "icon_select";
export const SPRITE_LC_UNSELECT = "lc_unselect";
export const SPRITE_LEGEND_THEME = "legend-theme";
export const SPRITE_LEGEND_RASTER = "legend-raster";
export const SPRITE_LEGEND_TOGGLE = "toggle";
export const SPRITE_LEGEND_TOGGLE_EXPAND = "toggle-expand";
export const SPRITE_FOLDER_HORIZONTAL = "folder-horizontal";
export const SPRITE_ICON_ERROR = "icon_error";
export const SPRITE_ICON_HOME = "icon_home";
export const SPRITE_BACK = "back";
export const SPRITE_FORWARD = "forward";
export const SPRITE_ICON_MENUARROWUP = "icon_menuarrowup";
export const SPRITE_ICON_MENUARROW = "icon_menuarrow";
export const SPRITE_SELECT = "select";
export const SPRITE_PAN = "pan";
export const SPRITE_ZOOM_IN = "zoom-in";
export const SPRITE_ZOOM_IN_FIXED = "zoom-in-fixed";
export const SPRITE_ZOOM_OUT_FIXED = "zoom-out-fixed";
export const SPRITE_ZOOM_FULL = "zoom-full";
export const SPRITE_MAPTIP = "maptip";
export const SPRITE_PAN_WEST = "pan-west";
export const SPRITE_PAN_EAST = "pan-east";
export const SPRITE_PAN_NORTH = "pan-north";
export const SPRITE_PAN_SOUTH = "pan-south";
export const SPRITE_ABOUT = "about";
export const SPRITE_HELP = "help";
export const SPRITE_MEASURE = "measure";
export const SPRITE_PRINT = "print";
export const SPRITE_OPTIONS = "options";
export const SPRITE_SELECT_RADIUS = "select-radius";
export const SPRITE_SELECT_POLYGON = "select-polygon";
export const SPRITE_INITIAL_CENTER = "initial-center";
export const SPRITE_SELECT_CLEAR = "select-clear";
export const SPRITE_ICON_REFRESHMAP = "icon_refreshmap";
export const SPRITE_VIEW_BACK = "view-back";
export const SPRITE_VIEW_FORWARD = "view-forward";
export const SPRITE_GEOLOCATION = "geolocation";
export const SPRITE_BUFFER = "buffer";
export const SPRITE_SELECT_FEATURES = "select-features";
export const SPRITE_REDLINE = "redline";
export const SPRITE_FEATURE_INFO = "feature-info";
export const SPRITE_QUERY = "query";
export const SPRITE_THEME = "theme";
export const SPRITE_INVOKE_SCRIPT = "invoke-script";
export const SPRITE_INVOKE_URL = "invoke-url";

let mRoot = ICON_ZOOM_OUT_FIXED.replace("/zoom-out-fixed.png", "/../../");

export function getAssetRoot(): string {
    return mRoot;
}

export function setAssetRoot(root: string): void {
    mRoot = root;
}<commit_msg>Add a relative icon path helper. This is primarily for the NPM module to resolve non-sprite icons<commit_after>import * as logger from "./logger";
export function getAssetPath(url: string | undefined): string | undefined {
    return url;
}

export const STD_CSS_SPRITE_RELPATH = "images/icons.png";

export const CURSOR_DIGITIZE_POINT = require("../../stdassets/cursors/digitizePoint.cur");
export const CURSOR_DIGITIZE_LINE = require("../../stdassets/cursors/digitizeLine.cur");
export const CURSOR_DIGITIZE_LINESTRING = require("../../stdassets/cursors/digitizeLineString.cur");
export const CURSOR_DIGITIZE_RECT = require("../../stdassets/cursors/digitizeRectangle.cur");
export const CURSOR_DIGITIZE_POLYGON = require("../../stdassets/cursors/digitizePolygon.cur");
export const CURSOR_DIGITIZE_CIRCLE = require("../../stdassets/cursors/digitizeCircle.cur");
export const CURSOR_GRABBING = require("../../stdassets/cursors/grabbing.cur");
export const CURSOR_GRAB = require("../../stdassets/cursors/grab.cur");
export const CURSOR_ZOOM_IN = require("../../stdassets/cursors/zoomin.cur");

export const IMG_SLIDER_SCALE = require("../../stdassets/images/res/sliderscale.png");
export const GIF_SPINNER = require("../../stdassets/images/res/spinner.gif");
export const IMG_SLIDER = require("../../stdassets/images/res/slider.png");

export const IMG_PBMG = require("../../stdassets/images/icons/PoweredBy_en.png");

export const ICON_ABOUT = require("../../stdassets/images/icons/about.png");
export const ICON_APPLICATION_BROWSER = require("../../stdassets/images/icons/application-browser.png");
export const ICON_BACK = require("../../stdassets/images/icons/back.png");
export const ICON_BUFFER = require("../../stdassets/images/icons/buffer.png");
export const ICON_CONTROL_180 = require("../../stdassets/images/icons/control-180.png");
export const ICON_CONTROL_STOP_180 = require("../../stdassets/images/icons/control-stop-180.png");
export const ICON_CONTROL_STOP = require("../../stdassets/images/icons/control-stop.png");
export const ICON_CONTROL = require("../../stdassets/images/icons/control.png");
export const ICON_COORDINATE_TRACKER = require("../../stdassets/images/icons/coordinate-tracker.png");
export const ICON_EDIT_COPY = require("../../stdassets/images/icons/edit-copy.png");
export const ICON_EDIT_CUT = require("../../stdassets/images/icons/edit-cut.png");
export const ICON_EDIT_DUPLICATE = require("../../stdassets/images/icons/edit-duplicate.png");
export const ICON_EDIT_PASTE = require("../../stdassets/images/icons/edit-paste.png");
export const ICON_EDIT_XML = require("../../stdassets/images/icons/edit-xml.png");
export const ICON_ERROR = require("../../stdassets/images/icons/icon_error.png");
export const ICON_FEATURE_INFO = require("../../stdassets/images/icons/feature-info.png");
export const ICON_FILE_PRINT = require("../../stdassets/images/icons/file-print.png");
export const ICON_FILE_SAVE = require("../../stdassets/images/icons/file-save.png");
export const ICON_FOLDER_HORIZONTAL_OPEN = require("../../stdassets/images/icons/folder-horizontal-open.png");
export const ICON_FOLDER_HORIZONTAL = require("../../stdassets/images/icons/folder-horizontal.png");
export const ICON_FORWARD = require("../../stdassets/images/icons/forward.png");
export const ICON_GEOLOCATION = require("../../stdassets/images/icons/geolocation.png");
export const ICON_HELP = require("../../stdassets/images/icons/help.png");
export const ICON_HOME = require("../../stdassets/images/icons/icon_home.png");
export const ICON_MENUARROW_DISABLED = require("../../stdassets/images/icons/icon_menuarrow_disabled.png");
export const ICON_MENUARROW = require("../../stdassets/images/icons/icon_menuarrow.png");
export const ICON_MENUARROWUP_DISABLED = require("../../stdassets/images/icons/icon_menuarrowup_disabled.png");
export const ICON_MENUARROWUP = require("../../stdassets/images/icons/icon_menuarrowup.png");
export const ICON_REFRESHMAP = require("../../stdassets/images/icons/icon_refreshmap.png");
export const ICON_SELECT = require("../../stdassets/images/icons/select.png");
export const ICON_ZOOMSELECT = require("../../stdassets/images/icons/icon_zoomselect.png");
export const ICON_NAVIGATOR = require("../../stdassets/images/icons/iconNavigator.png");
export const ICON_INFO = require("../../stdassets/images/icons/info.png");
export const ICON_INITIAL_CENTER = require("../../stdassets/images/icons/initial-center.png");
export const ICON_INVOKE_SCRIPT = require("../../stdassets/images/icons/invoke-script.png");
export const ICON_INVOKE_URL = require("../../stdassets/images/icons/invoke-url.png");
export const ICON_UNSELECT = require("../../stdassets/images/icons/lc_unselect.png");
export const ICON_LEGEND_DWF = require("../../stdassets/images/icons/legend-DWF.png");
export const ICON_LEGEND_LAYER = require("../../stdassets/images/icons/legend-layer.png");
export const ICON_LEGEND_MAP = require("../../stdassets/images/icons/legend-map.png");
export const ICON_LEGEND_RASTER = require("../../stdassets/images/icons/legend-raster.png");
export const ICON_LEGEND_THEME = require("../../stdassets/images/icons/legend-theme.png");
export const ICON_MAPTIP = require("../../stdassets/images/icons/maptip.png");
export const ICON_MEASURE = require("../../stdassets/images/icons/measure.png");
export const ICON_OPTIONS = require("../../stdassets/images/icons/options.png");
export const ICON_OUT_OF_RANGE = require("../../stdassets/images/icons/out-of-range.png");
export const ICON_OVERVIEW_MAP = require("../../stdassets/images/icons/overview-map.png");
export const ICON_PAN_EAST = require("../../stdassets/images/icons/pan-east.png");
export const ICON_PAN_NORTH = require("../../stdassets/images/icons/pan-north.png");
export const ICON_PAN_SOUTH = require("../../stdassets/images/icons/pan-south.png");
export const ICON_PAN_WEST = require("../../stdassets/images/icons/pan-west.png");
export const ICON_PAN = require("../../stdassets/images/icons/pan.png");
export const ICON_PREVIEW = require("../../stdassets/images/icons/preview.png");
export const ICON_PRINT = require("../../stdassets/images/icons/print.png");
export const ICON_PROPERTY = require("../../stdassets/images/icons/property.png");
export const ICON_QUERY = require("../../stdassets/images/icons/query.png");
export const ICON_REDLINE = require("../../stdassets/images/icons/redline.png");
export const ICON_SEARCH = require("../../stdassets/images/icons/search.png");
export const ICON_SELECT_CENTRE = require("../../stdassets/images/icons/select-centre.png");
export const ICON_SELECT_CLEAR = require("../../stdassets/images/icons/select-clear.png");
export const ICON_SELECT_FEATURES = require("../../stdassets/images/icons/select-features.png");
export const ICON_SELECT_POLYGON = require("../../stdassets/images/icons/select-polygon.png");
export const ICON_SELECT_RADIUS = require("../../stdassets/images/icons/select-radius.png");
export const ICON_SELECT_ZOOM = require("../../stdassets/images/icons/select-zoom.png");
export const ICON_THEME = require("../../stdassets/images/icons/theme.png");
export const ICON_TOGGLE_EXPAND = require("../../stdassets/images/icons/toggle-expand.png");
export const ICON_TOGGLE = require("../../stdassets/images/icons/toggle.png");
export const ICON_UI_MENU = require("../../stdassets/images/icons/ui-menu.png");
export const ICON_VIEW_BACK = require("../../stdassets/images/icons/view-back.png");
export const ICON_VIEW_FORWARD = require("../../stdassets/images/icons/view-forward.png");
export const ICON_VIEW_REFRESH = require("../../stdassets/images/icons/view-refresh.png");
export const ICON_WARNING = require("../../stdassets/images/icons/icon_warning.png");
export const ICON_ZOOM_DYNAMIC = require("../../stdassets/images/icons/zoom-dynamic.png");
export const ICON_ZOOM_FULL = require("../../stdassets/images/icons/zoom-full.png");
export const ICON_ZOOM_IN_FIXED = require("../../stdassets/images/icons/zoom-in-fixed.png");
export const ICON_ZOOM_IN = require("../../stdassets/images/icons/zoom-in.png");
export const ICON_ZOOM_OUT_FIXED = require("../../stdassets/images/icons/zoom-out-fixed.png");

export const SPRITE_CONTROL_180 = "control-180";
export const SPRITE_CONTROL = "control";
export const SPRITE_ICON_ZOOMSELECT = "icon_zoomselect";
export const SPRITE_LEGEND_LAYER = "legend-layer";
export const SPRITE_ICON_SELECT = "icon_select";
export const SPRITE_LC_UNSELECT = "lc_unselect";
export const SPRITE_LEGEND_THEME = "legend-theme";
export const SPRITE_LEGEND_RASTER = "legend-raster";
export const SPRITE_LEGEND_TOGGLE = "toggle";
export const SPRITE_LEGEND_TOGGLE_EXPAND = "toggle-expand";
export const SPRITE_FOLDER_HORIZONTAL = "folder-horizontal";
export const SPRITE_ICON_ERROR = "icon_error";
export const SPRITE_ICON_HOME = "icon_home";
export const SPRITE_BACK = "back";
export const SPRITE_FORWARD = "forward";
export const SPRITE_ICON_MENUARROWUP = "icon_menuarrowup";
export const SPRITE_ICON_MENUARROW = "icon_menuarrow";
export const SPRITE_SELECT = "select";
export const SPRITE_PAN = "pan";
export const SPRITE_ZOOM_IN = "zoom-in";
export const SPRITE_ZOOM_IN_FIXED = "zoom-in-fixed";
export const SPRITE_ZOOM_OUT_FIXED = "zoom-out-fixed";
export const SPRITE_ZOOM_FULL = "zoom-full";
export const SPRITE_MAPTIP = "maptip";
export const SPRITE_PAN_WEST = "pan-west";
export const SPRITE_PAN_EAST = "pan-east";
export const SPRITE_PAN_NORTH = "pan-north";
export const SPRITE_PAN_SOUTH = "pan-south";
export const SPRITE_ABOUT = "about";
export const SPRITE_HELP = "help";
export const SPRITE_MEASURE = "measure";
export const SPRITE_PRINT = "print";
export const SPRITE_OPTIONS = "options";
export const SPRITE_SELECT_RADIUS = "select-radius";
export const SPRITE_SELECT_POLYGON = "select-polygon";
export const SPRITE_INITIAL_CENTER = "initial-center";
export const SPRITE_SELECT_CLEAR = "select-clear";
export const SPRITE_ICON_REFRESHMAP = "icon_refreshmap";
export const SPRITE_VIEW_BACK = "view-back";
export const SPRITE_VIEW_FORWARD = "view-forward";
export const SPRITE_GEOLOCATION = "geolocation";
export const SPRITE_BUFFER = "buffer";
export const SPRITE_SELECT_FEATURES = "select-features";
export const SPRITE_REDLINE = "redline";
export const SPRITE_FEATURE_INFO = "feature-info";
export const SPRITE_QUERY = "query";
export const SPRITE_THEME = "theme";
export const SPRITE_INVOKE_SCRIPT = "invoke-script";
export const SPRITE_INVOKE_URL = "invoke-url";

let mRoot = ICON_ZOOM_OUT_FIXED.replace("/zoom-out-fixed.png", "/../../");

export function getAssetRoot(): string {
    return mRoot;
}

export function setAssetRoot(root: string): void {
    mRoot = root;
}

export function getRelativeIconPath(iconName: string): string {
    return `images/icons/${iconName}.png`;
}
{'fraction_non_alphanumeric': 0.1655910961466517, 'fraction_numerical': 0.0016835016835016834, 'mean_word_length': 5.064946114577425, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4396349', 'n_tokens_mistral': 7029, 'n_tokens_neox': 6757, 'n_words': 1203}