these are set as props on the HOC
973840
function dispatchToProps(dispatch) {
    return {
        add: function add() {
            var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
            var name = arguments[1];

            return dispatch({
                type: generateType(types.add, name),
                payload: {
                    name: name,
                    state: state
                }
            });
        },
        delete: function _delete(name) {
            return dispatch({
                type: generateType(types.delete, name),
                payload: {
                    name: name
                }
            });
        },
        reset: function reset() {
            var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
            var name = arguments[1];

            return dispatch({
                type: generateType(types.reset, name),
                payload: {
                    name: name,
                    state: state
                }
            });
        },
        set: function set() {
            var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
            var name = arguments[1];

            return dispatch({
                type: generateType(types.set, name),
                payload: {
                    name: name,
                    state: state
                }
            });
        }
    };
}
168915
def set_meta_all(self, props):
        
        delta_props = self.get_meta()
        for key in delta_props.keys():
            if key not in props:
                delta_props[key] = None
        delta_props.update(props)
        self.set_meta(delta_props)
14012
function(ch, w, coord, prop) {
     if(this.layout.horizontal()) {
       return this.layoutH(ch, w, coord, prop);
     } else {
       return this.layoutV(ch, w, coord, prop);
     }
    }
1205006
function initBBox(props, eventType) {
  // eslint-disable-line no-unused-vars
  var docBBox = getBBox(document.documentElement),
      elementBBox = props.elementBBox = props.initElm(props),
      // reset offset etc.
  containmentBBox = props.containmentBBox = props.containmentIsBBox ? resolvePPBBox(props.options.containment, docBBox) || docBBox : getBBox(props.options.containment, true);
  props.minLeft = containmentBBox.left;
  props.maxLeft = containmentBBox.right - elementBBox.width;
  props.minTop = containmentBBox.top;
  props.maxTop = containmentBBox.bottom - elementBBox.height;
  // Adjust position
  move(props, { left: elementBBox.left, top: elementBBox.top });
}
669572
function(prop){
        var props = {},
            len, i = 0, item;

        prop = Array.from(prop);
        len = prop.length;
        
        while(len--){
            props[prop[i++]] = void 0;
        }

        // void 0 is used because 'undefined' is a var that can be changed in some browsers
        this.set(props);

        return this;
    }
594074
private void buildItems()
  {
    Preconditions.checkState(items == null);
    items = OPFItems.build(itemBuilders.values(), spineIDs);

    for (OPFItem item : items.getItems())
    {
      reportItem(item);
    }
  }
165826
def build_props(self):
        """"""
        props = {}
        if self.filters:
            props["filters"] = {}
            for grp in self.filters:
                props["filters"][grp] = [f.params for f in self.filters[grp]]
        if self.charts:
            props["charts"] = [c.params for c in self.charts]

        props["type"] = self.layout
        return props
1351395
def pick(self, *props):
        
        result = Parameters()
        for prop in props:
            if self.contains_key(prop):
                result.put(prop, self.get(prop))
        return result
139513
function AlertLink({ children, className, href }: Props): React.Node {
  const classes = cn(`alert-link`, className);
  return (
    <a className={classes} href={href}>
      {children}
    </a>
  );
}
1205539
def arrows(self):
        """"""
        for o in self.arrow.values():
            for arro in o.values():
                yield arro
123569
def props(cls):
    
    return {k:v for (k, v) in inspect.getmembers(cls) if type(v) is Argument}
456540
def linkify(props):
    
    match = props['match']
    protocol = match.group(1)
    url = match.group(2)
    href = protocol + url

    if props['block']['type'] == BLOCK_TYPES.CODE:
        return href

    link_props = {
        'href': href,
    }

    if href.startswith('www'):
        link_props['href'] = 'http://' + href

    return DOM.create_element('a', link_props, href)
1358759
function visProps(props) {
  const {
    data,
    height,
    width,
  } = props;

  const padding = {
    top: 20,
    right: 20,
    bottom: 40,
    left: 50,
  };

  const plotAreaWidth = width - padding.left - padding.right;
  const plotAreaHeight = height - padding.top - padding.bottom;

  const xDomain = d3.extent(data, d => d.x);
  const yDomain = d3.extent(data, d => d.y);
  const xDomainPadding = 0.05 * xDomain[1];
  const yDomainPadding = 0.02 * yDomain[1];

  const xScale = d3.scaleLinear()
    .domain([xDomain[0] - xDomainPadding, xDomain[1] + xDomainPadding])
    .range([0, plotAreaWidth]);

  const yScale = d3.scaleLinear()
    .domain([yDomain[0] - yDomainPadding, yDomain[1] + yDomainPadding])
    .range([plotAreaHeight, 0]);

  const color = ({ y }) => `rgb(150, 200, ${Math.floor(255 * (yScale(y) / plotAreaHeight))})`;


  const voronoiDiagram = d3.voronoi()
    .x(d => xScale(d.x))
    .y(d => yScale(d.y))
    .size([plotAreaWidth, plotAreaHeight])(data);

  return {
    color,
    padding,
    plotAreaWidth,
    plotAreaHeight,
    xScale,
    yScale,
    voronoiDiagram,
  };
}
1064026
def set_meta(self, _props):
        """"""
        if self.is_fake:
            return

        props = {}
        for key, value in _props.items():
            key, value = self.meta_mappings.map_set(key, value)
            props[key] = value

        # Pop out tag which we don't want
        props.pop("tag", None)

        self.journal.update_info({})
        self.journal.update_info(props)
        self.journal.save()
923568
private void initSurrogateMap(Map<String, List<String>> targetCapabilities,
            SurrogateCapabilitiesHeader surrogateCapabilitiesHeader) {

        for (SurrogateCapabilities sc : surrogateCapabilitiesHeader.getSurrogates()) {
            targetCapabilities.put(sc.getDeviceToken(), new ArrayList<String>());
        }
    }
356299
function(prop) {
    prop = prop || "current";
    var root = this.graph.getNode(this.clickedNode && this.clickedNode.id || this.root);
    this.controller.onBeforeCompute(root);
    var config = this.config,
        size = this.canvas.getSize(),
        width = size.width,
        height = size.height,
        offst = config.offset,
        offwdth = width - offst,
        offhght = height - offst;
    this.graph.computeLevels(this.root, 0, "ignore");
    //set root position and dimensions
    root.getPos(prop).setc(-width/2, -height/2);
    root.setData('width', width, prop);
    root.setData('height', height, prop);
    //create a coordinates object
    var coord = {
        'top': -height/2 + config.titleHeight,
        'left': -width/2,
        'width': offwdth,
        'height': offhght - config.titleHeight
    };
    this.computePositions(root, coord, prop);
    this.controller.onAfterCompute(root);
 }
361877
function set(name, element, previous, props) {
  if (set.handlers[name]) {
    set.handlers[name](name, element, previous, props);
  } else if (previous[name] !== props[name]) {
    element[name] = props[name];
  }
}