Log item
@param {Object} item - item
331161
function logItem (item) {
  this.printLintItem(item.line, null, item.level, item.message, null)
}
499354
function log(str) {
  if (typeof document !== 'undefined') {
    console.log(str)
    const el = document.getElementById('perf')
    el.innerHTML += str
  }
}
835935
public function doLog(common_log_Item $item)
    {
        if (is_null($this->filehandle)) {
            $this->initFile();
        }
        if ($this->filehandle !== false) {
            $map = array(
                '%d' => gmdate('Y-m-d H:i:s', $item->getDateTime()),
                '%m' => $item->getDescription(),
                '%p' => $this->prefix,
                '%s' => $item->getSeverityDescriptionString(),
                '%t' => $item->getDateTime(),
                '%r' => $item->getRequest(),
                '%f' => $item->getCallerFile(),
                '%g' => implode(',', $item->getTags()),
                '%l' => $item->getCallerLine()
            );
            if (strpos($this->format, '%b')) {
                $map['%b'] = 'Backtrace not yet supported';
            }
            $str = strtr($this->format, $map) . PHP_EOL;
            @fwrite($this->filehandle, $str);
        }
    }
741280
function log(msg, color) {
        if (typeof(msg) === 'object') {
            for (var item in msg) {
                if (msg.hasOwnProperty(item)) {
                    if(color && color in $.util.colors) {
                        $.util.log($.util.colors[color](msg[item]));
                    }
                    $.util.log($.util.colors.lightgreen(msg[item]));
                }
            }
        } else {
            $.util.log($.util.colors.green(msg));
        }
    }
907086
function(array, item){
		var idx = array.indexOf(item);
		if(idx>=0){ Array.prototype.splice.call(array, idx, 1);}
	}
627941
def emit(self, item, defaults=None, stencil=None, to_log=False, item_formatter=None):
        
        item_text = self.format_item(item, defaults, stencil)

        # Post-process line?
        if item_formatter:
            item_text = item_formatter(item_text)

        # For a header, use configured escape codes on a terminal
        if item is None and os.isatty(sys.stdout.fileno()):
            item_text = ''.join((config.output_header_ecma48, item_text, "\x1B[0m"))

        # Dump to selected target
        if to_log:
            if callable(to_log):
                to_log(item_text)
            else:
                self.LOG.info(item_text)
        elif self.options.nul:
            sys.stdout.write(item_text + '\0')
            sys.stdout.flush()
        else:
            print(item_text)

        return item_text.count('\n') + 1
1134043
function (/* items... */) {
		var items = slice(arguments);
		var item;
		for (var i = 0, l = items.length; i < l; i++) {
			item = items[i];
			$Array.push.call(this, item);
			this.trigger(EVENT_ADD, item, this.length);
		}
		return this.length;
	}
143377
function destroyItem(item) {
			var checkbox = item.checkbox;

			// pull out from the array
			//erase(allItems, item);

			// destroy SVG elements
			each(['legendItem', 'legendLine', 'legendSymbol'], function (key) {
				if (item[key]) {
					item[key].destroy();
				}
			});

			if (checkbox) {
				discardElement(item.checkbox);
			}


		}
848623
function(item) {
        item = $(item);

        // Using event `remove` will cause the DOM element to delete itself
        this.fireEvent('removing', [item]);

        this.items.filter(item).remove();

        this.refresh();
    }
423346
function ( e, item ) {
            var res = { 
                id:    this._conf().fieldID,
                meta:  this._meta(),
                value: {}
            };
            var oldValue = getOrDefault( this, 'props.config.value', [] );
            res.value[ res.id ] = _.contains(oldValue, item.id ) 
                ? _.without( oldValue, item.id ) : oldValue.concat([ item.id ]);

            this.handleEvent( 'change')( e );
            this._conf().onChange( res );
        }
564568
public void onItemBind(int position, T item) {
        if (onItemBind != null) {
            variableId = VAR_INVALID;
            layoutRes = LAYOUT_NONE;
            onItemBind.onItemBind(this, position, item);
            if (variableId == VAR_INVALID) {
                throw new IllegalStateException("variableId not set in onItemBind()");
            }
            if (layoutRes == LAYOUT_NONE) {
                throw new IllegalStateException("layoutRes not set in onItemBind()");
            }
        }
    }
