UTILS: miscellaneous bits and pieces.
967954
def utils(
        ctx,
        filepath=None,
        jsonld=False,
        discover=False,
):
    
    verbose = ctx.obj['VERBOSE']
    sTime = ctx.obj['STIME']
    print_opts = {
        'labels': verbose,
    }
    DONE_ACTION = False

    if jsonld:
        if not filepath:
            click.secho(
                "What do you want to test? Please specify a valid JSONLD source.",
                fg='red')
        else:
            filepath = filepath[0]
            action_jsonld_playground(filepath, verbose)
            DONE_ACTION = True
    elif discover:
        DONE_ACTION = True
        action_webimport()
    else:
        click.secho("You haven't specified any utils command.")
        click.echo(ctx.get_help())

    if DONE_ACTION:
        eTime = time.time()
        tTime = eTime - sTime
        printDebug("\n-----------\n" + "Time:	   %0.2fs" % tTime, "comment")
939590
def items (self):
        """"""
        return [(key, value[1]) for key, value in super(LFUCache, self).items()]
1028682
def items(self):
        """"""
        l = []
        for e in self.data:
            l += e.items()
        return l
424318
void andNot(LongBitSet other) {
		int pos = Math.min(numWords, other.numWords);
		while (--pos >= 0) {
			bits[pos] &= ~other.bits[pos];
		}
	}
63776
def items(self):
        """"""
        contents = self.paths
        contents = (
            VenvFile(path.path) if path.is_file else VenvDir(path.path)
            for path in contents
        )
        return contents
979489
def get_contained_extras(marker):
    
    if not marker:
        return set()
    extras = set()
    marker = _ensure_marker(marker)
    _markers_collect_extras(marker._markers, extras)
    return extras
505440
static BitSet and(BitSet x, BitSet y) {
        BitSet z = copy(x);
        z.and(y);
        return z;
    }
1259905
def items(self):
        """"""
        return [(k, unidecode.unidecode(v))
                for k, v in self.identity_dict.items()]
854331
def secure_items(self, section):
        
        return [x
                for x in self.items(section)
                if self.is_secure_option(section, x[0])]
901467
def get_common_parts(r):
    """"""

    title = format_title(r.get('title'))
    author_list = format_author_list(r.get('author'))
    container = format_container(r.get('container-title'))
    date = format_date(r.get('issued'))
    doi = r.get('DOI')

    return Parts(type='Unknown', title=title, authors=author_list, container=container, date=date, extra='', doi=doi)
635196
def _item_sources(self):
        """"""
        return [self.data_vars, self.coords, {d: self[d] for d in self.dims},
                LevelCoordinatesSource(self)]
761704
def items(self, section_name):
        """"""
        return [(k, v) for k, v in super(GitConfigParser, self).items(section_name) if k != '__name__']
322616
def itemgetters(*args):
    

    f = itemgetter(*args)

    def inner(l):
        return [f(x) for x in l]

    return inner
108167
def collect_usage_pieces(self, ctx):
        
        rv = [self.options_metavar]
        for param in self.get_params(ctx):
            rv.extend(param.get_usage_pieces(ctx))
        return rv
1324872
def only_extras(self):
        
        known = [key for key in self._dict.keys() if key in self.c_param]
        if not known:
            return True
        else:
            return False
219725
def items(self):
        
        cart_items = []
        for repo, items in self.iterrepos():
            cart_items.extend(items)
        return cart_items
869483
def wrap(self, data, many):
        """"""
        if not many:
            return data
        else:
            data = {'parts': data}
            multipart = self.context.get('multipart')
            if multipart:
                data.update(MultipartObjectSchema(context={
                    'bucket': multipart.bucket}).dump(multipart).data)
            return data