comment for other criteria
514576
public function prepareCriteria($criteria)
    {
        if (is_null($criteria)) {
            $criteria = array();
        }

        if (array_key_exists('$id', $criteria)) {
            $criteria['id'] = $criteria['$id'];
            unset($criteria['$id']);
        }

        return $criteria ? : array();
    }
54049
def comment(row, col, sheet = nil)
      key = normalize(row, col)
      sheet_for(sheet).comments[key]
    end
1232520
function checkCommentForSuppress(node) {
      // Skip if types aren't provided or the comment is empty.
      if (!node || !node.value || node.value.length === 0) {
        return;
      }

      const match = node.value.match(/@suppress \{(.*?)\}/);
      if (match && match.length === 2) {
        if (!blacklistedTypes || blacklistedTypes.length === 0) {
          // Array is not present or empty, so block all types.
          context.report(node, '@suppress not allowed for any types');
        } else {
          // Report which matched types are blocked.
          const matched = [];
          const types = match[1].split('|');
          types.forEach(function(type) {
            if (blacklistedTypes.indexOf(type) !== -1 && matched.indexOf(type) === -1) {
              matched.push(type);
            }
          });

          if (matched.length > 0) {
            const typeString = matched.join(', ');
            context.report(node, `@suppress not allowed for: ${typeString}`);
          }
        }
      }
    }
1237826
function(whereCriteria) {

    if (!this._alreadyInitiallyExpandedCriteria) {
      this._wlQueryInfo.criteria = expandWhereShorthand(this._wlQueryInfo.criteria);
      this._alreadyInitiallyExpandedCriteria = true;
    }//>-

    this._wlQueryInfo.criteria.where = whereCriteria;

    return this;
  }
762854
private function addFilterCriteria()
    {
        $filters = $this->dm->getFilterCollection()->getFilterCriteria($this->class);

        foreach ($filters as $filter) {
            $this->addCriteria($filter);
        }
    }
359820
def hassuggestions(self,allowempty=False):
        """"""
        for e in self.select(Suggestion,None,False, False):
            if not allowempty and len(e) == 0: continue
            return True
        return False
13779
def get_requirements(*args):
    """"""
    requirements = set()
    contents = get_contents(*args)
    for line in contents.splitlines():
        # Strip comments.
        line = re.sub(r'^#.*|\s#.*', '', line)
        # Ignore empty lines
        if line and not line.isspace():
            requirements.add(re.sub(r'\s+', '', line))
    return sorted(requirements)
332244
def _add_q(self, q_object):
        """"""
        self._criteria = self._criteria._combine(q_object, q_object.connector)
411661
private void appendInCriteria(TableAlias alias, PathInfo pathInfo, InCriteria c, StringBuffer buf)
    {
        appendColName(alias, pathInfo, c.isTranslateAttribute(), buf);
        buf.append(c.getClause());

        if (c.getValue() instanceof Collection)
        {
            Object[] values = ((Collection) c.getValue()).toArray();
            int size = ((Collection) c.getValue()).size();

            buf.append("(");
            if (size > 0)
            {
                for (int i = 0; i < size - 1; i++)
                {
                    appendParameter(values[i], buf);
                    buf.append(",");
                }
                appendParameter(values[size - 1], buf);
            }
            buf.append(")");
        }
        else
        {
            appendParameter(c.getValue(), buf);
        }
    }
1320765
def paragraph_is_fully_commented(lines, comment, main_language):
    """"""
    for i, line in enumerate(lines):
        if line.startswith(comment):
            if line.startswith((comment + ' %', comment + ' ?', comment + ' !')) and is_magic(line, main_language):
                return False
            continue
        return i > 0 and _BLANK_LINE.match(line)
    return True
236880
protected void addCriteria(String column, String operator) {
    if (this.sbClause.length() == 0) {
      this.sbClause.append("WHERE");
    } else {
      this.sbClause.append(" AND");
    }
    this.sbClause.append(' ');
    this.sbClause.append(column);
    this.sbClause.append(' ');
    this.sbClause.append(operator);
    this.sbClause.append(" ?");
  }
44852
def match_comment(self):
        """"""
        match = self.match(r"<%doc>(.*?)</%doc>", re.S)
        if match:
            self.append_node(parsetree.Comment, match.group(1))
            return True
        else:
            return False
904217
function hasProblematicComments(node, sourceCode) {
  return (
    hasCommentBefore(node, sourceCode) ||
    hasCommentAfter(node, sourceCode) ||
    hasCommentInsideNonSpecifiers(node, sourceCode)
  )
}
1277114
function CommentFilter() {
        this.rules = [];
        this.modifiers = [];
        this.allowUnknownTypes = true;
        this.allowTypes = {
            '1': true,
            '2': true,
            '4': true,
            '5': true,
            '6': true,
            '7': true,
            '8': true,
            '17': true
        };
    }
1191362
protected void appendWhereClause(StringBuffer where, Criteria crit, StringBuffer stmt)
    {
        if (where.length() == 0)
        {
            where = null;
        }

        if (where != null || (crit != null && !crit.isEmpty()))
        {
            stmt.append(" WHERE ");
            appendClause(where, crit, stmt);
        }
    }
89619
def comment (self, s, **args):
        """"""
        self.writeln(s=u"# %s" % s, **args)
606274
def comment_set(self):
        
        ct = ContentType.objects.get_for_model(self.__class__)
        qs = Comment.objects.filter(
            content_type=ct,
            object_pk=self.pk)
        qs = qs.exclude(is_removed=True)
        qs = qs.order_by('-submit_date')
        return qs