Skip to content

Commit 4b4d418

Browse files
committed
Added new plot showing which low-code tools mention AI as keyword or in their description
1 parent fa6049c commit 4b4d418

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

analysis.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ def analyze_repos_multiple_keywords(repos, keywords, category_name):
1313

1414
# Check if any of the keywords match
1515
matches = any(
16-
keyword in description or
17-
keyword in name or
18-
any(keyword in topic for topic in topics)
16+
(keyword in description if keyword != 'ai' else (' ai ' in description or ' ai-' in description)) or
17+
(keyword in name if keyword != 'ai' else (' ai ' in name or ' ai-' in name)) or
18+
any(keyword == topic.strip() for topic in topics)
1919
for keyword in keywords
2020
)
2121

@@ -32,7 +32,8 @@ def display_analysis(repos, category):
3232
keyword_sets = {
3333
'no-code': ['nocode', 'no-code'],
3434
'modeling': ['model', 'modeling', 'model-driven', 'model-based'],
35-
'uml': ['uml', 'unified modeling language']
35+
'uml': ['uml', 'unified modeling language'],
36+
'ai': ['ai', 'artificial intelligence']
3637
}
3738

3839
# Define excluded repos for modeling category

app.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def fetch_low_code_repos(query="low-code", sort="stars", order="desc", per_page=
9393
- [No-Code Analysis](#analysis-for-no-code)
9494
- [Modeling Analysis](#analysis-for-modeling)
9595
- [UML Analysis](#analysis-for-uml)
96+
- [AI Analysis](#analysis-for-ai)
9697
""")
9798

9899
st.markdown("<a name='quick-notes'></a>", unsafe_allow_html=True)
@@ -265,11 +266,11 @@ def fetch_low_code_repos(query="low-code", sort="stars", order="desc", per_page=
265266

266267

267268
if 'repos' in st.session_state and st.session_state.repos:
268-
st.write("## Low-code tools self-defining as well as no-code, modeling or UML tools")
269+
st.write("## Repository Analysis")
269270

270-
for keyword in ['no-code', 'modeling', 'uml']:
271+
for keyword in ['no-code', 'modeling', 'uml', 'ai']:
271272
st.write(f"### Analysis for '{keyword}'")
272273
display_analysis(st.session_state.repos, keyword)
273274
st.markdown("---")
274275
else:
275-
st.warning("Please fetch repositories first using the search functionality above.")
276+
st.warning("Please fetch repositories first using the search functionality above.")

0 commit comments

Comments
 (0)