def get_range(self, name, min_value=None, max_value=None, default=0):
    value = self.get(name, default)
    if value is None:
      return value
    try:
      value = int(value)
    except ValueError:
      value = default
    if value is not None:
      if max_value is not None:
        value = min(value, max_value)
      if min_value is not None:
        value = max(value, min_value)
    return value
Create a directory if it doesn't already exist (keeping concurrency in mind).
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/webapp/mock_webapp.py/MockRequest.get_range--crossover with--dataset/ETHPy150Open paylogic/pip-accel/pip_accel/utils.py/makedirs