pop any local dialects enabled within the scope of the
provided list.

note:  here we intentionally look just one level down at
the *direct* children of the list, since "grandchildren"
have scopes of their own that are "popped" separately.
165203
function pop_local_dialects(lexer, list) {
  if(list && list.length > 0) {
    // we go in reverse order since the most recently
    // used (pushed) dialects will be at the end
    for(var i = list.length-1; i >= 0; i--) {
      if(list[i].dialect) {
        unuse_dialect(list[i].dialect, lexer);
      }
    }
  }
}
176737
private void lexicalDescend(PageCompilingContext pc, Element element, boolean shouldPopScope) {

        //pop form
        if ("form".equals(element.tagName()))
            pc.form = null;

        //pop compiler if the scope ends
        if (shouldPopScope) {
            pc.lexicalScopes.pop();
        }
    }
1268705
def popleft(self):
        """"""
        self._mq.send("^", True, type=1)
        message = self._wait_receive_msg()
        reply = int(message[0].decode('utf-8'))
        #print(reply)
        if reply == -1:
            raise IndexError("pop from empty list")
        return reply
21449
def _pop(self, keep_context=False):
        
        self._push_textbuffer()
        self._depth -= 1
        if keep_context:
            context = self._context
            stack = self._stacks.pop()[0]
            self._context = context
            return stack
        return self._stacks.pop()[0]
494749
public function popLanguage(): void
  {
    array_pop($this->stack);
    $this->language = $this->stack[count($this->stack) - 1];
  }
1213535
def local
      local = []

      @branches.each do |branch|
        local << branch unless branch.remote?
      end

      BranchCollection.new(@repo, local)
    end
642773
def pop(self):
        
        if len(self.stack):
            popped = self.stack.pop()
            log.debug('pop: (%s)\n%s', Repr(popped), Repr(self.stack))
            return popped
        else:
            log.debug('stack empty, not-popped')
        return None
1335007
def children(self):
        
        rev_filter = settings.GIT_REV_FILTER
        cmd = "rev-list %s --children | grep '^%s'" % (rev_filter, self.raw_id)
        so, se = self.repository.run_git_command(cmd)

        children = []
        for l in so.splitlines():
            childs = l.split(' ')[1:]
            children.extend(childs)
        return [self.repository.get_changeset(cs) for cs in children]
19034
def pop(self,*args):
        '''
        
        '''
        nargs=len(args)
        dimlist=args[0] if isiterable(args[0]) else [args[0]]
        missing=args[1] if nargs > 1 else None 
        out=()
        for d in dimlist:
            out+=(super(dimStr, self).pop(d,missing),)
            if out[-1] == missing : self.set_ndims()
        
        return out if len(out) > 1 else out[0]
103469
def kids(self):
        
        self._uptodate()
        return [key.kid for key in self._keys if key.kid != ""]
643577
def pop
      raise Erlang::ImproperListError if improper?
      return self if empty?
      new_size = size - 1
      return Erlang::List.new(head, tail.take(new_size - 1)) if new_size >= 1
      return Erlang::Nil
    end
146039
public List<String> all(String localName) {
		List<String> childrenText = new ArrayList<String>();
		for (Element child : children()) {
			if (localName.equals(child.getLocalName()) && XCAL_NS.equals(child.getNamespaceURI())) {
				String text = child.getTextContent();
				childrenText.add(text);
			}
		}
		return childrenText;
	}
1366346
def list_local():
    '''
    
    '''
    cmd = 'layman --quietness=1 --list-local --nocolor'
    out = __salt__['cmd.run'](cmd, python_shell=False).split('\n')
    ret = [line.split()[1] for line in out if len(line.split()) > 2]
    return ret
1076896
private void initTopicTree(HelpTopicNode htnParent, List<?> children) {
        if (children != null) {
            for (Object node : children) {
                TopicTreeNode ttnChild = (TopicTreeNode) node;
                Topic topic = ttnChild.getTopic();
                Target target = topic.getTarget();
                String source = view.getBook().getBookTitle();
                URL url = null;
                
                try {
                    url = target == null ? null : target.getURL();
                } catch (MalformedURLException e) {}
                
                HelpTopic ht = new HelpTopic(url, topic.getLabel(), source);
                HelpTopicNode htnChild = new HelpTopicNode(ht);
                htnParent.addChild(htnChild);
                initTopicTree(htnChild, ttnChild);
            }
        }
    }
416967
def state_pop(self):
        
        super(Composite,self).state_pop()
        for gen in self.generators:
            gen.state_pop()
1035793
def descendants(self):
        """"""
        for i in self.current_item.items:
            self.move_to(i)
            if i.type == TYPE_COLLECTION:
                for c in self.children:
                    yield c
            else:
                yield i
            self.move_up()
1223489
void popStackToClose(String... elNames) {
        for (int pos = stack.size() -1; pos >= 0; pos--) {
            Element next = stack.get(pos);
            stack.remove(pos);
            if (inSorted(next.normalName(), elNames))
                break;
        }
    }