Skip to content

Commit c4f8c29

Browse files
committed
Improve Wordcloud for Typescript
1 parent 489b7a9 commit c4f8c29

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

cypher/Overview/Words_for_universal_Wordcloud.cypher

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Words for universal Wordcloud
22

3-
MATCH (named:!Key&!Primitive&!PrimitiveType&!Void&!JavaType&!ResolvedDuplicateType&!ExternalType)
3+
MATCH (named:!Key&!Primitive&!PrimitiveType&!Void&!JavaType&!ResolvedDuplicateType&!ExternalType&!Branch)
44
WHERE named.name > ''
55
AND named.name <> 'package-info'
66
AND named.name <> '<init>'

jupyter/Wordcloud.ipynb

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
{
1818
"cell_type": "code",
19-
"execution_count": null,
19+
"execution_count": 1,
2020
"id": "4191f259",
2121
"metadata": {},
2222
"outputs": [],
@@ -30,7 +30,7 @@
3030
},
3131
{
3232
"cell_type": "code",
33-
"execution_count": null,
33+
"execution_count": 2,
3434
"id": "1c5dab37",
3535
"metadata": {},
3636
"outputs": [],
@@ -45,7 +45,7 @@
4545
},
4646
{
4747
"cell_type": "code",
48-
"execution_count": null,
48+
"execution_count": 3,
4949
"id": "c1db254b",
5050
"metadata": {},
5151
"outputs": [],
@@ -57,7 +57,7 @@
5757
},
5858
{
5959
"cell_type": "code",
60-
"execution_count": null,
60+
"execution_count": 4,
6161
"id": "59310f6f",
6262
"metadata": {},
6363
"outputs": [],
@@ -69,7 +69,7 @@
6969
},
7070
{
7171
"cell_type": "code",
72-
"execution_count": null,
72+
"execution_count": 5,
7373
"id": "da9e8edb",
7474
"metadata": {},
7575
"outputs": [],
@@ -99,7 +99,7 @@
9999
},
100100
{
101101
"cell_type": "code",
102-
"execution_count": null,
102+
"execution_count": 7,
103103
"id": "c2496caf",
104104
"metadata": {},
105105
"outputs": [],
@@ -146,14 +146,16 @@
146146
"stopwords.update(['builder', 'exception', 'abstract', 'helper', 'util', 'callback', 'factory', 'result',\n",
147147
" 'handler', 'type', 'module', 'name', 'parameter', 'lambda', 'access', 'create', 'message', \n",
148148
" 'ts', 'js', 'tsx', 'jsx', 'css', 'htm', 'html', 'props', 'use', 'id', 'ref', 'hook', 'event', \n",
149-
" 'span', 'data', 'context', 'form', 'get', 'set', 'object', 'null', 'new'])\n",
149+
" 'span', 'data', 'context', 'form', 'get', 'set', 'object', 'null', 'new', 'plugin', 'package', \n",
150+
" 'types', 'dom', 'static', 'view', 'link', 'build', 'element', 'impl', 'function', 'test', 'dev', 'event'])\n",
150151
"\n",
151152
"if number_of_words > 0:\n",
152153
" wordcloud = WordCloud(\n",
153154
" width=800, \n",
154-
" height=400,\n",
155-
" max_words=400, \n",
155+
" height=800,\n",
156+
" max_words=600, \n",
156157
" stopwords=stopwords,\n",
158+
" collocations=False,\n",
157159
" background_color='white', \n",
158160
" colormap='viridis'\n",
159161
" ).generate(text)\n",
@@ -187,7 +189,7 @@
187189
"name": "python",
188190
"nbconvert_exporter": "python",
189191
"pygments_lexer": "ipython3",
190-
"version": "3.11.4"
192+
"version": "3.11.9"
191193
},
192194
"title": "Object Oriented Design Quality Metrics for Java with Neo4j"
193195
},

0 commit comments

Comments
 (0)