Skip to content

Commit

Permalink
Merge pull request #4 from aislab-hevs/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
victorc365 authored Apr 11, 2024
2 parents 59cc1c5 + c0d5dc9 commit 6079e2f
Show file tree
Hide file tree
Showing 23 changed files with 1,855,138 additions and 20 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.env
*.txt
*.json
*.out
*.pyc
.ipynb_checkpoints
*/.ipynb_checkpoints/*
Expand Down
70 changes: 70 additions & 0 deletions src/mail_sending/mail_sender.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
from smtplib import SMTP
import sys
import smtplib
from email.mime.text import MIMEText


EMAIL_USERNAME = '[email protected]'
EMAIL_PASSWORD = 'vC4n9KAUuz32yd'
EVENT = 'EXTRAAMAS 2024'
ROLE = 'Publicity Chair'
SIGNATURE = 'Victor Hugo Contreras Ordonez <{}>\n{} {}'.format(
EMAIL_USERNAME, EVENT, ROLE)
AUTHORS_NAMES = ["Victor Hugo"]
AUTHORS_EMAILS = ["[email protected]"]

assert len(AUTHORS_NAMES) == len(AUTHORS_EMAILS)
AUTHORS_NAMES_AND_EMAILS = {
AUTHORS_NAMES[i]: AUTHORS_EMAILS[i] for i in range(len(AUTHORS_NAMES))}

from_addr = EMAIL_USERNAME

subj = "Call for Papers Invitation for {}".format(EVENT)

message_text = "Dear [#AUTHOR_NAME],\n\n"\
"We are very happy that AAMAS 2024 will be hosting the International Workshop on EXplainable and TRAnsparent AI and Multi-Agent Systems (EXTRAAMAS 2024) for the sixth time this year!\n"\
"https://extraamas.ehealth.hevs.ch/\n\n"\
"We invite you to submit your recent work to the workshop and are looking forward to having vivid and inspiring conversations on recent XAI developments in May!\n"\
"Deadline for submission: 1 March 2024.\n\n"\
"Important Dates:\n"\
"---------------------------\n"\
"* Deadline for submissions: 01.03.2024\n"\
"* Notification of acceptance: 25.03.2024\n"\
"* Registration instructions: 05.04.2024\n"\
"* Workshop days: 6 - 7.05.2024\n"\
"* Camera-ready: 15.06.2024\n\n"\
"Workshop tracks:\n"\
"------------------------------\n"\
"* Track 1: XAI in symbolic and subsymbolic AI\n"\
"* Track 2: XAI in negotiation and conflict resolution\n"\
"* Track 3: Prompts, Interactive Explainability and Dialogues\n"\
"* Track 4: XAI in Law and Ethics\n\n\n"\
"Please check the call for paper here: https://extraamas.ehealth.hevs.ch/docs/CfP_EXTRAAMAS24.pdf\n\n"\
"All the best!\n"\
"[#SIGNATURE]"


for name, email in AUTHORS_NAMES_AND_EMAILS.items():
mailserver = smtplib.SMTP('smtp-mail.outlook.com', 587)
mailserver.ehlo()
mailserver.starttls()
mailserver.ehlo()
mailserver.login(EMAIL_USERNAME, EMAIL_PASSWORD)
print('Sending email to "{}" with destination address "{}"'.format(name, email))
try:
content = message_text.replace(
'[#AUTHOR_NAME]', name).replace('[#SIGNATURE]', SIGNATURE)
msg = MIMEText(content, 'plain')
msg['Subject'] = subj
msg['From'] = from_addr
msg['To'] = email
try:
mailserver.sendmail(from_addr, email, msg.as_string())
finally:
mailserver.quit()
except:
sys.exit('mail failed for name "{}" and email "{}"'.format(name, email))


# with SMTP("outlook.office.com") as smtp:
# print(smtp.noop())
31 changes: 23 additions & 8 deletions src/main_generator_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "e975e91d62134abbb3c5ea2dc7cbc955",
"model_id": "76a0cbe43fda44eea61c8b089ca652ff",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -68,7 +68,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "df859f9a44c64dd3bf5ddae97423e8aa",
"model_id": "78544fc5fdb648c99ccc86097ae14583",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -82,7 +82,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "7b70ec9c4e5144398f8866f794792cba",
"model_id": "525292f510c44f918d15120885f25785",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -96,7 +96,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "ab8dceebdad542cc860968b89551e457",
"model_id": "2db6b58d171b4e13b8df3541457d6582",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -127,15 +127,30 @@
"7. https://ec.europa.eu/eurostat/web/products-eurostat-news/-/ddn-20210721-2#:~:text=While%2045%25%20of%20adults%20living,body%20mass%20index%20(BMI).\n",
"8. https://www.hsph.harvard.edu/obesity-prevention-source/obesity-trends-original/obesity-rates-worldwide/\n",
"9. https://www.economist.com/middle-east-and-africa/2021/01/28/why-obesity-is-spreading-across-africa\n",
"10. https://www.bbc.com/news/health-45878325"
"10. https://www.bbc.com/news/health-45878325\n",
"11. Fildes, A., Charlton, J., Rudisill, C., Littlejohns, P., Prevost, A. T., & Gulliford, M. C. (2015). Probability of an Obese Person Attaining Normal Body Weight: Cohort Study Using Electronic Health Records. American journal of public health, 105(9), e54–e59. https://doi.org/10.2105/AJPH.2015.302773"
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": []
"outputs": [
{
"data": {
"text/plain": [
"'/home/victor/Documents/Expectation_data_generation/src'"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import os \n",
"os.getcwd()"
]
}
],
"metadata": {
Expand Down
7 changes: 7 additions & 0 deletions src/meals_collection/Process_recipes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13981,6 +13981,13 @@
"processed_data.to_csv('/home/victor/Documents/Expectation_data_generation/src/recipes/processed_recipes_dataset_id.csv',\n",
" sep='|')"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
Loading

0 comments on commit 6079e2f

Please sign in to comment.