<commit_before>########## soil_moisture.py ###############
##
##  This component calculates and updates soil moisture after each storm.
##  Multiple storms can be considered which is fed as an input.
##  This code implements Laio's(2001) solution for soil moisture calculation.
##  Input file is named soilmoisture_input.txt and is temporarily placed under landlab.components.
##  All input values can be altered using set_*** functions
##  All output arrays can be retrieved using get_*** functions
##
##  Storms are considered to be instantaneous events.
##  Storm duration, depth and interstorm duration are obtained from RainfallDriver.py
##  Storm depth is obtained in mm and storm duration and interstorm duration are obtained in hours
##
##  After every storm, Laio's solution for soil moisture drying is implemented. 
##
##
## Written by <NAME> & <NAME>, 2013.
###########################################

import os
from numpy import *
from math import *
import landlab
from landlab.components.uniformprecip.rainfall_driver import PrecipitationDistribution
from landlab.model_parameter_dictionary import ModelParameterDictionary
from matplotlib.pyplot import *


_DEFAULT_INPUT_FILE = os.path.join(os.path.dirname(__file__),
                                  'soilmoisture_input.txt')

class SoilMoisture():

    def __init__( self ):
        """ vegcover - vegetation cover fraction """
        self._vegcover = 0.0
        """ interception_cap - Maximum interception capacity """
        self._interception_cap = 0.0
        """ zr - root depth """
        self._zr = 0.0
        """ runon - runon from upstream """
        self._runon = 0.0
        """ PET - potential evapotranspiration """
        self._PET = 0.0
        """ fbare - scaling coefficient for bare soil Potential Evapotranspiration """
        self._fbare = 0.0
<commit_msg>updated file to call  uniform_precip folder<commit_after>########## soil_moisture.py ###############
##
##  This component calculates and updates soil moisture after each storm.
##  Multiple storms can be considered which is fed as an input.
##  This code implements Laio's(2001) solution for soil moisture calculation.
##  Input file is named soilmoisture_input.txt and is temporarily placed under landlab.components.
##  All input values can be altered using set_*** functions
##  All output arrays can be retrieved using get_*** functions
##
##  Storms are considered to be instantaneous events.
##  Storm duration, depth and interstorm duration are obtained from RainfallDriver.py
##  Storm depth is obtained in mm and storm duration and interstorm duration are obtained in hours
##
##  After every storm, Laio's solution for soil moisture drying is implemented. 
##
##
## Written by <NAME> & <NAME>, 2013.
###########################################

import os
from numpy import *
from math import *
import landlab
from landlab.components.uniform_precip.generate_uniform_precip import PrecipitationDistribution
from landlab.model_parameter_dictionary import ModelParameterDictionary
from matplotlib.pyplot import *


_DEFAULT_INPUT_FILE = os.path.join(os.path.dirname(__file__),
                                  'soilmoisture_input.txt')

class SoilMoisture():

    def __init__( self ):
        """ vegcover - vegetation cover fraction """
        self._vegcover = 0.0
        """ interception_cap - Maximum interception capacity """
        self._interception_cap = 0.0
        """ zr - root depth """
        self._zr = 0.0
        """ runon - runon from upstream """
        self._runon = 0.0
        """ PET - potential evapotranspiration """
        self._PET = 0.0
        """ fbare - scaling coefficient for bare soil Potential Evapotranspiration """
        self._fbare = 0.0

{'fraction_non_alphanumeric': 0.11701843441090035, 'fraction_numerical': 0.010686615014694095, 'mean_word_length': 3.4838323353293412, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3394589', 'n_tokens_mistral': 1034, 'n_tokens_neox': 952, 'n_words': 359}