Skip to content

Commit

Permalink
Develop data webpage
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaillat committed Jul 12, 2024
1 parent 99f17fc commit 15dc3e9
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 21 deletions.
26 changes: 13 additions & 13 deletions content/data/data1.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ This dataset contains all irregular verbs in [all known Romance languages](http:

---

## View datasets
## View dataset

+ [Irregular verbs in Portugese](https://github.com/pmichaillat/u-star)
+ [Irregular verbs in Italian](https://github.com/pmichaillat/unemployment-gap)
+ [Irregular verbs in French](https://github.com/pmichaillat/job-rationing)
+ [Irregular verbs in Spanish](https://github.com/pmichaillat/countercyclical-multiplier)
+ Irregular verbs in Portugese: [data](https://github.com/pmichaillat/u-star)
+ Irregular verbs in Italian: [data](https://github.com/pmichaillat/unemployment-gap)
+ Irregular verbs in French: [data](https://github.com/pmichaillat/job-rationing)
+ Irregular verbs in Spanish: [data](https://github.com/pmichaillat/countercyclical-multiplier)

---

Expand Down Expand Up @@ -123,11 +123,11 @@ print(f"Maximum Value: {max_value}")

## Description of simulation parameters

| Parameter | Value | Time period | Description |
| :-------: | :-------: | :---------: | :------------------------------: |
| $\alpha$ | $1/2$ | 1930–1954 | Tempor dolor in |
| $\lambda$ | $e/2$ | 1930–1954 | Fugiat sint occaecat |
| $\gamma$ | $\ln(3)$ | 1833–1954 | Duis officia deserunt |
| $\omega$ | $10^{-4}$ | 1930–1994 | Excepteur et dolore magna aliqua |
| $\sigma$ | $1.5$ | 1990–2023 | Lorem culpa qui |
| $\chi^2$ | $\pi^2$ | 1990–2023 | Labore et dolore |
| Parameter | Value | Language | Time period | Description |
| :-------: | :-------: | ---------- | :---------: | :------------------------------: |
| $\alpha$ | $1/2$ | French | 1930–1954 | Tempor dolor in |
| $\lambda$ | $e/2$ | French | 1930–1954 | Fugiat sint occaecat |
| $\gamma$ | $\ln(3)$ | Spanish | 1833–1954 | Duis officia deserunt |
| $\omega$ | $10^{-4}$ | Italian | 1930–1994 | Excepteur et dolore magna aliqua |
| $\sigma$ | $1.5$ | Portuguese | 1990–2023 | Lorem culpa qui |
| $\chi^2$ | $\pi^2$ | Portuguese | 1990–2023 | Labore et dolore |
23 changes: 15 additions & 8 deletions public/data/data1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@
"keywords": [
"Romance languages", "philology", "irregular verbs", "Portuguese", "Italian", "French", "Spanish", "simulations", "dataset", "python"
],
"articleBody": "Overview This dataset contains all irregular verbs in all known Romance languages —including Portugese, Spanish, French, and Italian. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\nView datasets Irregular verbs in Portugese Irregular verbs in Italian Irregular verbs in French Irregular verbs in Spanish Source of data Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\nUsing data with Python Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\nStart Python: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\nimport numpy as np import pandas as pd Open the file: Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\nfile_path = 'data.csv' with open(file_path, 'r') as file: Read data: Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\nlines = file.readlines() Parse and process data: Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\ndata = [] for line in lines: line_data = line.strip().split(',') # Split the line into a list of values line_data = [float(value) for value in line_data] # Convert values to floats data.extend(line_data) # Extend the main list with values from the line Compute summary statistics using NumPy: Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\ndata_array = np.array(data) # Convert the list to a NumPy array mean = np.mean(data_array) median = np.median(data_array) std_dev = np.std(data_array) min_value = np.min(data_array) max_value = np.max(data_array) Display summary statistics: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\nprint(f\"Mean: {mean}\") print(f\"Median: {median}\") print(f\"Standard Deviation: {std_dev}\") print(f\"Minimum Value: {min_value}\") print(f\"Maximum Value: {max_value}\") Description of simulation parameters Parameter Value Time period Description $\\alpha$ $1/2$ 1930–1954 Tempor dolor in $\\lambda$ $e/2$ 1930–1954 Fugiat sint occaecat $\\gamma$ $\\ln(3)$ 1833–1954 Duis officia deserunt $\\omega$ $10^{-4}$ 1930–1994 Excepteur et dolore magna aliqua $\\sigma$ $1.5$ 1990–2023 Lorem culpa qui $\\chi^2$ $\\pi^2$ 1990–2023 Labore et dolore ",
"wordCount" : "537",
"articleBody": "Overview This dataset contains all irregular verbs in all known Romance languages —including Portugese, Spanish, French, and Italian. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\nView dataset Irregular verbs in Portugese: data Irregular verbs in Italian: data Irregular verbs in French: data Irregular verbs in Spanish: data Source of data Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\nUsing data with Python Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\nStart Python: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\nimport numpy as np import pandas as pd Open the file: Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\nfile_path = 'data.csv' with open(file_path, 'r') as file: Read data: Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\nlines = file.readlines() Parse and process data: Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\ndata = [] for line in lines: line_data = line.strip().split(',') # Split the line into a list of values line_data = [float(value) for value in line_data] # Convert values to floats data.extend(line_data) # Extend the main list with values from the line Compute summary statistics using NumPy: Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\ndata_array = np.array(data) # Convert the list to a NumPy array mean = np.mean(data_array) median = np.median(data_array) std_dev = np.std(data_array) min_value = np.min(data_array) max_value = np.max(data_array) Display summary statistics: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\nprint(f\"Mean: {mean}\") print(f\"Median: {median}\") print(f\"Standard Deviation: {std_dev}\") print(f\"Minimum Value: {min_value}\") print(f\"Maximum Value: {max_value}\") Description of simulation parameters Parameter Value Language Time period Description $\\alpha$ $1/2$ French 1930–1954 Tempor dolor in $\\lambda$ $e/2$ French 1930–1954 Fugiat sint occaecat $\\gamma$ $\\ln(3)$ Spanish 1833–1954 Duis officia deserunt $\\omega$ $10^{-4}$ Italian 1930–1994 Excepteur et dolore magna aliqua $\\sigma$ $1.5$ Portuguese 1990–2023 Lorem culpa qui $\\chi^2$ $\\pi^2$ Portuguese 1990–2023 Labore et dolore ",
"wordCount" : "548",
"inLanguage": "en",
"datePublished": "2013-03-07T00:00:00Z",
"dateModified": "2024-07-12T00:00:00Z",
Expand Down Expand Up @@ -205,7 +205,7 @@ <h1 class="post-title entry-hint-parent">
<div class="inner"><nav id="TableOfContents">
<ul>
<li><a href="#overview">Overview</a></li>
<li><a href="#view-datasets">View datasets</a></li>
<li><a href="#view-dataset">View dataset</a></li>
<li><a href="#source-of-data">Source of data</a></li>
<li><a href="#using-data-with-python">Using data with Python</a></li>
<li><a href="#description-of-simulation-parameters">Description of simulation parameters</a></li>
Expand All @@ -219,15 +219,15 @@ <h1 class="post-title entry-hint-parent">
<p>This dataset contains all irregular verbs in <a href="http://www.alexandermccallsmith.com/series/von-igelfeld-series" target="_blank">all known Romance languages</a>
—including Portugese, Spanish, French, and Italian. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<hr>
<h2 id="view-datasets">View datasets<a hidden class="anchor" aria-hidden="true" href="#view-datasets">#</a></h2>
<h2 id="view-dataset">View dataset<a hidden class="anchor" aria-hidden="true" href="#view-dataset">#</a></h2>
<ul>
<li><a href="https://github.com/pmichaillat/u-star" target="_blank">Irregular verbs in Portugese</a>
<li>Irregular verbs in Portugese: <a href="https://github.com/pmichaillat/u-star" target="_blank">data</a>
</li>
<li><a href="https://github.com/pmichaillat/unemployment-gap" target="_blank">Irregular verbs in Italian</a>
<li>Irregular verbs in Italian: <a href="https://github.com/pmichaillat/unemployment-gap" target="_blank">data</a>
</li>
<li><a href="https://github.com/pmichaillat/job-rationing" target="_blank">Irregular verbs in French</a>
<li>Irregular verbs in French: <a href="https://github.com/pmichaillat/job-rationing" target="_blank">data</a>
</li>
<li><a href="https://github.com/pmichaillat/countercyclical-multiplier" target="_blank">Irregular verbs in Spanish</a>
<li>Irregular verbs in Spanish: <a href="https://github.com/pmichaillat/countercyclical-multiplier" target="_blank">data</a>
</li>
</ul>
<hr>
Expand Down Expand Up @@ -292,6 +292,7 @@ <h2 id="description-of-simulation-parameters">Description of simulation paramete
<tr>
<th style="text-align:center">Parameter</th>
<th style="text-align:center">Value</th>
<th>Language</th>
<th style="text-align:center">Time period</th>
<th style="text-align:center">Description</th>
</tr>
Expand All @@ -300,36 +301,42 @@ <h2 id="description-of-simulation-parameters">Description of simulation paramete
<tr>
<td style="text-align:center">$\alpha$</td>
<td style="text-align:center">$1/2$</td>
<td>French</td>
<td style="text-align:center">1930–1954</td>
<td style="text-align:center">Tempor dolor in</td>
</tr>
<tr>
<td style="text-align:center">$\lambda$</td>
<td style="text-align:center">$e/2$</td>
<td>French</td>
<td style="text-align:center">1930–1954</td>
<td style="text-align:center">Fugiat sint occaecat</td>
</tr>
<tr>
<td style="text-align:center">$\gamma$</td>
<td style="text-align:center">$\ln(3)$</td>
<td>Spanish</td>
<td style="text-align:center">1833–1954</td>
<td style="text-align:center">Duis officia deserunt</td>
</tr>
<tr>
<td style="text-align:center">$\omega$</td>
<td style="text-align:center">$10^{-4}$</td>
<td>Italian</td>
<td style="text-align:center">1930–1994</td>
<td style="text-align:center">Excepteur et dolore magna aliqua</td>
</tr>
<tr>
<td style="text-align:center">$\sigma$</td>
<td style="text-align:center">$1.5$</td>
<td>Portuguese</td>
<td style="text-align:center">1990–2023</td>
<td style="text-align:center">Lorem culpa qui</td>
</tr>
<tr>
<td style="text-align:center">$\chi^2$</td>
<td style="text-align:center">$\pi^2$</td>
<td>Portuguese</td>
<td style="text-align:center">1990–2023</td>
<td style="text-align:center">Labore et dolore</td>
</tr>
Expand Down

0 comments on commit 15dc3e9

Please sign in to comment.