Check the record locally.
425538
public boolean doLocalCriteria(StringBuffer strbFilter, boolean bIncludeFileName, Vector<BaseField> vParamList)
    {
        Integer objTargetValue = (Integer)m_fldToCompare.getData();
        if (m_fldRecordTarget == null)
            m_fldRecordTarget = this.getOwner().getField(m_fsRecordTarget);
        Integer objRecordValue = (Integer)m_fldRecordTarget.getData();
        int iTargetValue = 0;
        if (objTargetValue != null)
            iTargetValue = objTargetValue.intValue();
        int iRecordValue = 0;
        if (objRecordValue != null)
            iRecordValue = objRecordValue.intValue();
        int iMask = BitReferenceField.ALL_TABLES;
        if (m_fldToCompare instanceof BitReferenceField)
             iMask = ((BitReferenceField)m_fldToCompare).getBitsToCheck();
        boolean bCheckForMatch = true;
        if (m_bNoFilterIfAll)
            if (iTargetValue == -1)
                bCheckForMatch = false;    // No filter
        if (m_bNoFilterIfNone)
            if (iTargetValue == ~iMask)
                bCheckForMatch = false;    // No filter
        if (bCheckForMatch)
            if ((iMask & iTargetValue & iRecordValue) == 0)
                return false;   // No match
        return super.doLocalCriteria(strbFilter, bIncludeFileName, vParamList);
    }
1144845
function done( error ) {
				if ( error ) {
					next( error );
					return;
				}
				if ( !request.hasOwnProperty( 'locals' ) ) {
					request.locals = {};
				}
				request.locals.monitor = metrics;
				next();
			}
725284
def checkin(self):
        """"""
        self._query_instance.checkin(self.place_id,
                                     self._query_instance.sensor)
1274634
public void monitor(LocalStore ls) {
    int in = 0;
    EventRecord er = null;
    Environment.logInfo("Started processing log...");

    while ((er = getNext()) != null) {
      // Environment.logInfo("Processing log line:\t" + in++);
      if (er.isValid()) {
        ls.insert(er);
      }
    }

    PersistentState.updateState(file.getAbsolutePath(), firstLine, offset);
    PersistentState.writeState("conf/parsing.state");
  }
1174252
def check_all_local(self):
        """"""
        all_local_chk = self.event['global']['all_local'].isChecked()
        for buttons in self.event['local'].values():
            buttons[0].setChecked(all_local_chk)
            buttons[1].setEnabled(buttons[0].isChecked())
1190811
def records(self):
        """"""

        return (self._session.query(Process)
                .filter(Process.d_vid == self._d_vid)).all()
448329
def check_elasticsearch(record, *args, **kwargs):
    
    def can(self):
        """Try to search for given record."""
        search = request._methodview.search_class()
        search = search.get_record(str(record.id))
        return search.count() == 1

    return type('CheckES', (), {'can': can})()
955663
public function onLocalRecordsFirstRecord(Record $record, $records, $position, BaseRecords $baseRecords)
    {
        if (!$this->checkRecordPlugin($baseRecords)) {
            return;
        }

        $this->updater->setLocalRecord($record->getPlayer()->getNickname(), $record->getCheckpoints());
    }
697014
def record(self, i=0):
        """"""
        f = self.__getFileObj(self.dbf)
        if self.numRecords is None:
            self.__dbfHeader()
        i = self.__restrictIndex(i)
        recSize = self.__recStruct.size
        f.seek(0)
        f.seek(self.__dbfHdrLength + (i * recSize))
        return self.__record(oid=i)
227907
def local_check (self):
        
        if not self.host:
            self.set_result(_("Host is empty"), valid=False)
            return
        super(TelnetUrl, self).local_check()
625749
def _get_record(self, record_type):
        """"""
        if not self.has_record_type(record_type):
            raise errors.Unsupported()
        if str(record_type) not in self._records:
            raise errors.Unimplemented()
        return self._records[str(record_type)]
115226
public void check(final List<TransportCandidate> localCandidates) {
        // TODO candidate is being checked trigger
        // candidatesChecking.add(cand);

        Thread checkThread = new Thread(new Runnable() {
            @Override
            public void run() {
                boolean isUsable;


                try {
                    // CHECKSTYLE:OFF
                    InetAddress candAddress = InetAddress.getByName(getIp());
                    // CHECKSTYLE:ON
                    isUsable = true;//candAddress.isReachable(TransportResolver.CHECK_TIMEOUT);
                }
                catch (Exception e) {
                    isUsable = false;
                }
                triggerCandidateChecked(isUsable);

                // TODO candidate is being checked trigger
                // candidatesChecking.remove(cand);
            }
        }, "Transport candidate check");

        checkThread.setName("Transport candidate test");
        checkThread.start();
    }
719365
def _guess_record(self, rtype, name=None, content=None):
        """"""
        records = self._list_records_internal(
            identifier=None, rtype=rtype, name=name, content=content)
        if len(records) == 1:
            return records[0]
        if len(records) > 1:
            raise Exception(
                'Identifier was not provided and several existing '
                'records match the request for {0}/{1}'.format(rtype, name))
        raise Exception(
            'Identifier was not provided and no existing records match '
            'the request for {0}/{1}'.format(rtype, name))
858652
def record_is_valid(record):
    ""

    # No random contigs
    if record.CHROM.startswith('GL'):
        return False

    # Skip results with a read depth < 5. If no read depth is specified then
    # we have no choice but to consider this record as being valid.
    if 'DP' in record.INFO and record.INFO['DP'] < 5:
        return False

    return True
1041764
def _check_local_option(self, option):
        """"""
        if not self.telnet_opt_dict.has_key(option):
            self.telnet_opt_dict[option] = TelnetOption()
        return self.telnet_opt_dict[option].local_option
931762
def on_copy_local(self, pair):
        """"""
        status = pair.remote_classification
        self._log_action("copy", status, ">", pair.local)
704727
def local_check (self):
        """"""
        log.debug(LOG_CHECK, "Checking %s", unicode(self))
        # strict extern URLs should not be checked
        assert not self.extern[1], 'checking strict extern URL'
        # check connection
        log.debug(LOG_CHECK, "checking connection")
        try:
            self.check_connection()
            self.set_content_type()
            self.add_size_info()
            self.aggregate.plugin_manager.run_connection_plugins(self)
        except tuple(ExcList) as exc:
            value = self.handle_exception()
            # make nicer error msg for unknown hosts
            if isinstance(exc, socket.error) and exc.args[0] == -2:
                value = _('Hostname not found')
            elif isinstance(exc, UnicodeError):
                # idna.encode(host) failed
                value = _('Bad hostname %(host)r: %(msg)s') % {'host': self.host, 'msg': str(value)}
            self.set_result(unicode_safe(value), valid=False)