<commit_before>package org.ossim.omar

import groovy.xml.StreamingMarkupBuilder
import java.text.SimpleDateFormat

/**
 * @author sbortman
 *
 */
public class WMSCapabilities
{
  public static final String version = "1.1.1"

  public static final String DOCTYPE = """
    <!DOCTYPE WMT_MS_Capabilities SYSTEM "http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd"
    [
    <!ELEMENT VendorSpecificCapabilities EMPTY>
    ]>
	"""

  def sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'")

  def getCapabilitiesFormats = [
          "application/vnd.ogc.wms_xml"
  ]

  def getMapFormats = [
          "image/png",
          //"image/gif",
          "image/jpeg",
          //"image/tiff",
          //"image/nitf",
          //"image/jp2",
          //"image/vnd.wap.wbmp",
          //"image/svg+xml"
  ]

  def getFeatureInfoFormats = [
          "text/plain",
          "application/vnd.ogc.gml"
  ]

  def describeLayerFormats = [
          "text/xml"
  ]

  def getLegendGraphicFormats = [
          "image/png",
          "image/gif",
          "image/jpeg",
          //"image/vnd.wap.wbmp"
  ]

  def getStylesFormats = [
          "text/xml"
  ]

  def exceptionFormats = [
          "application/vnd.ogc.se_xml",
          "application/vnd.ogc.se_inimage",
          "application/vnd.ogc.se_blank"
  ]

  def map

  public WMSCapabilities(def layers, def serviceAddress)
  {

    //println "${layers} ${serviceAddress}"

    map = new MapObject(
            name: "OMAR",
            title: "Imagery from OMAR",
            srs: "EPSG:4326",
            minX: -180,
            minY: -90,
            maxX: 180,
            maxY: 90,
            getCapabilitiesURL: "${serviceAddress}?layers=${layers?.join(',')}&",
            getMapURL: serviceAddress
    )
<commit_msg>Fixed join for layers<commit_after>package org.ossim.omar

import groovy.xml.StreamingMarkupBuilder
import java.text.SimpleDateFormat

/**
 * @author sbortman
 *
 */
public class WMSCapabilities
{
  public static final String version = "1.1.1"

  public static final String DOCTYPE = """
    <!DOCTYPE WMT_MS_Capabilities SYSTEM "http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd"
    [
    <!ELEMENT VendorSpecificCapabilities EMPTY>
    ]>
	"""

  def sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'")

  def getCapabilitiesFormats = [
          "application/vnd.ogc.wms_xml"
  ]

  def getMapFormats = [
          "image/png",
          //"image/gif",
          "image/jpeg",
          //"image/tiff",
          //"image/nitf",
          //"image/jp2",
          //"image/vnd.wap.wbmp",
          //"image/svg+xml"
  ]

  def getFeatureInfoFormats = [
          "text/plain",
          "application/vnd.ogc.gml"
  ]

  def describeLayerFormats = [
          "text/xml"
  ]

  def getLegendGraphicFormats = [
          "image/png",
          "image/gif",
          "image/jpeg",
          //"image/vnd.wap.wbmp"
  ]

  def getStylesFormats = [
          "text/xml"
  ]

  def exceptionFormats = [
          "application/vnd.ogc.se_xml",
          "application/vnd.ogc.se_inimage",
          "application/vnd.ogc.se_blank"
  ]

  def map

  public WMSCapabilities(def layers, def serviceAddress)
  {

    //println "${layers} ${serviceAddress}"

    map = new MapObject(
            name: "OMAR",
            title: "Imagery from OMAR",
            srs: "EPSG:4326",
            minX: -180,
            minY: -90,
            maxX: 180,
            maxY: 90,
            getCapabilitiesURL: "${serviceAddress}?layers=${layers?.indexId.join(',')}&",
            getMapURL: serviceAddress
    )

{'fraction_non_alphanumeric': 0.1379023307436182, 'fraction_numerical': 0.011653718091009988, 'mean_word_length': 1.962202136400986, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, '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': '4251200', 'n_tokens_mistral': 1309, 'n_tokens_neox': 1216, 'n_words': 203}