<commit_before>from datetime import date
 
from pywps.Process import WPSProcess

import logging
logger = logging.getLogger(__name__)

class AnalogsProcess(WPSProcess):
  
  def __init__(self):
    # definition of this process
    WPSProcess.__init__(self, 
      identifier = "analogs",
      title="Days with analog pressure pattern",
      version = "0.2",
      metadata= [
              {"title": "Institut <NAME>", "href": "https://www.ipsl.fr/en/"}
              ],
      abstract="Search for days with analog pressure pattern",
      statusSupported=True,
      storeSupported=True
      )

    self.resource = self.addComplexInput(
      identifier="resource",
      title="Resource",
      abstract="URL to netCDF file",
      minOccurs=0,
      maxOccurs=1000,
      maxmegabites=5000,
      formats=[{"mimeType":"application/x-netcdf"}],
      )

    self.experiment = self.addLiteralInput(
      identifier="experiment",
      title="Data experiment",
      abstract="Choose the experiment (if 'None' is selected, provide a resource)",
      default="NCEP",
      type=type(''),
      minOccurs=1,
      maxOccurs=1,
      allowedValues=['None','NCEP']
      )

    
    self.region = self.addLiteralInput(
      identifier="region",
      title="Region",
      abstract="coordinates to define the region: (minlon,minlat,maxlon,maxlat)",
      default='-80,50,22.5,70', #"-80,22.5,50,70",
      type=type(''),
      minOccurs=1,
      maxOccurs=1,
      )

    # self.region = self.addLiteralInput(
    #   identifier="region",
    #   title="Select Region",
    #   abstract="Select a predifined region",
    #   default="NA",
    #   type=type(''),
    #   minOccurs=1,
    #   maxOccurs=1,
    #   allowedValues=['NA']
    #   )
         
    self.dateSt = self.addLiteralInput(
      identifier="dateSt",
      title="Start date of analyse period",
      abstract="This is a Date: 2013-07-15",
      default="2013-07-15",
      type=type(date(2013,7,15)),
      minOccurs=1,
      maxOccurs=1,
      )
    
    self.dateEn = self.addLiteralInput(
      identifier="dateEn",<commit_msg>include propper bbox<commit_after>from datetime import date
 
from pywps.Process import WPSProcess

import logging
logger = logging.getLogger(__name__)

class AnalogsProcess(WPSProcess):
  
  def __init__(self):
    # definition of this process
    WPSProcess.__init__(self, 
      identifier = "analogs",
      title="Days with analog pressure pattern",
      version = "0.2",
      metadata= [
              {"title": "Institut <NAME>", "href": "https://www.ipsl.fr/en/"}
              ],
      abstract="Search for days with analog pressure pattern",
      statusSupported=True,
      storeSupported=True
      )

    self.resource = self.addComplexInput(
      identifier="resource",
      title="Resource",
      abstract="URL to netCDF file",
      minOccurs=0,
      maxOccurs=1000,
      maxmegabites=5000,
      formats=[{"mimeType":"application/x-netcdf"}],
      )

    self.experiment = self.addLiteralInput(
      identifier="experiment",
      title="Data experiment",
      abstract="Choose the experiment (if 'None' is selected, provide a resource)",
      default="NCEP",
      type=type(''),
      minOccurs=1,
      maxOccurs=1,
      allowedValues=['None','NCEP']
      )

    
    self.region = self.addBBoxInput(
      identifier="region",
      title="Region",
      abstract="coordinates to define the region: (minlon,minlat,maxlon,maxlat)",
      default='-80,50,22.5,70', #"-80,22.5,50,70",
      #type=type(''),
      minOccurs=1,
      maxOccurs=1,
      crss=["EPSG:4326"]
      )

    # self.region = self.addLiteralInput(
    #   identifier="region",
    #   title="Select Region",
    #   abstract="Select a predifined region",
    #   default="NA",
    #   type=type(''),
    #   minOccurs=1,
    #   maxOccurs=1,
    #   allowedValues=['NA']
    #   )
         
    self.dateSt = self.addLiteralInput(
      identifier="dateSt",
      title="Start date of analyse period",
      abstract="This is a Date: 2013-07-15",
      default="2013-07-15",
      type=type(date(2013,7,15)),
      minOccurs=1,
      maxOccurs=1,
      )
    
    self.dateEn = self.addLiteralInput(
      identifier="dateEn",
{'fraction_non_alphanumeric': 0.13775992438563328, 'fraction_numerical': 0.02930056710775047, 'mean_word_length': 2.5872881355932202, 'pattern_counts': {'":': 6, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '113724', 'n_tokens_mistral': 1400, 'n_tokens_neox': 1319, 'n_words': 254}