--------------------------------------------------------------------------- config.setproper()    設定値の型を正しいものに変換して設定変更する ---------------------------------------------------------------------------
439051
function(names, newval){
		var name = names.name;
		var item = this.list[name];
		switch(typeof item.defval){
			case "boolean": newval = !!newval;  break;
			case "number":  newval = +newval;   break;
			case "string":  newval = ""+newval; break;
		}
		if(!item.option || (item.option.indexOf(newval)>=0)){
			if(!!item.variety){
				item.variety[names.pid!==void 0 ? names.pid : this.puzzle.pid] = newval;
			}
			else{ item.val = newval;}
		}
		return item.val;
	}
553452
function(){
		/* "ものを動かしたように描画する"でなければinputLineと同じ */
		if(this.puzzle.execConfig('dispmove')){
			this.inputMoveLine();
			return;
		}
		
		var pos, border;
		if(!this.board.borderAsLine){
			pos = this.getpos(0);
			if(this.prevPos.equals(pos)){ return;}
			border = this.prevPos.getnb(pos);
		}
		else{
			pos = this.getpos(0.35);
			if(this.prevPos.equals(pos)){ return;}
			border = this.prevPos.getborderobj(pos);
		}
		
		if(!border.isnull){
			if(this.inputData===null){ this.inputData=(border.isLine()?0:1);}
			if     (this.inputData===1){ border.setLine();}
			else if(this.inputData===0){ border.removeLine();}
			border.draw();
		}
		this.prevPos = pos;
	}
583144
function Dialog(id, options) {
                this._template = null;
                this._settings = null;
                this._$dialog = null;
                // Dialog 共通設定の初期化
                Dialog.initCommonCondition();
                // 設定を更新
                this._settings = $.extend({}, Dialog.s_defaultOptions, options);
                // ダイアログテンプレートを作成
                this._template = CDP.Tools.Template.getJST(id, this._settings.src);
            }
1213532
function formatArrayArgs(config) {
  ["ids", "tags", "add"].forEach(key => {
    if (config[key]) {
      try {
        if(key == "tags"){
          config[key] = config[key].split(",");
        }else {
          config[key] = JSON.parse(`[${config[key]}]`);
        }
      } catch (e) {
        logger.log("error",{message:`输入${key}有误，请确定输入为数字，或以','分割的数字`});
        process.exit(-1); // 直接退出进程
      }
    }
  });
}
438863
function() {
		var config = $.extend( true, {}, this.config );
		config.content = [];
		var next = function( configNode, item ) {
			var key, i;
			
			for( key in item.config ) {
				if( key !== 'content' ) {
					configNode[ key ] = item.config[ key ];
				}
			}

			if( item.contentItems.length ) {
				configNode.content = [];
				
				for( i = 0; i < item.contentItems.length; i++ ) {
					configNode.content[ i ] = {};
					next( configNode.content[ i ], item.contentItems[ i ] );
				}
			}
		};

		next( config, this.root );

		return config;
	}
604068
function (name, value) {
            var self = this, setValue,
                // if host does not have meta info corresponding to (name,value)
                // then register on demand in order to collect all data meta info
                // 一定要注册属性元数据，否则其他模块通过 _attrs 不能枚举到所有有效属性
                // 因为属性在声明注册前可以直接设置值
                attrConfig = ensureNonEmpty(self.getAttrs(), name), setter = attrConfig.setter;    // if setter has effect
            // if setter has effect
            if (setter && (setter = normalFn(self, setter))) {
                setValue = setter.call(self, value, name);
            }
            if (setValue === INVALID) {
                return FALSE;
            }
            if (setValue !== undefined) {
                value = setValue;
            }    // finally set
            // finally set
            getAttrVals(self)[name] = value;
            return undefined;
        }
