<commit_before>import os

from pywps.Process import WPSProcess
import logging

logger = logging.getLogger(__name__)

class FetchProcess(WPSProcess):
    def __init__(self):
        WPSProcess.__init__(self,
            identifier="fetch",
            title="Download Resources",
            version = "0.1",
            abstract="This process downloads resources (limited to 50GB) to the local file system of the birdhouse compute provider and returns a textfile with appropriate pathes",
            statusSupported=True,
            storeSupported=True)

        self.resource = self.addComplexInput(
            identifier="resource",
            title="NetCDF File",
            abstract="NetCDF File",
            minOccurs=1,
            maxOccurs=100,
            maxmegabites=5000,
            formats=[{"mimeType":"application/x-netcdf"}],
            )

        self.output = self.addComplexOutput(
            identifier="output",
            title="Fetched Files",
            abstract="File containing the local pathes to downloades files",
            formats=[{"mimeType":"text/plain"}],
            asReference=True,
            )

    def execute(self):
        resources = self.getInputValues(identifier='resource')
        
        filename = 'out.txt'
        with open(filename, 'w') as fp:
            fp.write('###############################################\n')
            fp.write('###############################################\n')
            fp.write('Following files are stored to your local discs: \n')
            fp.write('\n')
            for resource in resources: 
                fp.write('%s \n' % os.path.realpath(resource))
        self.output.setValue( filename )
<commit_msg>abstract update fetch<commit_after>import os

from pywps.Process import WPSProcess
import logging

logger = logging.getLogger(__name__)

class FetchProcess(WPSProcess):
    def __init__(self):
        WPSProcess.__init__(self,
            identifier="fetch",
            title="Download Resources",
            version = "0.1",
            abstract="This process downloads resources (limited to 50GB) \
            to the local file system of the birdhouse compute provider",
            statusSupported=True,
            storeSupported=True)

        self.resource = self.addComplexInput(
            identifier="resource",
            title="NetCDF File",
            abstract="NetCDF File",
            minOccurs=1,
            maxOccurs=100,
            maxmegabites=5000,
            formats=[{"mimeType":"application/x-netcdf"}],
            )

        self.output = self.addComplexOutput(
            identifier="output",
            title="Fetched Files",
            abstract="File containing the local pathes to downloades files",
            formats=[{"mimeType":"text/plain"}],
            asReference=True,
            )

    def execute(self):
        resources = self.getInputValues(identifier='resource')
        
        filename = 'out.txt'
        with open(filename, 'w') as fp:
            fp.write('###############################################\n')
            fp.write('###############################################\n')
            fp.write('Following files are stored to your local discs: \n')
            fp.write('\n')
            for resource in resources: 
                fp.write('%s \n' % os.path.realpath(resource))
        self.output.setValue( filename )

{'fraction_non_alphanumeric': 0.1545001465845793, 'fraction_numerical': 0.007036059806508356, 'mean_word_length': 2.1476014760147604, 'pattern_counts': {'":': 4, '<': 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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6701025', 'n_tokens_mistral': 873, 'n_tokens_neox': 840, 'n_words': 203}