Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
TXTA
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dipesh Pandey
TXTA
Commits
fd2b034d
Commit
fd2b034d
authored
4 years ago
by
dipespandey08
Browse files
Options
Downloads
Patches
Plain Diff
fix the duplicate nodes in the beginning of the branches
parent
b70d87da
No related branches found
No related tags found
No related merge requests found
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+24
-4
24 additions, 4 deletions
README.md
__pycache__/app.cpython-38.pyc
+0
-0
0 additions, 0 deletions
__pycache__/app.cpython-38.pyc
drinking_water_text_10.xmi
+1319
-0
1319 additions, 0 deletions
drinking_water_text_10.xmi
services.py
+2
-2
2 additions, 2 deletions
services.py
with
1345 additions
and
6 deletions
README.md
+
24
−
4
View file @
fd2b034d
# TXTA
## How to run the app?
## How to run the app
locally
?
1.
Create a virtual environment
...
...
@@ -26,9 +26,29 @@
flask run
```
## TODO
## How to run the app using docker?
```
bash
docker-compose build
docker-compose up
```
1.
Dockerize the app
## How to deploy the app to GCP?
1.
Install gcloud
2.
upload the code to App Engine
```bash
```
3.
deploy
```bash
bash
```
## TODO
2
.
Fix duplicate nodes in the graph
1
.
Fix duplicate nodes in the graph
This diff is collapsed.
Click to expand it.
__pycache__/app.cpython-38.pyc
+
0
−
0
View file @
fd2b034d
No preview for this file type
This diff is collapsed.
Click to expand it.
drinking_water_text_10.xmi
0 → 100644
+
1319
−
0
View file @
fd2b034d
This diff is collapsed.
Click to expand it.
services.py
+
2
−
2
View file @
fd2b034d
...
...
@@ -127,7 +127,7 @@ def grapher(mappings, root):
count_in
=
random
.
randint
(
100
,
1000
)
for
k
,
v
in
st
.
items
():
cleaned_st
=
group_strings_by_n
(
k
,
4
)
cleaned_st
=
group_strings_by_n
(
k
,
5
)
count_in
+=
1
chart_data
.
node
(
str
(
count
),
cleaned_st
,
color
=
'
green
'
)
chart_data
.
edge
(
'
r
'
,
str
(
count
))
...
...
@@ -137,7 +137,7 @@ def grapher(mappings, root):
chart_data
.
edge
(
str
(
count
),
str
(
count_in
))
for
i
in
v
:
for
i
in
v
[
1
:]
:
# keep track of the old and new inner nodes
count_in_old
=
count_in
count_in
+=
1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment