Method that will be called for each property doc. Properties that are Angular inputs or
outputs will be marked. Aliases for the inputs or outputs will be stored as well.
488231
function decoratePropertyDoc(propertyDoc) {
    propertyDoc.isDirectiveInput = isDirectiveInput(propertyDoc);
    propertyDoc.directiveInputAlias = getDirectiveInputAlias(propertyDoc);

    propertyDoc.isDirectiveOutput = isDirectiveOutput(propertyDoc);
    propertyDoc.directiveOutputAlias = getDirectiveOutputAlias(propertyDoc);
  }
131255
function objectNameProperties(objectName) {
        var entries = {};
        if (objectName) {
            var idx = objectName.indexOf(":");
            if (idx > 0) {
                var path = objectName.substring(idx + 1);
                var items = path.split(',');
                angular.forEach(items, function (item) {
                    var kv = item.split('=');
                    var key = kv[0];
                    var value = kv[1] || key;
                    entries[key] = value;
                });
            }
        }
        return entries;
    }
568255
function determinePropertiesToGet (type) {
  const defaultProperties = ['description', 'summary']
  let result = defaultProperties
  switch (type) {
    case 'API':
      result.push('tags', 'info')
      break
    case 'METHOD':
      result.push('tags')
      break
  }
  return result

}
1129952
private void writePropertyData() {
		try (PrintStream out = new PrintStream(
				ExampleHelpers.openExampleFileOuputStream("properties.csv"))) {

			out.println("Id" + ",Label" + ",Description" + ",URL" + ",Datatype"
					+ ",Uses in statements" + ",Items with such statements"
					+ ",Uses in statements with qualifiers"
					+ ",Uses in qualifiers" + ",Uses in references"
					+ ",Uses total" + ",Related properties");

			List<Entry<PropertyIdValue, PropertyRecord>> list = new ArrayList<Entry<PropertyIdValue, PropertyRecord>>(
					this.propertyRecords.entrySet());
			Collections.sort(list, new UsageRecordComparator());
			for (Entry<PropertyIdValue, PropertyRecord> entry : list) {
				printPropertyRecord(out, entry.getValue(), entry.getKey());
			}

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
989123
function generateModelDefinition () {
    var definition = {};
    var schema = controller.model().schema;

    definition.id = capitalize(controller.model().singular());
    definition.properties = {};

    Object.keys(schema.paths).forEach(function (name) {
      var path = schema.paths[name];
      var property = generatePropertyDefinition(name, path);
      definition.properties[name] = property;
    });

    Object.keys(schema.virtuals).forEach(function (name) {
      var path = schema.virtuals[name];
      var property = generatePropertyDefinition(name, path);
      definition.properties[name] = property;
    });

    return definition;
  }
250941
function(e) {
    if (e.doclet.kind == 'typedef' && e.doclet.properties) {
      properties[e.doclet.longname] = e.doclet.properties;
    }
  }
759620
private function setProperties()
    {
        \danog\MadelineProto\Logger::log('Generating properties...', \danog\MadelineProto\Logger::NOTICE);
        $fixture = DocBlockFactory::createInstance();
        $class = new \ReflectionClass(APIFactory::class);
        $content = file_get_contents($filename = $class->getFileName());
        foreach ($class->getProperties() as $property) {
            if ($raw_docblock = $property->getDocComment()) {
                $docblock = $fixture->create($raw_docblock);
                if ($docblock->hasTag('internal')) {
                    $content = str_replace("\n    ".$raw_docblock."\n    public \$".$property->getName().';', '', $content);
                }
            }
        }
        foreach ($this->get_method_namespaces() as $namespace) {
            $content = preg_replace('/(class( \\w+[,]?){0,}\\n{\\n)/', '${1}'."    /**\n"."     * @internal this is a internal property generated by build_docs.php, don't change manually\n"."     *\n"."     * @var {$namespace}\n"."     */\n"."    public \${$namespace};\n", $content);
        }
        file_put_contents($filename, $content);
    }
1312628
function(properties, data) {
            var axisProperties = this.parseUtils.getXAxisProperties(properties),
                orientation = (this.axesAreInverted) ? 'vertical' : 'horizontal',
                colorScheme = this.getAxisColorScheme();

            // add some extra info to the axisProperties as needed
            if(axisProperties.hasOwnProperty('axisTitle.text')){
                axisProperties['axisTitle.text'] = Splunk.JSCharting.ParsingUtils.escapeHtml(axisProperties['axisTitle.text']);
            }
            axisProperties.chartType = properties.chart;
            axisProperties.axisLength = $(this.renderTo).width();

            this.xAxis = new Splunk.JSCharting.NumericAxis(axisProperties, data, orientation, colorScheme);
            this.hcConfig.xAxis = $.extend(true, this.xAxis.getConfig(), {
                startOnTick: true,
                endOnTick: true,
                minPadding: 0,
                maxPadding: 0
            });
        }
866861
function () {

  function Model(properties) {
    var self = this;

    if(properties) {
      Object.keys(properties).forEach(function (key) {
        self[key] = properties[key];
      });
    }
    this.save = sinon.stub();
    this.increment = sinon.stub();
    this.remove = sinon.stub();
    mongoose.emit('document', this);
  }

  Model.statics = {};
  Model.methods = {};
  Model.static = sinon.stub();
  Model.method = sinon.stub();
  Model.pre = sinon.stub();

  Model.path = function() {
    return {
      validate: sinon.stub(),
    };
  };

  Model.virtual = function() {
    function SetterGetter() {
      return {
        set: function() {
          return new SetterGetter();
        },
        get: function() {
          return new SetterGetter();
        }
      };
    }
    return new SetterGetter();
  };

  Model.aggregate = sinon.stub();
  Model.count = sinon.stub();
  Model.create = sinon.stub();
  Model.distinct = sinon.stub();
  Model.ensureIndexes = sinon.stub();
  Model.find = sinon.stub();
  Model.findById = sinon.stub();
  Model.findByIdAndRemove = sinon.stub();
  Model.findByIdAndUpdate = sinon.stub();
  Model.findOne = sinon.stub();
  Model.findOneAndRemove = sinon.stub();
  Model.findOneAndUpdate = sinon.stub();
  Model.geoNear = sinon.stub();
  Model.geoSearch = sinon.stub();
  Model.index = sinon.stub();
  Model.mapReduce = sinon.stub();
  Model.plugin = sinon.stub();
  Model.populate = sinon.stub();
  Model.remove = sinon.stub();
  Model.set = sinon.stub();
  Model.update = sinon.stub();
  Model.where = sinon.stub();

  mongoose.emit('model', Model);
  return Model;
}
104945
function DocAction(docStr) {
    return function (target, propertyKey, descriptor) {
        let m = exports.globalKCState.getOrInsertController(target.constructor).getOrInsertMethod(propertyKey);
        m.docString = docStr;
    };
}
1095035
public void setOutputProperties(Properties outputProperties) {
        for (Enumeration e = outputProperties.propertyNames();
             e.hasMoreElements(); ) {
            Object key = e.nextElement();
            if (key != null) {
                String name = key.toString();
                String value = outputProperties.getProperty(name);
                if (value != null) {
                    setOutputProperty(name, value);
                }
            }
        }
    }
1166316
function(properties) {
            this._super(properties);
            
            var entities = [];
            var entitiesByName = {};
            var entityPropertyList = properties.entry || [];
            for(var i = 0; i < entityPropertyList.length; i++) {
                var props = entityPropertyList[i];
                var entity = this.instantiateEntity(props);
                entity._load(props);
                entities.push(entity);
                
                if (entitiesByName.hasOwnProperty(entity.name)) {
                    entitiesByName[entity.name].push(entity);
                }
                else {
                    entitiesByName[entity.name] = [entity];
                }
            }
            this._entities       = entities;
            this._entitiesByName = entitiesByName;
            this._paging         = properties.paging    || {};
            this._links          = properties.links     || {};
            this._updated        = properties.updated   || null;
        }
842604
def properties
      return [] if @definition['properties'].nil?
      @definition['properties'].each_with_object([]) do |(key, value), results|
        content = { name: key, definition: value }
        results << Openapi2ruby::Openapi::Schema::Property.new(content)
      end
    end
416172
function normalizeProperties (properties, name) {
  // HACK
  if (!model) {
    model = require('./model')
  }

  // Allow for shorthand type declaration:
  // Check to see if the user passed in a raw type of a properties hash.
  if (properties) {
    // Raw type passed.
    // index: Type is translated to index: {type: Type}
    // Properties hash created.
    if (properties.type === undefined) {
      properties = {
        type: properties
      }

      // Properties hash passed.
      // Copy properties hash before modifying.
      // Users can pass in their own custom types to the schema and we don't want to write to that object.
      // Especially since properties.name contains the index of our field and copying that will break functionality.
    } else {
      properties = clone(properties)
    }
  }

  // Type may be an object with properties.
  // If "type.type" exists, we'll assume it's meant to be properties.
  // This means that shorthand objects can't use the "type" index.
  // If "type" is necessary, they must be wrapped in a Model.
  if (_.isObject(properties.type) && properties.type.type !== undefined) {
    _.each(properties.type, (value, key) => {
      if (properties[key] === undefined) {
        properties[key] = value
      }
    })
    properties.type = properties.type.type
  }

  // Null or undefined should be flexible and allow any value.
  if (properties.type === null || properties.type === undefined) {
    properties.type = 'any'

    // Convert object representation of type to lowercase string.
    // String is converted to 'string', Number to 'number', etc.
    // Do not convert the initialized ModelInstance to a string!
    // Check for a shorthand declaration of schema by key length.
  } else if (_.isString(properties.type.name) && properties.type.name !== 'ModelInstance' && Object.keys(properties.type).length === 0) {
    properties.type = properties.type.name
  }
  if (_.isString(properties.type)) {
    properties.type = properties.type.toLowerCase()
  }

  // index: [Type] or index: [] is translated to index: {type: Array, arrayType: Type}
  if (_.isArray(properties.type)) {
    if (_.size(properties.type)) {
      // Properties will be normalized when array is initialized.
      properties.arrayType = properties.type[0]
    }
    properties.type = 'array'
  }

  // index: {} or index: Model is translated to index: {type: Object, objectType: Type}
  if (!_.isString(properties.type)) {
    if (_.isFunction(properties.type)) {
      properties.objectType = properties.type
      properties.type = 'object'

      // if it's a function we have a ctor. if we have model name defined than it's one of ours.
      // set it as ref so we can typecase appropriately
      if (properties.objectType.modelName) {
        properties.ref = true
      }
    } else if (_.isObject(properties.type)) {
      // When {} is passed, no schema is enforced.
      if (_.size(properties.type)) {
        // Options should be inherited by sub-models.
        properties.objectType = model.compile(properties.type, this.options || {}, undefined, this.lounge)
      }
      properties.type = 'object'
    }
  }

  // Set name if passed on properties.
  // It's used to show what field an error what generated on.
  if (name) {
    properties.name = name
  }

  return properties
}
157841
function parseDoclets(obj, propName) {
  let desc = obj.desc || defaultDescriptions[propName] || '';
  obj.doclets = metadata.parseDoclets(desc) || {};
  obj.desc = cleanDoclets(desc);
  obj.descHtml = marked(obj.desc);
}
934712
function(properties) {
        this._handle = null;

        this.characteristic = null;
        this.uuid = null;
        this.value = null;

        mergeDictionary(this, properties);
    }
223839
def cached_property(method):
    
    name = method.__name__

    def newmethod(self):
        try:
            val = self.__dict__[name]
        except KeyError:
            val = method(self)
            self.__dict__[name] = val
        return val
    newmethod.__name__ = method.__name__
    newmethod.__doc__ = method.__doc__
    return property(newmethod)