From a1dccf4d21f7b23996250cb7fde61531395dfec0 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Wed, 26 Jul 2023 09:48:04 +0100
Subject: [PATCH 01/64] Bump aiohttp from 3.8.3 to 3.8.5 (#333)
Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.8.3 to 3.8.5.
- [Release notes](https://github.com/aio-libs/aiohttp/releases)
- [Changelog](https://github.com/aio-libs/aiohttp/blob/v3.8.5/CHANGES.rst)
- [Commits](https://github.com/aio-libs/aiohttp/compare/v3.8.3...v3.8.5)
---
updated-dependencies:
- dependency-name: aiohttp
dependency-type: direct:production
...
Signed-off-by: dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
---
docs/requirements.txt | 2 +-
setup.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/requirements.txt b/docs/requirements.txt
index 84ca5cc2a..be517876f 100644
--- a/docs/requirements.txt
+++ b/docs/requirements.txt
@@ -3,4 +3,4 @@ sphinx-rtd-theme~=1.0
myst-parser~=0.17
sphinx-autoapi~=1.8
setuptools>=60.0
-aiohttp==3.8.3
\ No newline at end of file
+aiohttp==3.8.5
\ No newline at end of file
diff --git a/setup.py b/setup.py
index 4e73b2f89..cefc88572 100644
--- a/setup.py
+++ b/setup.py
@@ -42,7 +42,7 @@
'pydantic>=1.10.0,<2.0', # for spacy compatibility; avoid 2.0 due to breaking changes
# the following are not direct dependencies of MedCAT but needed for docs/building
# hopefully will no longer need the transitive dependencies
- 'aiohttp==3.8.3', # 3.8.3 is needed for compatibility with fsspec <- datasets <- medcat
+ 'aiohttp==3.8.5', # 3.8.3 is needed for compatibility with fsspec <- datasets <- medcat
'blis<0.8.0,>=0.7.8', # as required by thinc <- spacy <- medcat
# 'smart-open==5.2.1', # 5.2.1 is needed for compatibility with pathy
# 'joblib~=1.2',
From 8fe9dfcdf8541149545faa683890bf234d2608c0 Mon Sep 17 00:00:00 2001
From: tomolopolis
Date: Mon, 31 Jul 2023 12:08:23 +0100
Subject: [PATCH 02/64] CU-862k77jjj: changes needed for Trainer metrics page
---
medcat/cat.py | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/medcat/cat.py b/medcat/cat.py
index b2d3f7cb3..5218e9d02 100644
--- a/medcat/cat.py
+++ b/medcat/cat.py
@@ -534,10 +534,14 @@ def _print_stats(self,
anns_norm.append((ann['start'], cui))
anns_examples.append({"text": doc['text'][max(0, ann['start']-60):ann['end']+60],
"cui": cui,
+ "start": ann['start'],
+ "end": ann['end'],
"source value": ann['value'],
"acc": 1,
"project name": project.get('name'),
- "document name": doc.get('name')})
+ "document name": doc.get('name'),
+ "project id": project.get('id'),
+ "document id": doc.get('id')})
elif ann.get('validated', True) and (ann.get('killed', False) or ann.get('deleted', False)):
anns_norm_neg.append((ann['start'], cui))
@@ -556,11 +560,14 @@ def _print_stats(self,
p_anns_norm.append((ann.start_char, cui))
p_anns_examples.append({"text": doc['text'][max(0, ann.start_char-60):ann.end_char+60],
"cui": cui,
+ "start": ann.start_char,
+ "end": ann.end_char,
"source value": ann.text,
"acc": float(ann._.context_similarity),
"project name": project.get('name'),
- "document name": doc.get('name')})
-
+ "document name": doc.get('name'),
+ "project id": project.get('id'),
+ "document id": doc.get('id')})
for iann, ann in enumerate(p_anns_norm):
cui = ann[1]
if ann in anns_norm:
From 9f9b25b21e700fde49c86372569ec5ca008abad0 Mon Sep 17 00:00:00 2001
From: tomolopolis
Date: Mon, 14 Aug 2023 12:12:33 +0100
Subject: [PATCH 03/64] remove bad merge element
---
webapp/webapp/demo/templates/train_annotations.html | 2 --
1 file changed, 2 deletions(-)
diff --git a/webapp/webapp/demo/templates/train_annotations.html b/webapp/webapp/demo/templates/train_annotations.html
index 19b5882c7..25677cd21 100644
--- a/webapp/webapp/demo/templates/train_annotations.html
+++ b/webapp/webapp/demo/templates/train_annotations.html
@@ -29,8 +29,6 @@
Disclaimer
WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.
contact@cogstack.com for more information.
- contact@cogstack.com for more information.
-
Sample text
From eec6b5a68dd0cb9d9b91015254525610936237e7 Mon Sep 17 00:00:00 2001
From: Mart Ratas
Date: Mon, 4 Sep 2023 13:05:54 +0300
Subject: [PATCH 04/64] CU-8692kpchc Fix for Rosalind link not working (#342)
* CU-8692kpchc Add the 403 exception to vocab downloader
* CU-8692kpchc Add the new vocab download link
---
tests/helper.py | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/tests/helper.py b/tests/helper.py
index 23afdb6b4..9fb66589b 100644
--- a/tests/helper.py
+++ b/tests/helper.py
@@ -24,6 +24,15 @@ async def __call__(self, *args, **kwargs):