Called by Quatrz.
424157
public void updateIndex() {

        if (!isEnabled()) {
            return;
        }

        final IndexWriterConfig indexWriterConfig = new IndexWriterConfig(new StandardAnalyzer());
        indexWriterConfig
                .setCommitOnClose(true)
                .setOpenMode(IndexWriterConfig.OpenMode.CREATE_OR_APPEND);

        try (IndexWriter indexWriter = new IndexWriter(directory, indexWriterConfig)) {
            final List<IPortletDefinition> portlets = portletRegistry.getAllPortletDefinitions();
            portlets.forEach(portlet -> indexPortlet(portlet, indexWriter));
        } catch (Exception e) {
            logger.error("Unable to update index", e);
        }
    }
909632
function f_urun_teklif_kontrol(_tahta_id, _urun_id) {
        return result.dbQ.smembers(result.kp.urun.ssetTeklifleri(_tahta_id, _urun_id));
    }
1209099
def _post_call(atdepth, package, fqdn, result, entry, bound, ekey, argl, argd):
    
    from time import time
    if not atdepth and entry is not None:
        ek = ekey
        if result is not None:
            retid = _tracker_str(result)
            if result is not None and not bound:
                ek = retid
                entry["r"] = None
            else:
                entry["r"] = retid
            
        name = fqdn.split('.')[-1]
        if filter_name(fqdn, package, "time"):
            entry["e"] = time() - entry["s"]
        if filter_name(fqdn, package, "analyze"):
            entry["z"] = analyze(fqdn, result, argl, argd)

        msg.info("{}: {}".format(ek, entry), 1)
        # Before we return the result, let's first save this call to the
        # database so we have a record of it.
        record(ek, entry)
        return (ek, entry)
    else:
        return (None, None)
1137028
def _pot_quat(self):
        """"""
        return T.convert_quat(self.sim.data.body_xquat[self.cube_body_id], to="xyzw")
644555
private QrCode.Mode updateModeLogic( QrCode.Mode current , QrCode.Mode candidate )
	{
		if( current == candidate )
			return current;
		else if( current == QrCode.Mode.UNKNOWN ) {
			return candidate;
		} else {
			return QrCode.Mode.MIXED;
		}
	}
1145665
def answered_by(self, rec):
        """"""
        return self.clazz == rec.clazz and \
                (self.type == rec.type or self.type == _TYPE_ANY) and \
                self.name == rec.name
51993
def called_from
      location = caller.detect('unknown:0') do |line|
        line.match(/\/liquid(-|\/)ext/).nil?
      end
      file, line, _ = location.split(':')
      { :file => file, :line => line }
    end
164033
def _on_item_activated(self, item):
        
        msg = item.data(QtCore.Qt.UserRole)
        self.msg_activated.emit(msg)
237468
public function call() {
		$resp = $this->app->response;
		foreach ( $this->headers as $name => $value ) {
			if ( is_callable( $value ) ) {
				$value = $value( $this->app );
			}

			if ( $value !== null ) {
				$resp->header( $name, $value );
			}
		}

		$this->next->call();
	}
663695
def caller(self, fun, **kwargs):
        '''
        
        '''
        self.client_cache['caller'].cmd(fun, *kwargs['arg'], **kwargs['kwarg'])
1177471
def not_called_with(self, *args, **kwargs):
        
        call = Call(*args, **kwargs)
        if call in calls(self.spy):
            raise VerificationError(
                'expected %s to not be called with %s, but it was' % (
                    self.spy, call.formatted_args))
        return True
1154346
public function call() {
    $callable = $this->getRouteCallable();
    if (empty($callable) || !$this->doesHaveAccessToMethod($callable[1])) {
      $this->getApp()->returnError(DefaultAppErrors::$NOT_AUTHORIZED);
    }

    if (!empty($this->next)) {
      $this->next->call();
    }
  }
681123
def _call(self, x, out=None):
        """"""
        if out is None:
            out = self.scalar * x
        else:
            out.lincomb(self.scalar, x)
        return out
498802
private void scanQuorums() {
        for (QuorumImpl quorum : quorums.values()) {
            if (quorum.isHeartbeatAware()) {
                this.heartbeatAware = true;
            }
            if (quorum.isPingAware()) {
                this.pingAware = true;
            }
        }
    }
814750
@Override
	public T call() throws Exception {
		logger.debug("task '{}' starting", id);		
		try {
			// do the real work 
			return task.execute();
		} finally {
			// signal that the task is complete
			logger.debug("task '{}' is complete (queue size: {})", id, queue.size());
			queue.offer(id);			
		}
	}
239076
def called_with(self, *args, **kwargs):
        
        expected_call = Call(*args, **kwargs)
        if expected_call in calls(self.spy):
            return True
        raise VerificationError(
            "expected %s to be called with %s, but it wasn't" % (
                self.spy, expected_call.formatted_args))
1215600
public function call()
    {
        try {
            $this->next->call();

            $app = $this->app;
            $response = $app->response;

            $status = $response->getStatus();

            // if status is not 404 (already handled on App::notFound)
            if ($this->app->config('bono.cli') || $status === 404 || ($status >= 300 && $status < 400)) {
                return;
            }

            $template = $response->template();
            $response->data('app', $app);

            $app->render($template, $response->data());

        } catch (\Slim\Exception\Stop $e) {
            // noop
        } catch (\Exception $e) {
            try {
                $this->app->error($e);
            } catch (\Slim\Exception\Stop $e) {
                // Do nothing
            }
        }
    }