Fires an end of array event.
17054
protected static void fireArrayEndEvent( JsonConfig jsonConfig ) {
      if( jsonConfig.isEventTriggeringEnabled() ){
         for( Iterator listeners = jsonConfig.getJsonEventListeners()
               .iterator(); listeners.hasNext(); ){
            JsonEventListener listener = (JsonEventListener) listeners.next();
            try{
               listener.onArrayEnd();
            }catch( RuntimeException e ){
               log.warn( e );
            }
         }
      }
   }
314489
public void endAllElements() throws KNXMLException
	{
		try {
			while (!layout.empty())
				((Tag) layout.pop()).endTag();
			w.flush();
		}
		catch (final IOException e) {
			throw new KNXMLException(e.getMessage());
		}
	}
800747
function(arr, value) {
        var inx = arr.indexOf(value);
        var endIndex = arr.length - 1;
        if (inx !== endIndex) {
            var temp = arr[endIndex];
            arr[endIndex] = arr[inx];
            arr[inx] = temp;
        }
        arr.pop();
    }
1017632
function end()
    {
        $data = ob_get_contents();
        ob_end_clean();
        $this->save($data, $this->_id, $this->_group);
        echo($data);
    }
964197
function (array) {
    return function (subscriber) {
        for (var i = 0, len = array.length; i < len && !subscriber.closed; i++) {
            subscriber.next(array[i]);
        }
        if (!subscriber.closed) {
            subscriber.complete();
        }
    };
}
616212
public void endOfData() {
		ArrayList<Runnable> list = null;
		synchronized (this) {
			end = true;
			if (waitingData.isEmpty()) {
				list = listeners;
				listeners = null;
			}
		}
		if (list != null) {
			for (Runnable listener : list) listener.run();
		}
		// notify after listeners
		synchronized (this) {
			this.notifyAll();
		}
	}
1047072
protected function onInputEnd()
    {
        $countRows = count($this->data);
        $storage = array();
        foreach ($this->params as $cKey=>$cValue) {
            $storage[$cKey] = array(
                "count"=>$countRows,
                "sum"=>0,
                "min"=>INF,
                "max"=>-INF,
            );
        }

        foreach ($this->data as $row) {
            foreach ($this->params as $cKey=>$cValue) {
                switch(strtolower($cValue[0]))
                {
                case "sum":
                case "avg":
                    $storage[$cKey]["sum"]+=$row[$cValue[1]];
                    break;
                case "min":
                    if ($storage[$cKey]["min"]>$row[$cValue[1]]) {
                        $storage[$cKey]["min"] = $row[$cValue[1]];
                    }
                    break;
                case "max":
                    if ($storage[$cKey]["max"]<$row[$cValue[1]]) {
                        $storage[$cKey]["max"] = $row[$cValue[1]];
                    }
                    break;
                }
            }
        }

        foreach ($this->data as &$row) {
            foreach ($this->params as $cKey=>$cValue) {
                switch(strtolower($cValue[0]))
                {
                case "count":
                    $row[$cKey] = $storage[$cKey]["count"];
                    break;
                case "sum":
                    $row[$cKey] = $storage[$cKey]["sum"];
                    break;
                case "min":
                    $row[$cKey] = $storage[$cKey]["min"];
                    break;
                case "max":
                    $row[$cKey] = $storage[$cKey]["max"];
                    break;
                case "avg":
                    if (!isset($storage[$cKey]["avg"])) {
                        $storage[$cKey]["avg"] = $storage[$cKey]["sum"]/$storage[$cKey]["count"];
                    }
                    $row[$cKey] = $storage[$cKey]["avg"];
                    break;
                case "acml":
                    if (!isset($storage[$cKey]["acml"])) {
                        $storage[$cKey]["acml"] = 0;
                    }
                    $row[$cKey] = $storage[$cKey]["acml"]+$row[$cValue[1]];
                    $storage[$cKey]["acml"] = $row[$cKey];
                    break;
                }
            }
        }
        while ($item = array_shift($this->data)) {
            $this->next($item);
        }
    }
1094369
@Override
    public void end() {
        mTerminated = true;
        if (isStarted()) {
            if (mSortedNodes.size() != mNodes.size()) {
                // hasn't been started yet - sort the nodes now, then end them
                sortNodes();
                for (Node node : mSortedNodes) {
                    if (mSetListener == null) {
                        mSetListener = new AnimatorSetListener(this);
                    }
                    node.animation.addListener(mSetListener);
                }
            }
            if (mDelayAnim != null) {
                mDelayAnim.cancel();
            }
            if (mSortedNodes.size() > 0) {
                for (Node node : mSortedNodes) {
                    node.animation.end();
                }
            }
            if (mListeners != null) {
                ArrayList<AnimatorListener> tmpListeners =
                        (ArrayList<AnimatorListener>) mListeners.clone();
                for (AnimatorListener listener : tmpListeners) {
                    listener.onAnimationEnd(this);
                }
            }
            mStarted = false;
        }
    }
227807
protected void fireEditingStopped() {
        // Guaranteed to return a non-null array
        Object[] listeners = listenerList.getListenerList();
        // Process the listeners last to first, notifying
        // those that are interested in this event
        for (int i = listeners.length-2; i>=0; i-=2) {
            if (listeners[i]==CellEditorListener.class) {
                ((CellEditorListener)listeners[i+1]).editingStopped(new ChangeEvent(this));
            }
        }
    }
1070616
def fire(self, *args, **kwargs):
        """"""
        if self.eventmanager:
            # Fire global event. Assuming we have an eventmanager.
            self.eventmanager.got_event(self.name, *args, **kwargs)

        for handler in self:  # Iterate over handlers
            try:
                handler(*args, **kwargs)  # Execute handler with given args.
            except StopIteration:  # Stop iterating if handler raised StopIter
                break
247911
protected void fireEndElem(String name)
        throws org.xml.sax.SAXException
    {
        if (m_tracer != null)
        {
            flushMyWriter();
            m_tracer.fireGenerateEvent(SerializerTrace.EVENTTYPE_ENDELEMENT,name, (Attributes)null);
        }     	        	    	
    }
780089
function end(cb) {
  if(typeof cb === 'function') {
    this.once('disconnect', cb);
  }

  if(this.tcp) {
    // must call destroy to terminate immediately
    this._socket.destroy();
  }else{
    this._socket.end();
  }
}
1063788
protected function onInputEnd()
    {
        //Send meta
        $countRow = count($this->data);
        $newMeta = array(
            "columns" => array(),
        );
        for ($i = 0; $i <= $countRow; $i++) {
            $newMeta["columns"]["c$i"] = array("type" => "unknown");
        }
        $newMeta["columns"]["c0"]["type"] = "string";
        $this->sendMeta($newMeta);

        $keys = ($countRow > 0) 
            ? array_keys($this->data[0]) : array_keys($this->metaData["columns"]);

        //Send each rows
        foreach ($keys as $cKey) {
            $row = array("c0" => isset($this->metaData["columns"][$cKey]["label"]) 
                ? $this->metaData["columns"][$cKey]["label"] : $cKey);
            for ($i = 0; $i < $countRow; $i++) {
                $row["c" . ($i + 1)] = $this->data[$i][$cKey];
                unset($this->data[$i][$cKey]);
            }
            $this->next($row);
        }
    }
1097616
@Override
    public void end(final Xid _xid,
                    final int _flags)
    {
        AbstractResource.LOG.trace("end resource {}, flags {}" + _flags, _xid, _flags);
    }
1267755
public function end()
    {
        /**
         * This event is triggered after archiving.
         *
         * @param CronArchive $this
         */
        Piwik::postEvent('CronArchive.end', array($this));

        if (empty($this->errors)) {
            // No error -> Logs the successful script execution until completion
            Option::set(self::OPTION_ARCHIVING_FINISHED_TS, time());
            return;
        }

        $this->logSection("SUMMARY OF ERRORS");
        foreach ($this->errors as $error) {
            // do not logError since errors are already in stderr
            $this->logger->info("Error: " . $error);
        }

        $summary = count($this->errors) . " total errors during this script execution, please investigate and try and fix these errors.";
        $this->logFatalError($summary);
    }
431213
public synchronized void fireEvent(Event evt) {
		if (evt == null) {
			return;
		}

		// Process global listeners
		for (Enumeration<EventListener> keys = globalListeners.elements(); keys
				.hasMoreElements();) {
			EventListener mListener = keys.nextElement();
			try {
				mListener.processEvent(evt);
			} catch (Throwable t) {
			}
		}

		String sourceThread = Thread.currentThread().getName();

		for (Enumeration<String> keys = keyedListeners.keys(); keys
				.hasMoreElements();) {
			String key = (String) keys.nextElement();
			// We don't want badly behaved listeners to throw uncaught
			// exceptions and upset other listeners
			try {
				String prefix = "";
				if (sourceThread.indexOf('-') > -1) {
					prefix = sourceThread.substring(0,
							sourceThread.indexOf('-'));

					if (key.startsWith(prefix)) {
						EventListener mListener = keyedListeners.get(key);
						mListener.processEvent(evt);
					}
				}

			} catch (Throwable thr) {
				// log.error("Event failed.", thr);
			}
		}
	}
1197825
protected void fireMySelectionChanged(MyListSelectionEvent event)
    {
        this.selectionChanged(event.getSource(), event.getRow(), event.getRow(), event.getType());  // Make sure model knows
        // Guaranteed to return a non-null array
        Object[] listeners = listenerList.getListenerList();
        // Process the listeners last to first, notifying
        // those that are interested in this event
        for (int i = listeners.length-2; i>=0; i-=2)
        {
            if (listeners[i] == MyListSelectionListener.class)
                if (listeners[i] != event.getSource())  // Don't send it back to source
            { // Send this message
                ((MyListSelectionListener)listeners[i+1]).selectionChanged(event);
            }
        }
    }