Add a feed to the Symbol
        
        Parameters
        ----------
        feedlike : Feed or bFeed-like
            The feed template, or Feed object to be added.
        kwargs
            Munging instructions
327710
def add_feed(self, feedlike, **kwargs):
        
        if 'fnum' in kwargs:
            fnum = kwargs['fnum']
            del kwargs['fnum']
        else:
            fnum = None

        if isinstance(feedlike, bFeed):
            munging = feedlike.munging
            if 'munging' in kwargs:
                explicit_munging = kwargs['munging'].as_odict
                for key in explicit_munging:
                    munging[key] = explicit_munging[key]
            fed = Feed(self, feedlike.ftype,
                       feedlike.sourcing,
                       munging,
                       feedlike.meta,
                       fnum)

        elif isinstance(feedlike, Feed):
            fed = feedlike
        else:
            raise Exception("Invalid Feed {}".format(repr(feedlike)))
        self.feeds.append(fed)
        
        objs = object_session(self)
        objs.add(fed)
        objs.commit()
1331067
def indicator_create(f, i):
    
    if '/' not in f:
        raise ValueError('feed name must be formatted like: '
                         'csirtgadgets/scanners')

    if not i:
        raise ValueError('missing indicator dict')

    u, f = f.split('/')

    i['user'] = u
    i['feed'] = f

    ret = Indicator(i).submit()

    return ret
437294
def add(self, *widgets):
        '''
        
        '''
        for w in widgets:
            if is_widget(w):
                if w not in self.widgets:
                    self.widgets.add(w)
                    w.add_internal(self)
            elif is_container(w):
                if w not in self.containers:
                    self.containers.add(w)
                    w.add_internal(self)
            else:
                # If it isn't an iterable, we'll get an error here.
                # Desired effect.
                self.add(*w)
423334
def add(self, name, extends, **kwargs):
        
        f = extends
        self._push(name=name,
                   module_=f.__module__,
                   class_=f.__name__,
                   method_=f.__name__,
                   is_class_=False,
                   **kwargs)
948257
def add_output(self, name, value):
        
        self.template.add_output(Output(name, Value=value))
882642
def add(self, prodable: Prodable) -> None:
        
        if prodable.name in [p.name for p in self.prodables]:
            raise ProdableAlreadyAdded("Prodable {} already added.".
                                       format(prodable.name))
        self.prodables.append(prodable)
        if self.autoStart:
            prodable.start(self.loop)
205935
private static FeedItemOperation createDsaUrlAddOperation(
      DSAFeedDetails feedDetails, String url, String labelName) {
    // Create the FeedItemAttributeValues for the URL and label.
    FeedItemAttributeValue urlAttributeValue = new FeedItemAttributeValue();
    urlAttributeValue.setFeedAttributeId(feedDetails.urlAttributeId);
    // See https://support.google.com/adwords/answer/7166527 for page feed URL recommendations and
    // rules.
    urlAttributeValue.setStringValues(new String[] {url});

    FeedItemAttributeValue labelAttributeValue = new FeedItemAttributeValue();
    labelAttributeValue.setFeedAttributeId(feedDetails.labelAttributeId);
    labelAttributeValue.setStringValues(new String[] {labelName});

    // Create the feed item and operation.
    FeedItem feedItem = new FeedItem();
    feedItem.setFeedId(feedDetails.feedId);

    feedItem.setAttributeValues(
        new FeedItemAttributeValue[] {urlAttributeValue, labelAttributeValue});

    FeedItemOperation operation = new FeedItemOperation();
    operation.setOperand(feedItem);
    operation.setOperator(Operator.ADD);

    return operation;
  }
1157492
private void doFeed() {
    if (fed && !output.sendQueueFull()) {
      fed = false;
      vertx.runOnContext(feedRunner);
    } else {
      feedTimer = vertx.setTimer(feedDelay, recursiveRunner);
    }
  }
