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
158
Issues
158
List
Board
Labels
Milestones
Merge Requests
11
Merge Requests
11
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
6be5050a
Commit
6be5050a
authored
Nov 18, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX:Warnings]
parent
52e20122
Pipeline
#1226
failed with stage
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
Group.hs
src/Gargantext/Core/Text/List/Group.hs
+4
-4
WithScores.hs
src/Gargantext/Core/Text/List/Group/WithScores.hs
+4
-4
Social.hs
src/Gargantext/Core/Text/List/Social.hs
+6
-6
No files found.
src/Gargantext/Core/Text/List/Group.hs
View file @
6be5050a
...
@@ -42,11 +42,11 @@ toGroupedText groupParams scores =
...
@@ -42,11 +42,11 @@ toGroupedText groupParams scores =
------------------------------------------------------------------------
------------------------------------------------------------------------
-- | WIP
--
toGroupedText_test :: Bool -- Map Stem (GroupedText Int)
toGroupedText_test
::
Bool
-- Map Stem (GroupedText Int)
toGroupedText_test
=
toGroupedText_test
=
-- fromGroupedScores $ fromListScores from
-- fromGroupedScores $ fromListScores from
toGroupedText
params
from
datas
--
== result
toGroupedText
params
from
datas
==
result
where
where
params
=
GroupedTextParams
identity
(
Set
.
size
.
snd
)
fst
snd
params
=
GroupedTextParams
identity
(
Set
.
size
.
snd
)
fst
snd
from
::
Map
Text
FlowListScores
from
::
Map
Text
FlowListScores
...
@@ -88,7 +88,7 @@ toGroupedText_test =
...
@@ -88,7 +88,7 @@ toGroupedText_test =
,
_gt_children
=
Set
.
fromList
[
"A. Rahmani"
,
"B. Tamain"
]
,
_gt_children
=
Set
.
fromList
[
"A. Rahmani"
,
"B. Tamain"
]
,
_gt_size
=
2
,
_gt_size
=
2
,
_gt_stem
=
"T. Reposeur"
,
_gt_stem
=
"T. Reposeur"
,
_gt_nodes
=
Set
.
fromList
[
3
,
4
]
,
_gt_nodes
=
Set
.
fromList
[
1
..
6
]
}
}
)
)
]
]
...
...
src/Gargantext/Core/Text/List/Group/WithScores.hs
View file @
6be5050a
...
@@ -94,14 +94,14 @@ addIfNotExist :: Map Text FlowListScores
...
@@ -94,14 +94,14 @@ addIfNotExist :: Map Text FlowListScores
->
Map
Text
(
Set
NodeId
)
->
Map
Text
(
Set
NodeId
)
->
Map
Text
(
GroupedTextScores
(
Set
NodeId
))
->
Map
Text
(
GroupedTextScores
(
Set
NodeId
))
addIfNotExist
mapSocialScores
mapScores
=
addIfNotExist
mapSocialScores
mapScores
=
foldl'
(
addIfNotExist'
mapSocialScores
mapScores
)
Map
.
empty
$
Map
.
toList
mapScores
foldl'
(
addIfNotExist'
mapSocialScores
)
Map
.
empty
$
Map
.
toList
mapScores
where
where
addIfNotExist'
mss
m
s
m
(
t
,
ns
)
=
addIfNotExist'
mss
m
(
t
,
ns
)
=
case
Map
.
lookup
t
mss
of
case
Map
.
lookup
t
mss
of
Nothing
->
Map
.
alter
(
add
(
t
,
ns
)
)
t
m
Nothing
->
Map
.
alter
(
add
ns
)
t
m
_
->
m
_
->
m
add
(
t
,
ns
)
Nothing
=
Just
$
GroupedTextScores
Nothing
ns
Set
.
empty
add
ns'
Nothing
=
Just
$
GroupedTextScores
Nothing
ns'
Set
.
empty
add
_
_
=
Nothing
-- should not be present
add
_
_
=
Nothing
-- should not be present
...
...
src/Gargantext/Core/Text/List/Social.hs
View file @
6be5050a
...
@@ -89,12 +89,12 @@ flowSocialList' flowPriority user nt ngrams' =
...
@@ -89,12 +89,12 @@ flowSocialList' flowPriority user nt ngrams' =
------------------------------------------------------------------------
------------------------------------------------------------------------
flowSocialListByMode
::
(
RepoCmdM
env
err
m
flowSocialListByMode
::
(
RepoCmdM
env
err
m
,
CmdM
env
err
m
,
CmdM
env
err
m
,
HasNodeError
err
,
HasNodeError
err
,
HasTreeError
err
,
HasTreeError
err
)
)
=>
[
NodeId
]
->
NgramsType
->
Set
Text
=>
[
NodeId
]
->
NgramsType
->
Set
Text
->
m
(
Map
(
Maybe
ListType
)
(
Set
Text
))
->
m
(
Map
(
Maybe
ListType
)
(
Set
Text
))
flowSocialListByMode
[]
_nt
ngrams'
=
pure
$
Map
.
fromList
[(
Nothing
,
ngrams'
)]
flowSocialListByMode
[]
_nt
ngrams'
=
pure
$
Map
.
fromList
[(
Nothing
,
ngrams'
)]
flowSocialListByMode
listIds
nt
ngrams'
=
do
flowSocialListByMode
listIds
nt
ngrams'
=
do
counts
<-
countFilterList
ngrams'
nt
listIds
Map
.
empty
counts
<-
countFilterList
ngrams'
nt
listIds
Map
.
empty
...
...
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