867268
public function log( common_log_Item $item)
    {
    	if ((1<<$item->getSeverity() & $this->mask) > 0
    		&& (empty($this->tags) || count(array_intersect($item->getTags(), $this->tags))) > 0) {
        	$this->doLog($item);
    	}

    }
1298780
function(item){
			var media = this.media;
			media.attr('poster', item.poster || '');

			$('track', media).remove();

			$.each(item.tracks || [], function(i, track){
				$('<track />').attr(track).appendTo(media);
			});
			if(!item.srces){
				item.srces = item;
			}
			media.jmeProp('srces', item.srces);
		}
210785
function log() {
  var _console;

  for (var _len = arguments.length, msgs = Array(_len), _key = 0; _key < _len; _key++) {
    msgs[_key] = arguments[_key];
  }

  (_console = console).log.apply(_console, _toConsumableArray(['' + _config2.default.name].concat(msgs)));
}
385430
public function doLog( common_log_Item $item)
    {
        
    	$doc = new DOMDocument();
		$doc->preserveWhiteSpace = false;
		$doc->formatOutput = true;
		$success = @$doc->load($this->filename);
		if (!$success) {
            $doc->loadXML('<events></events>');
        }

		$event_element = $doc->createElement("event");

		$message = $doc->createElement("description");
		$message->appendChild(
				$doc->createCDATASection($item->getDescription())
		);
		$event_element->appendChild($message);
		
		$file = $doc->createElement("file");
		$file->appendChild(
				$doc->createCDATASection($item->getCallerFile())
		);
		$event_element->appendChild($file);
		
		$line = $doc->createElement("line");
		$line->appendChild(
				$doc->createCDATASection($item->getCallerLine())
		);
		$event_element->appendChild($line);
		
		$datetime = $doc->createElement("datetime");
		$datetime->appendChild(
				$doc->createCDATASection($item->getDateTime())
		);
		$event_element->appendChild($datetime);
		
		$severity = $doc->createElement("severity");
		$severity->appendChild(
				$doc->createCDATASection($item->getSeverity())
		);
		$event_element->appendChild($severity);

		
		$doc->documentElement->appendChild($event_element);
		@$doc->save($this->filename);
        
    }
500000
function(item) {
        var id = item.id || item;

        var removedItem;
        var index = Selectivity.findIndexById(this._data, id);
        if (index > -1) {
            removedItem = this._data[index];
            this._data.splice(index, 1);
        }

        if (this._value[index] !== id) {
            index = this._value.indexOf(id);
        }
        if (index > -1) {
            this._value.splice(index, 1);
        }

        if (removedItem) {
            this.triggerChange({ removed: removedItem });
        }

        if (id === this._highlightedItemId) {
            this._highlightedItemId = null;
        }

        this._updateInputWidth();
    }
1018854
function $item(corq, item){
		var typeName = item.type;
		if (!corq.callbacks[typeName]){
			throw "Item handler not found for items of type `" + typeName + "`";
		}
		$debug(corq, 'Corq: Calling handler for item `' + typeName + '`');
		$debug(corq, item.data);
		var _next = function(){
			var freq = (corq.delay) ? corq.delayLength : corq.frequency;
			setTimeout(function(){
				$next(corq);
			}, freq);
		};
		var _success = function(){
			$debug(corq, 'Corq: Item processing SUCCESS `' + typeName + '` ');
			$debug(corq, item.data);
			$success(corq,item);
			_next();
		};
		var _fail = function(){
			$debug(corq, 'Corq: Item processing FAILURE `' + typeName + '` ');
			$debug(corq, item.data);
			$fail(corq, item);
			_next();
		};
		try {
			corq.callbacks[typeName](item.data, _success, _fail);
		}catch(e){
			$debug(corq, 'Corq: Error thrown by item processing function `' + typeName + '` ');
			$debug(corq, item.data);
			_fail();
			throw e;
		}
	}