697012
def add_callback(self, callback: callable):
        
        def internal_callback(*args):
            try:
                callback()
            except TypeError:
                callback(self.get())

        self._var.trace('w', internal_callback)
258832
def feed(self, cube, pair):
        
        self.cube = cube
        if pair not in ["FR", "RB", "BL", "LF"]:
            pair = ["FR", "RB", "BL", "LF"][["RF", "BR", "LB", "FL"].index(pair)]
        self.pair = pair
4518
def _feed_line(self, line):
        """"""
        if line is None:
            self.set_result(self._callback(self.__spooled_lines))
        else:
            self.__spooled_lines.append(line)
1231549
public void addByeCommand() {
        StringBuilder buf = new StringBuilder();
        buf.append("(bye)");
        fifo.add(fifo.size(), buf.toString());
    }
906239
public function feed()
    {
        if (isset($_POST[$this->name]) && is_array($_POST[$this->name])) {
            $this->setValue(array_values($_POST[$this->name]));
        }
    }
941544
def _CreateFeed(client):
  
  # Get the FeedService.
  feed_service = client.GetService('FeedService', version='v201809')

  # Create operation.
  operation = {
      # Create the feed.
      'operand': {
          'name': 'DSA Feed %s' % uuid.uuid4(),
          # Create attributes.
          'attributes': [
              {'type': 'URL_LIST', 'name': 'Page URL'},
              {'type': 'STRING_LIST', 'name': 'Label'}
          ],
          'origin': 'USER'
      },
      'operator': 'ADD'
  }

  # Add the feed.
  feed = feed_service.mutate([operation])['value'][0]
  return _DSAFeedDetails(feed['id'], feed['attributes'][0]['id'],
                         feed['attributes'][1]['id'])
264010
function additionalParameters(feedName) {
	if (feedName == 'Availability') {
		fs.appendFileSync(apijs, 'const x'+feedName+"DebugTrue = 'debug=true';\n", 'utf8');
		fs.appendFileSync(apijs, 'const x'+feedName+"Debug = 'debug';\n", 'utf8');
		var s = 'x'+feedName+'DebugTrue : x'+feedName+'DebugTrue,\n';
		s += 'x'+feedName+'Debug : x'+feedName+'Debug,\n';
		cache.push(s);
	}
	if ((feedName == 'Programmes') || (feedName == 'Images') || (feedName == 'Groups') ||
		(feedName == 'Versions')) {
		fs.appendFileSync(apijs, 'const x'+feedName+"EmbargoedInclude = 'embargoed=include';\n", 'utf8');
		fs.appendFileSync(apijs, 'const x'+feedName+"EmbargoedExclude = 'embargoed=exclude';\n", 'utf8');
		fs.appendFileSync(apijs, 'const x'+feedName+"EmbargoedOnly = 'embargoed=only';\n", 'utf8');
		fs.appendFileSync(apijs, 'const x'+feedName+"Embargoed= 'embargoed';\n", 'utf8');
		var s = 'x'+feedName+'EmbargoedInclude : x'+feedName+'EmbargoedInclude,\n';
		s += 'x'+feedName+'EmbargoedExclude : x'+feedName+'EmbargoedExclude,\n';
		s += 'x'+feedName+'EmbargoedOnly: x'+feedName+'EmbargoedOnly,\n';
		s += 'x'+feedName+'Embargoed : x'+feedName+'Embargoed,\n';
		cache.push(s);
	}
}
191685
def add(self, widget, condition=lambda: 42):
        

        assert callable(condition)
        assert isinstance(widget, BaseWidget)
        self._widgets.append((widget, condition))

        return widget
20659
def feed(self, token, test_newline=True):
        
        if test_newline:
            newlines = token.count(self.newline_char)
            if newlines:
                self.line += newlines
                self.line_start_pos = self.char_pos + token.rindex(self.newline_char) + 1

        self.char_pos += len(token)
        self.column = self.char_pos - self.line_start_pos + 1