Set the value for a pair of terms.

        Args:
            term1 (str)
            term2 (str)
            value (mixed)
2025
def set_pair(self, term1, term2, value, **kwargs):

        

        key = self.key(term1, term2)
        self.keys.update([term1, term2])
        self.pairs[key] = value
550014
public void setFields(T0 value0, T1 value1, T2 value2) {
		this.f0 = value0;
		this.f1 = value1;
		this.f2 = value2;
	}
1094272
def set_value(self, value):
        
        self._value = value
        setattr(self.target, self._name, value)
1373732
public void addTerm(Term term) {
        // 是否有数字
        if (!hasNum && term.termNatures().numAttr.numFreq > 0) {
            hasNum = true;
        }
        // 是否有人名
        if (!hasPerson && term.termNatures().personAttr.flag) {
            hasPerson = true;
        }
        TermUtil.insertTerm(terms, term, InsertTermType.REPLACE);

    }
290267
def P1(self, value):
        """"""
        if value < self.P2:
            self._P1 = value
        else:
            raise InvalidFirstDisparityChangePenaltyError("P1 must be less "
                                                          "than P2.")
        self._replace_bm()
999235
protected boolean setContainsGeneralTerm(Set<String> set, String term)
	{
		for (String s : set)
		{
			if (s.contains(term)) return true;
		}
		return false;
	}
433500
def set(self, num):
        
        self._value = str(round(float(num), self.nplaces))
        self._variable.set(self._value)
701097
def up_to(self, term: str) -> str:
        
        end = self.input.find(term, self.offset)
        if end < 0:
            raise EndOfInput(self)
        res = self.input[self.offset:end]
        self.offset = end + 1
        return res
1359529
def setterm(self, term):
        ""
        log.debug("Setting termtype to %s" % (term, ))
        curses.setupterm(term) # This will raise if the termtype is not supported
        self.TERM = term
        self.ESCSEQ = {}
        for k in self.KEYS.keys():
            str = curses.tigetstr(curses.has_key._capability_names[k])
            if str:
                self.ESCSEQ[str] = k
        # Create a copy to prevent altering the class
        self.CODES = self.CODES.copy()
        self.CODES['DEOL'] = curses.tigetstr('el')
        self.CODES['DEL'] = curses.tigetstr('dch1')
        self.CODES['INS'] = curses.tigetstr('ich1')
        self.CODES['CSRLEFT'] = curses.tigetstr('cub1')
        self.CODES['CSRRIGHT'] = curses.tigetstr('cuf1')
1169775
def _term(self, term):
        
        # All terms must be strings for Elasticsearch
        term = str(term)
        if term:
            self.__query["q"] += term
        return self
1347829
def _or_join(self, terms):
        
        from six import text_type

        if isinstance(terms, (tuple, list)):
            if len(terms) > 1:
                return ' | '.join(text_type(t) for t in terms)
            else:
                return terms[0]
        else:
            return terms
1344507
private function _setMulti($value, $name1, $name2 = null)
    {
        $args = func_get_args();
        array_shift($args);
        foreach ($args as $key) {
            $this->offsetSet($key, $value);
        }
    }
92678
public void set(double x1, double y1, double x2, double y2)
    {
        this.x1 = x1;
        this.y1 = y1;
        this.x2 = x2;
        this.y2 = y2;
    }
197286
def p_term_list(self, p):
        ''''''
        if p[1] is None:
            p[0] = []
        elif len(p) == 4:
            p[1].append(p[3])
            p[0] = p[1]
        elif len(p) == 2:
            p[0] = [p[1]]
483314
def _edits2(word: str) -> Set[str]:
    
    return set(e2 for e1 in _edits1(word) for e2 in _edits1(e1))
1251296
def Shift(self, term):
        
        new = self.Copy()
        new.xs = [x + term for x in self.xs]
        return new
149614
def set_value(self, value):
        
        parsed_value = self._parse_value(value)
        self.value = parsed_value