<commit_before>

## 复杂表达式

### 复杂条件表达式

#### 示例 1

```js
if (!((score > 700) || ((income >=40000) && (income <= 100000) && (score > 500)) || (income > 100000)))
	console.log("反对");
else
	console.log("接受");
```

问题：

根据上面的判断条件，填写以下表格（“接受”还是“反对”）。

| 		 |  income > 100000  | 100000 >= income >= 40000 | 40000 > income  |
|--------|--------|--------------|--------|----------|
| score > 700  | 	  |        |     |
| 700 >= score >= 500  | 	  |        |     |
| 500 > score  | 	  |        |     |


#### 示例 2

某保险费率程序：

```js
if ('Male' === gendar) {
	if ('single' === maritalStatus) {
		if (age < 16) {
			rate = 70.0;
		} else if (age < 30) {
			rate = 95.0
		} else if (age < 55) {
			rate = 400.0
		} else if (age < 80) {
			rate = 600.0
		} else {
			rate = 1000.0
		}
	} else
		if (age < 13) {
			rate = 250.0;
		} else if (age < 23) {
			rate = 300.0
		} else if (age < 60) {
			rate = 600.0
		} else if (age < 80) {
			rate = 900.0
		} else {
			rate = 1000.0
		}
	}
} else {
	if ('single' === maritalStatus) {
		if (age < 11) {
			rate = 80.0;
		} else if (age < 31) {
			rate = 90.0
		} else if (age < 60) {
			rate = 400.0
		} else if (age < 85) {
			rate = 600.0
		} else {
			rate = 1000.0
		}
	} else
		// 其他
	}
}
```

#### 示例 3

```js
if (rate < 0.37963) {
	console.log("a1");
} else if (rate < 0.39003) {
	console.log("a1");
} else if (rate < 0.48925) {
	console.log("a1");
} else if (rate < 0.51298) {
	console.log("a1");
} else if (rate < 0.55702) {
	console.log("a1");
} else if (rate < 0.61293) {
	console.log("a1");
} else if (rate < ...) {
	// 其他
	// ...
	// ...
	// ...
} else {
	console.log("an");
}


```

### 总结

表驱动：

* 直接访问
* 索引访问
* 阶梯访问


<commit_msg>Update conditions.md<commit_after>

## 复杂表达式

### 复杂条件表达式

#### 示例 1

```js
if (!((score > 700) || ((income >=40000) && (income <= 100000) && (score > 500)) || (income > 100000)))
	console.log("反对");
else
	console.log("接受");
```

问题：

根据上面的判断条件，填写以下表格（“接受”还是“反对”）。

| 		 |  income > 100000  | 100000 >= income >= 40000 | 40000 > income  |
|--------|--------|--------------|--------|----------|
| score > 700  | 	  |        |     |
| 700 >= score >= 500  | 	  |        |     |
| 500 > score  | 	  |        |     |


#### 示例 2

某保险费率程序：

```js
if ('Male' === gendar) {
	if ('single' === maritalStatus) {
		if (age < 16) {
			rate = 70.0;
		} else if (age < 30) {
			rate = 95.0
		} else if (age < 55) {
			rate = 400.0
		} else if (age < 80) {
			rate = 600.0
		} else {
			rate = 1000.0
		}
	} else
		if (age < 13) {
			rate = 250.0;
		} else if (age < 23) {
			rate = 300.0
		} else if (age < 60) {
			rate = 600.0
		} else if (age < 80) {
			rate = 900.0
		} else {
			rate = 1000.0
		}
	}
} else {
	if ('single' === maritalStatus) {
		if (age < 11) {
			rate = 80.0;
		} else if (age < 31) {
			rate = 90.0
		} else if (age < 60) {
			rate = 400.0
		} else if (age < 85) {
			rate = 600.0
		} else {
			rate = 1000.0
		}
	} else
		// 其他
	}
}
```

#### 示例 3

```js
if (rate < 0.37963) {
	console.log("a1");
} else if (rate < 0.39003) {
	console.log("a2");
} else if (rate < 0.48925) {
	console.log("a3");
} else if (rate < 0.51298) {
	console.log("a4");
} else if (rate < 0.55702) {
	console.log("a5");
} else if (rate < 0.61293) {
	console.log("a6");
} else if (rate < ...) {
	// 其他
	// ...
	// ...
	// ...
} else {
	console.log("an");
}


```

### 总结

表驱动：

* 直接访问
* 索引访问
* 阶梯访问



{'fraction_non_alphanumeric': 0.25141326986016066, 'fraction_numerical': 0.11008628384409402, 'mean_word_length': 1.8040033361134278, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2613055', 'n_tokens_mistral': 1988, 'n_tokens_neox': 1600, 'n_words': 349}