Skip to content

Commit c907017

Browse files
committed
Merge branch 'master' of github.com:intersystems-community/iris-ai-contest-template
2 parents 3660bf0 + b35bff8 commit c907017

File tree

10 files changed

+36
-13
lines changed

10 files changed

+36
-13
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"internalPort": 52773
1313
},
1414
"links": {
15+
"WebTerminal": "http://localhost:${port}/terminal/",
1516
"MLToolkit Demos": "http://localhost:${port}/csp/user/index.html"
1617
}
1718
}

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ SHELL ["/irissession.sh"]
2020

2121
RUN \
2222
do $SYSTEM.OBJ.Load("Installer.cls", "ck") \
23-
set sc = ##class(App.Installer).setup()
23+
set sc = ##class(App.Installer).setup() \
24+
zn "PYTHON" \
25+
zpm "install webterminal"
2426

2527
# bringing the standard shell back
2628
SHELL ["/bin/bash", "-c"]

Installer.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ ClassMethod BuildIndex() As %Status
3636
{
3737
Zn "PYTHON"
3838
Set tSC = ##class(Community.Post).%BuildIndices()
39-
Set tSC = ##class(Community.Tags).%BuildIndices()
39+
Set tSC = ##class(Community.Tag).%BuildIndices()
4040
Quit tSC
4141
}
4242

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
## intersystems-objectscript-template
2-
This is a template for PythonGateway - InterSystems ObjectScript Github repository.
3-
4-
The template goes also with a few files which let you immediately compile your InterSystems ObjectScript files in InterSystems IRIS Community Edition (Advanced Analytics including IntegratedML) in a docker container.
1+
# Developer Community posts and tags
2+
This is a template for InterSystems AI contest with data on Posts and Tags exported from [InterSystems Developer Community](community.intersystems.com)
53

64
## Prerequisites
75
Make sure you have [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) and [Docker desktop](https://www.docker.com/products/docker-desktop) installed.

dev.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# useful commands
2+
## build container with no cache
3+
```
4+
docker-compose build --no-cache
5+
```
6+
## open terminal to docker
7+
```
8+
docker-compose exec iris iris session iris -U IRISAPP
9+
```
10+
## export IRIS Analytics artifacts
11+
```
12+
d ##class(dev.code).export("*.DFI")
13+
```
14+
15+
## clean up docker
16+
```
17+
docker system prune -f
18+
```
19+
20+
21+
22+
File renamed without changes.

src/cls/Community/Tags.cls renamed to src/Community/Tag.cls

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Class Community.Tags Extends %Persistent
1+
Class Community.Tag Extends %Persistent
22
{
33

44
Property Name As %String(MAXLEN = "");
@@ -9,7 +9,7 @@ Property Description As %String(MAXLEN = "");
99

1010
Storage Default
1111
{
12-
<Data name="TagsDefaultData">
12+
<Data name="TagDefaultData">
1313
<Value name="1">
1414
<Value>%%CLASSNAME</Value>
1515
</Value>
@@ -20,11 +20,11 @@ Storage Default
2020
<Value>Description</Value>
2121
</Value>
2222
</Data>
23-
<DataLocation>^Community.TagsD</DataLocation>
23+
<DataLocation>^Community.TagD</DataLocation>
2424
<DefaultData>TagsDefaultData</DefaultData>
25-
<IdLocation>^Community.TagsD</IdLocation>
26-
<IndexLocation>^Community.TagsI</IndexLocation>
27-
<StreamLocation>^Community.TagsS</StreamLocation>
25+
<IdLocation>^Community.TagD</IdLocation>
26+
<IndexLocation>^Community.TagI</IndexLocation>
27+
<StreamLocation>^Community.TagS</StreamLocation>
2828
<Type>%Storage.Persistent</Type>
2929
}
3030

src/gbl/Community/Tags.xml renamed to src/gbl/Community/Tag.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Export generator="IRIS" version="26" zv="IRIS for Windows (x86-64) 2020.1 (Build 214U)" ts="2020-06-30 18:05:04">
33
<Global>
4-
<Node><Sub>^Community.TagsD</Sub>
4+
<Node><Sub>^Community.TagD</Sub>
55
<Node><Sub>.NET</Sub>
66
<DataBase64>AgEGAS5ORVS9AU5FVCBGcmFtZXdvcmsgKHByb25vdW5jZWQgZG90IG5ldCkgaXMgYSBzb2Z0d2Fy
77
ZSBmcmFtZXdvcmsgZGV2ZWxvcGVkIGJ5IE1pY3Jvc29mdCB0aGF0IHJ1bnMgcHJpbWFyaWx5IG9u

0 commit comments

Comments
 (0)