792860
private void readConfig() {
        //避免循环引用，Log初始化的时候不使用相关工具类
        InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream("logging.properties");
        if (null == in) {
            System.err.println("not found logging.properties, use internal config!");
            return;
        }

        try {
            LogManager.getLogManager().readConfiguration(in);
        } catch (Exception e) {
            e.printStackTrace();
            try {
                LogManager.getLogManager().readConfiguration();
            } catch (Exception e1) {
                e.printStackTrace();
            }
        } finally {
            if (in != null) {
                try {
                    in.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }
166555
function(object, defaultValue, property) {
        if (!_.isUndefined(defaultValue)) {
            object.__setPropertyParam(property, 'default', defaultValue);
        }
    }
542843
function setValue(value) {
            value = this.beforeSetValue(value);
            this.trueValue = this.formater ? this.formater.format(value) : value;
            this.showValue = this.masker ? this.masker.format(this.trueValue).value : this.trueValue;
            this.setShowValue(this.showValue);
            this.slice = true;
            if (parseInt(this.options.rowIndex) > -1) {
                if ((this.options.rowIndex + '').indexOf('.') > 0) {
                    var childObj = this.getChildVariable();
                    var lastRow = childObj.lastRow;
                    var lastField = childObj.lastField;
                    if (lastRow) lastRow.setValue(lastField, this.trueValue);
                } else {
                    var rowObj = this.dataModel.getRow(this.options.rowIndex);
                    if (rowObj) rowObj.setValue(this.field, this.trueValue, undefined, undefined, this.validType); //增加validType参数--胡玥修改
                }
            } else {
                this.dataModel.setValue(this.field, this.trueValue, undefined, undefined, this.validType); //增加validType参数--胡玥修改
            }
            this.slice = false;
        }
552489
public static void config(String host, String personal, String from, String key) {
        setHost(host);
        setPersonal(personal);
        setFrom(from);
        setKey(key);
    }
1357342
function (localConfig, propertyName, propertyObject) {
    var presetCheck = defaultConfig.presets[propertyName][propertyObject];
    if (presetCheck) return $.extend(true, {}, presetCheck, localConfig);
    return localConfig
  }
726918
public function setConfig($config, $value = '')
    {
        if (is_array($config)) {
            $this->config = array_merge($this->config, $config);
        } else {
            $this->config[$config] = $value;
        }
    }
1264262
public void setDataFormat(final String settingPattern, final String defaultPattern,
            final CellFormatter cellFormatter) {

        String currentPattern = POIUtils.getCellFormatPattern(cell, cellFormatter);

        if(Utils.isNotEmpty(settingPattern)) {
            // アノテーションで書式が指定されている場合、更新する
            setDataFormat(settingPattern, cellFormatter);

        } else if(currentPattern.isEmpty() || currentPattern.equalsIgnoreCase("general")) {
            // セルの書式が設定されていない場合、デフォルトの値で更新する
            setDataFormat(defaultPattern, cellFormatter);

        }

    }
745818
function setValue(sName, sValue) {
				if ( typeof sValue === "undefined" || sValue === null ) {
					return;
				}
				switch (M_SETTINGS[sName].type) {
				case "boolean":
					if ( typeof sValue === "string" ) {
						if (M_SETTINGS[sName].defaultValue) {
							config[sName] = sValue.toLowerCase() != "false";
						} else {
							config[sName] = sValue.toLowerCase() === "true" || sValue.toLowerCase() === "x";
						}
					} else {
						// boolean etc.
						config[sName] = !!sValue;
					}
					break;
				case "string":
					config[sName] = "" + sValue; // enforce string
					break;
				case "code":
					config[sName] = typeof sValue === "function" ? sValue : String(sValue);
					break;
				case "function":
					if ( typeof sValue !== "function" ) {
						throw new Error("unsupported value");
					}
					config[sName] = sValue;
					break;
				case "string[]":
					if ( Array.isArray(sValue) ) {
						config[sName] = sValue;
					} else if ( typeof sValue === "string" ) {
						config[sName] = sValue.split(/[ ,;]/).map(function(s) {
							return s.trim();
						});
					} else {
						throw new Error("unsupported value");
					}
					break;
				case "object":
					if ( typeof sValue !== "object" ) {
						throw new Error("unsupported value");
					}
					config[sName] = sValue;
					break;
				case "Locale":
					var oLocale = convertToLocaleOrNull(sValue);
					if ( oLocale || M_SETTINGS[sName].defaultValue == null ) {
						config[sName] = oLocale;
					} else {
						throw new Error("unsupported value");
					}
					break;
				default:
					// When the type is none of the above types, check if an object as enum is provided to validate the value.
					var vType = M_SETTINGS[sName].type;
					if (typeof vType === "object") {
						checkEnum(vType, sValue, sName);
						config[sName] = sValue;
					} else {
						throw new Error("illegal state");
					}
				}
			}
495575
private static void setIfUnset(JobConf conf, String key, String value) {
    if (conf.get(key) == null) {
      conf.set(key, value);
    }
  }
1219500
protected void makeConstParamMap(final Map<String, Parameter> paramMap, final Class<?> targetClass) {
		try {
			String fieldPrefix = targetClass.isMemberClass() ? CaseFormat.UPPER_SNAKE_CASE
					.convert(targetClass.getSimpleName()) + "_" : "";
			// 指定されたクラス直下の定数フィールドを追加
			Field[] fields = targetClass.getFields();
			for (Field field : fields) {
				int mod = field.getModifiers();
				if (Modifier.isFinal(mod) && Modifier.isStatic(mod)) {
					Object value = field.get(null);
					if (parameterMapperManager.canAcceptByStandard(value)) {
						String fieldName = getConstParamPrefix() + fieldPrefix + field.getName();
						fieldName = fieldName.toUpperCase();
						Parameter newValue = new Parameter(fieldName, field.get(null));
						Parameter prevValue = paramMap.put(fieldName, newValue);
						if (prevValue != null) {
							LOG.warn("Duplicate constant name. Constant name:{}, Old name:{} destroy.", fieldName,
									prevValue.getValue());
						}
						LOG.debug("Constant [name:{}, value:{}] added to parameter.", fieldName, newValue.getValue());
					}
				}
			}

			// 内部クラスを持つ場合
			Class<?>[] memberClasses = targetClass.getDeclaredClasses();
			for (Class<?> memberClass : memberClasses) {
				int mod = memberClass.getModifiers();
				if (Modifier.isFinal(mod) && Modifier.isPublic(mod)) {
					makeConstParamMap(paramMap, memberClass);
				}
			}
		} catch (IllegalArgumentException | IllegalAccessException | SecurityException ex) {
			LOG.error(ex.getMessage(), ex);
		}
	}
344212
function(type, args, obj) {
            var val = Lang.merge(DEFAULT_CONFIG.STRINGS.value, args[0]);
            this.cfg.setProperty(DEFAULT_CONFIG.STRINGS.key, val, true);
        }