Skip to content

Commit

Permalink
chore(i18n,learn): processed translations (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
camperbot authored Oct 30, 2024
1 parent ceab3f0 commit a50fcb1
Show file tree
Hide file tree
Showing 752 changed files with 48,356 additions and 1,218 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,25 @@ assert(
Debe haber una función de escucha suscrita al almacén usando `store.subscribe`.

```js
(getUserInput) => assert(getUserInput('index').match(/store\s*\.\s*subscribe\(/gm));
assert.match(code, /store\s*\.\s*subscribe\(/gm);
```

El `store.subscribe` debe recibir una función.

```js
(getUserInput) => assert(getUserInput('index').match(/(\s*function\s*)|(\s*\(\s*\)\s*=>)/gm))
assert.match(code, /(\s*function\s*)|(\s*\(\s*\)\s*=>)/gm);
```

The function passed to `store.subscribe` should not be called.

```js
assert.notMatch(code, /store\.subscribe\(.+\(\)\)/);
```

La función callback a `store.subscribe` también debe incrementar la variable global `count` a medida que se actualiza el almacén.

```js
assert(store.getState() === count);
assert.strictEqual(store.getState(), count);
```

# --seed--
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,29 +43,32 @@ Nombre del archivo: medical_examination.csv


## Instrucciones

Create a chart similar to `examples/Figure_1.png`, where we show the counts of good and bad outcomes for the `cholesterol`, `gluc`, `alco`, `active`, and `smoke` variables for patients with `cardio=1` and `cardio=0` in different panels.

Por cada número en el archivo `medical_data_visualizer.py` agrege el codigo del numero de instruccion asociado a continuación.

1. Importe los datos de `medical_examination.csv` y asignelos a la variable `df`
2. Crea la columna `sobrepeso` en la variable `df`
1. Import the data from `medical_examination.csv` and assign it to the `df` variable.
2. Add an `overweight` column to the data. To determine if a person is overweight, first calculate their BMI by dividing their weight in kilograms by the square of their height in meters. If that value is > 25 then the person is overweight. Use the value `0` for NOT overweight and the value `1` for overweight.
3. Normaliza los datos haciendo `0` siempre bueno y `1` siempre malo. Si el valor de `cholesterol` o `gluc` es `1`, haga el valor `0`. Si el valor es mayor que `1`, ajuste el valor a `1`.
4. Dibuja la trama Categórica en la función `draw_cat_plot`
4. Draw the Categorical Plot in the `draw_cat_plot` function.
5. Crea un DataFrame para la gráfica del gato usando `pd. elt` con valores de `colesterol`, `gluc`, `humo`, `alco`, `active`y `sobrepeso` en la variable `df_cat`.
6. . Mostrar los recuentos de cada característica. Tendrás que renombrar una de las columnas para que la `catplot` funcione correctamente.
7. Convierte los datos en formato `largo` y crea un gráfico que muestre el recuento de valores de las características categóricas utilizando el siguiente método proporcionado por la importación de la biblioteca abortada: `sns. atplot()`
8. Obtener la figura para la salida y almacenarla en la variable `fig`
9. No modificar las siguientes dos líneas
10. Dibuja el mapa de calor en la función `draw_heat_map`
7. Convert the data into `long` format and create a chart that shows the value counts of the categorical features using the following method provided by the seaborn library import: `sns.catplot()`.
8. Get the figure for the output and store it in the `fig` variable.
9. Do not modify the next two lines.
10. Draw the Heat Map in the `draw_heat_map` function.
11. Limpia los datos en la variable `df_heat` filtrando los siguientes segmentos del paciente que representan datos incorrectos:
- la presión diastólica es mayor que la sistólica (Mantenga los datos correctos con `(df['ap_lo'] <= df['ap_hi'])`)
- la altura es menor que el porcentaje de 2,5 (Mantenga los datos correctos con `(df['height'] >= df['height'].quantile(0.025))`
- la altura es superior al 97.5 por ciento
- el peso es inferior al 2.5 por ciento
- el peso es mayor al 97.5 por ciento
12. Calcular la matriz de correlación y almacenarla en la variable `corr`
13. Genera una máscara para el triángulo superior y guárdala en la variable `máscara`
14. Configura la figura `matplotlib`
15. Trazar la matriz de correlación usando el método proporcionado por la librería `seaborn` import: `sns.heatmap()`
16. No modificar las siguientes dos líneas
12. Calculate the correlation matrix and store it in the `corr` variable.
13. Generate a mask for the upper triangle and store it in the `mask` variable.
14. Set up the `matplotlib` figure.
15. Plot the correlation matrix using the method provided by the `seaborn` library import: `sns.heatmap()`.
16. Do not modify the next two lines.

## Desarrollo

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ La nueva version de JavaScript os proporciona un objeto de Mapa integrado que pr
- `.set(key, value)` establece un nuevo par clave, valor
- `.delete(key)` elimina un par clave, valor
- `.clear()` elimina todos los pares clave, valor
- `.entries()` devuelve un arreglo de todas las claves en orden de inserción
- `.values()` devuelve un arreglo de todos los valores en orden de inserción
- `.keys()` returns a new map iterator object that contains all the keys in insertion order
- `.values()` returns a new map iterator object that contains all the values in insertion order
- `.entries()` returns a new map iterator object that contains all the key, value pairs in insertion order

# --instructions--

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dashedName: step-16

Nos hemos encontrado con un pequeño problema. Estás intentando consultar tu página para un elemento de botón, pero tu etiqueta `script` está en la etiqueta `head` de tu HTML. Esto significa que tu código se ejecuta antes de que el navegador haya terminado de leer el HTML, y tu `document.querySelector()` no verá el botón, porque el navegador no lo ha procesado aún.

Para solucionar esto, mueve tu elemento `script` fuera del elemento `head`, y colócalo al final de tu elemento `body` (justo antes de la etiqueta de cierre `</body>`).
To fix this, move your `script` element out of the `head` element, and place it at the end of your `body` element (just before the closing `</body>` tag).

# --hints--

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,25 @@ Add your callback function to the `forEach` method. It should take a `btn` param
You should use arrow syntax to add a callback function to the `forEach` method which takes a `btn` parameter.

```js
assert.match(code, /\[\s*\.\.\.addToCartBtns\s*\]\s*\.\s*forEach\s*\(\s*(\(\s*btn\s*\)|btn)\s*=>\s*\{/);
assert.match(code, /\[\s*\.\.\.addToCartBtns\s*\]\s*\.\s*forEach\s*\(\s*(\(\s*btn\s*\)|btn)\s*=>\s*(?:\{|\s*)/);
```

You should add an event listener to the `btn` variable.

```js
assert.match(code, /\[\s*\.\.\.addToCartBtns\s*\]\s*\.\s*forEach\s*\(\s*(\(\s*btn\s*\)|btn)\s*=>\s*\{\s*btn\s*\.\s*addEventListener\s*\(/);
assert.match(code, /\[\s*\.\.\.addToCartBtns\s*\]\s*\.\s*forEach\s*\(\s*(\(\s*btn\s*\)|btn)\s*=>\s*(?:\{\s*btn\s*\.\s*addEventListener\s*\(|\s*btn\s*\.\s*addEventListener\s*\()/);
```

You should listen for a `click` event on the `btn` variable.

```js
assert.match(code, /\[\s*\.\.\.addToCartBtns\s*\]\s*\.\s*forEach\s*\(\s*(?:\(\s*btn\s*\)|btn)\s*=>\s*\{\s*btn\s*\.\s*addEventListener\s*\(\s*('|"|`)click\1\s*,\s*/);
assert.match(code, /\[\s*\.\.\.addToCartBtns\s*\]\s*\.\s*forEach\s*\(\s*(?:\(\s*btn\s*\)|btn)\s*=>\s*(?:\{\s*btn\s*\.\s*addEventListener\s*\(\s*('|"|`)click\1\s*,\s*|\s*btn\s*\.\s*addEventListener\s*\(\s*('|"|`)click\2\s*,\s*)/);
```

You should add an empty callback function to the event listener. Remember to give it an `event` parameter.

```js
assert.match(code, /\[\s*\.\.\.addToCartBtns\s*\]\s*\.\s*forEach\s*\(\s*(?:\(\s*btn\s*\)|btn)\s*=>\s*\{\s*btn\s*\.\s*addEventListener\s*\(\s*('|"|`)click\1\s*,\s*(\(\s*event\s*\)|event)\s*=>\s*\{\s*\}\s*\)\s*;?\s*\}\s*\)/);
assert.match(code, /\[\s*\.\.\.addToCartBtns\s*\]\s*\.\s*forEach\s*\(\s*(?:\(\s*btn\s*\)|btn)\s*=>\s*(?:\{\s*btn\s*\.\s*addEventListener\s*\(\s*('|"|`)click\1\s*,\s*(\(\s*event\s*\)|event)\s*=>\s*\{\s*\}\s*\)\s*;?\s*\}\s*\)|\s*btn\s*\.\s*addEventListener\s*\(\s*('|"|`)click\3\s*,\s*(\(\s*event\s*\)|event)\s*=>\s*\{\s*\}\s*\)\s*;?\s*\))/);
```

# --seed--
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Necesitarás añadir una nueva línea a cada fila. Sin embargo, pulsando la tecl
lineOne = lineOne + "\n" + lineTwo;
```

Utiliza un segundo operador de adición para concatenar una nueva línea entre el valor `result` existente y el valor `row` añadido.
Use a second addition operator to append a new line after the existing `result` value and the added `row` value.

# --hints--

Expand All @@ -25,22 +25,22 @@ Debes usar la secuencia de escape `\n`. Recuerda que tiene que ser una cadena de
assert.match(__helpers.removeJSComments(code), /('|")\\n\1/);
```

Deberías concatenar la secuencia de escape `\n` a tu variable `result`.
You should concatenate your `row` variable to your `result` variable.

```js
assert.match(__helpers.removeJSComments(code), /result\s*\+\s*('|")\\n\1/);
assert.match(__helpers.removeJSComments(code), /result\s*\+\s*row\s*\+\s*('|")\\n\1/);
```

Deberías concatenar tu variable `row` a tu secuencia de escape `\n`.
You should concatenate the `\n` escape sequence to your `row` variable.

```js
assert.match(__helpers.removeJSComments(code), /result\s*\+\s*('|")\\n\1\s*\+\s*row/);
assert.match(__helpers.removeJSComments(code), /row\s*\+\s*('|")\\n\1/);
```

Deberías asignar toda la concatenación a tu variable `result`. No olvides añadir el punto y coma.

```js
assert.match(__helpers.removeJSComments(code), /result\s*=\s*result\s*\+\s*('|")\\n\1\s*\+\s*row;/);
assert.match(__helpers.removeJSComments(code), /result\s*=\s*result\s*\+\s*row\s*\+\s*('|")\\n\1;/);
```

# --seed--
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ for (let i = 0; i < count; i = i + 1) {
let result = ""

for (const row of rows) {
result = result + "\n" + row;
result = result + row + "\n";
}

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ for (let i = 0; i < count; i = i + 1) {
let result = ""

for (const row of rows) {
result = result + "\n" + row;
result = result + row + "\n";
}

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ for (let i = 0; i < count; i = i + 1) {
let result = ""

for (const row of rows) {
result = result + "\n" + row;
result = result + row + "\n";
}

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ for (let i = 0; i < count; i = i + 1) {
let result = ""

for (const row of rows) {
result = result + "\n" + row;
result = result + row + "\n";
}

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ for (let i = 0; i < count; i = i + 1) {
let result = ""

for (const row of rows) {
result = result + "\n" + row;
result = result + row + "\n";
}

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ for (let i = 0; i < count; i = i + 1) {
let result = ""

for (const row of rows) {
result = result + "\n" + row;
result = result + row + "\n";
}

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ for (let i = 0; i < count; i = i + 1) {
let result = ""

for (const row of rows) {
result = result + "\n" + row;
result = result + row + "\n";
}

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ for (let i = 0; i < count; i = i + 1) {
let result = ""

for (const row of rows) {
result = result + "\n" + row;
result = result + row + "\n";
}

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ for (let i = 0; i < count; i = i + 1) {
let result = ""

for (const row of rows) {
result = result + "\n" + row;
result = result + row + "\n";
}

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ for (let i = 0; i < count; i = i + 1) {
let result = ""

for (const row of rows) {
result = result + "\n" + row;
result = result + row + "\n";
}

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ for (let i = 0; i < count; i = i + 1) {
let result = ""

for (const row of rows) {
result = result + "\n" + row;
result = result + row + "\n";
}

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ for (let i = 0; i < count; i = i + 1) {
let result = ""

for (const row of rows) {
result = result + "\n" + row;
result = result + row + "\n";
}

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ for (let i = 0; i < count; i += 1) {
let result = ""

for (const row of rows) {
result = result + "\n" + row;
result = result + row + "\n";
}

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ for (let i = 0; i < count; i++) {
let result = ""

for (const row of rows) {
result = result + "\n" + row;
result = result + row + "\n";
}

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ for (let i = 1; i < count; i++) {
let result = ""

for (const row of rows) {
result = result + "\n" + row;
result = result + row + "\n";
}

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ for (let i = 1; i < count; i++) {
let result = ""

for (const row of rows) {
result = result + "\n" + row;
result = result + row + "\n";
}

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ for (let i = 1; i <= count; i++) {
let result = ""

for (const row of rows) {
result = result + "\n" + row;
result = result + row + "\n";
}

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ for (let i = 1; i <= count; i++) {
let result = ""

for (const row of rows) {
result = result + "\n" + row;
result = result + row + "\n";
}

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function padRow(rowNumber, rowCount) {
let result = ""

for (const row of rows) {
result = result + "\n" + row;
result = result + row + "\n";
}

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ if (true) {
let result = ""

for (const row of rows) {
result = result + "\n" + row;
result = result + row + "\n";
}

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ if (false) {
let result = ""

for (const row of rows) {
result = result + "\n" + row;
result = result + row + "\n";
}

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ if ("false") {
let result = ""

for (const row of rows) {
result = result + "\n" + row;
result = result + row + "\n";
}

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ if ("") {
let result = ""

for (const row of rows) {
result = result + "\n" + row;
result = result + row + "\n";
}

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ let done = 0;
let result = ""

for (const row of rows) {
result = result + "\n" + row;
result = result + row + "\n";
}

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ while (continueLoop) {
let result = ""

for (const row of rows) {
result = result + "\n" + row;
result = result + row + "\n";
}

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ while (continueLoop) {
let result = ""

for (const row of rows) {
result = result + "\n" + row;
result = result + row + "\n";
}

console.log(result);
Expand Down
Loading

0 comments on commit a50fcb1

Please sign in to comment.