Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
160
Issues
160
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
a06badd4
Commit
a06badd4
authored
Apr 02, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] workflow.
parent
178d4434
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
Flow.hs
src/Gargantext/Database/Flow.hs
+5
-4
List.hs
src/Gargantext/Text/List.hs
+1
-1
No files found.
src/Gargantext/Database/Flow.hs
View file @
a06badd4
...
@@ -159,14 +159,14 @@ flowCorpusUser l userName corpusName ctype ids = do
...
@@ -159,14 +159,14 @@ flowCorpusUser l userName corpusName ctype ids = do
_
<-
Doc
.
add
userCorpusId
ids
_
<-
Doc
.
add
userCorpusId
ids
-- User List Flow
-- User List Flow
{-
--
{-
(_masterUserId, _masterRootId, masterCorpusId) <- getOrMkRootWithCorpus userMaster ""
(
_masterUserId
,
_masterRootId
,
masterCorpusId
)
<-
getOrMkRootWithCorpus
userMaster
""
ctype
ngs
<-
buildNgramsLists
l
2
3
(
StopSize
3
)
userCorpusId
masterCorpusId
ngs
<-
buildNgramsLists
l
2
3
(
StopSize
3
)
userCorpusId
masterCorpusId
userListId
<-
flowList
userId
userCorpusId
ngs
userListId
<-
flowList
userId
userCorpusId
ngs
printDebug
"userListId"
userListId
printDebug
"userListId"
userListId
-- User Graph Flow
-- User Graph Flow
_ <- mkGraph
userCorpusId userId
_
<-
mkGraph
userCorpusId
userId
-}
-
-
}
-- User Dashboard Flow
-- User Dashboard Flow
-- _ <- mkDashboard userCorpusId userId
-- _ <- mkDashboard userCorpusId userId
...
@@ -239,6 +239,7 @@ getOrMkRootWithCorpus username cName c = do
...
@@ -239,6 +239,7 @@ getOrMkRootWithCorpus username cName c = do
------------------------------------------------------------------------
------------------------------------------------------------------------
class
UniqId
a
class
UniqId
a
where
where
uniqId
::
Lens'
a
(
Maybe
HashId
)
uniqId
::
Lens'
a
(
Maybe
HashId
)
...
...
src/Gargantext/Text/List.hs
View file @
a06badd4
...
@@ -119,4 +119,4 @@ toTermList stop ns = map (toTermList' stop CandidateTerm) xs
...
@@ -119,4 +119,4 @@ toTermList stop ns = map (toTermList' stop CandidateTerm) xs
isStopTerm
::
StopSize
->
Text
->
Bool
isStopTerm
::
StopSize
->
Text
->
Bool
isStopTerm
(
StopSize
n
)
x
=
Text
.
length
x
<
n
||
any
isStopChar
(
Text
.
unpack
x
)
isStopTerm
(
StopSize
n
)
x
=
Text
.
length
x
<
n
||
any
isStopChar
(
Text
.
unpack
x
)
where
where
isStopChar
c
=
not
(
c
`
elem
`
(
"- /()"
::
[
Char
])
||
Char
.
isAlpha
c
)
isStopChar
c
=
not
(
c
`
elem
`
(
"- /()
%
"
::
[
Char
])
||
Char
.
isAlpha
c
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment