Adds a replace part to the map of replace pairs.

        :param name: The name of the replace pair.
        :param value: The value of value of the replace pair.
555211
def _add_replace_pair(self, name, value, quote):
        
        key = '@' + name + '@'
        key = key.lower()

        class_name = value.__class__.__name__

        if class_name in ['int', 'float']:
            value = str(value)
        elif class_name in ['bool']:
            value = '1' if value else '0'
        elif class_name in ['str']:
            if quote:
                value = "'" + value + "'"
        else:
            self._io.log_verbose("Ignoring constant {} which is an instance of {}".format(name, class_name))

        self._replace_pairs[key] = value
1173090
protected void replaceValue(Map<String, Object> content, String key, Object value) {
		if (content.containsKey(key) && value != null) {
			content.put(key, value);
		}
	}
24472
public void addParameter( String name, String value )
    {
        if ( _additionalParameters == null )
        {
            _additionalParameters = new HashMap();
        }
        
        _additionalParameters.put( name, value );
    }
224882
def append(self, value):
        
        self.count += 1

        if self.count == 1:
            self.old_m = self.new_m = value
            self.old_s = 0
        else:
            self.new_m = self.old_m + (value - self.old_m) / self.count
            self.new_s = self.old_s + (value - self.old_m) * (value - self.new_m)

            self.old_m = self.new_m
            self.old_s = self.new_s
219287
void appendProperty( @Nonnull String name, @Nonnull Expression value ) {
        if( output == null ) {
            throw new LessException( "Properties must be inside selector blocks, they cannot be in the root." );
        }
        insets();
        name = SelectorUtils.replacePlaceHolder( this, name, value );
        output.append( name ).append( ':' );
        space();
        value.appendTo( this );
        if( state.importantCount > 0 || value.isImportant() ) {
            output.append( " !important" );
        }
        semicolon();
        newline();
    }
180477
public void setValueFor(Object value, String name) {
        getMapHelper().setValueForIn(value, name, getCurrentValues());
    }
825729
public void addValueTo(Object value, String name) {
        getMapHelper().addValueToIn(value, name, getCurrentValues());
    }
500392
public void setParameter(String name, Object value) {
        parameters.put(name, value);
        transformation.addParameter(name, value);
    }
1088863
def rename(self, name):
        
        if name is None:
            raise Exception("name (%s) not-valid" % (name,))
        self.prefix, self.name = splitPrefix(name)
941426
public V replace(K key, V value) {
        if (value == null) {
            throw new NullPointerException();
        }
        int hash = this.hashOf(key);
        return this.segmentFor(hash).replace(key, hash, value);
    }
582298
def replace_matcher(part, new_matcher)
      key = key_for(part)
      @components[key] = new_matcher.with_attribute(:name => /\(#{key}\)/)
    end
1205299
public boolean add(String name, Object value)
    {
        if(name == null)
            throw new NullPointerException("name == null");
        add(name);
        add(value.toString());
        return true;
    }
277560
def _replaced(__values, **__replacements):
    
    return tuple(o for o in (__replacements.get(name, name) for name in __values) if o)
975404
public static Pair<String, String> pair (final String name, 
        final boolean value)
        {
        return pair(name, String.valueOf(value));
        }
590137
def add(self, name, value):
        ''''''
        normalized_name = normalize_name(name, self._normalize_overrides)
        self._map[normalized_name].append(value)
91024
public void addValueToIn(Object value, String name, Map<String, Object> map) {
        getMapHelper().addValueToIn(value, name, map);
    }
2970
@Deprecated
    public static Part<String> param(String name, String value) {
        return text(name, value);
    }