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
195
Issues
195
List
Board
Labels
Milestones
Merge Requests
12
Merge Requests
12
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
6cc5cf44
Commit
6cc5cf44
authored
Aug 25, 2025
by
Alfredo Di Napoli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small code review amendment
parent
7ffa286c
Pipeline
#7826
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Ngrams.hs
src/Gargantext/API/Ngrams.hs
+2
-2
No files found.
src/Gargantext/API/Ngrams.hs
View file @
6cc5cf44
...
@@ -434,7 +434,7 @@ matchingNode :: Maybe ListType
...
@@ -434,7 +434,7 @@ matchingNode :: Maybe ListType
->
(
NgramsTerm
->
Bool
)
->
(
NgramsTerm
->
Bool
)
->
Tree
NgramsElement
->
Tree
NgramsElement
->
Bool
->
Bool
matchingNode
listType
minSize
maxSize
search
Query
(
Node
inputNode
children
)
=
matchingNode
listType
minSize
maxSize
search
Fn
(
Node
inputNode
children
)
=
let
nodeSize
=
inputNode
^.
ne_size
let
nodeSize
=
inputNode
^.
ne_size
matchesListType
=
maybe
(
const
True
)
(
==
)
listType
matchesListType
=
maybe
(
const
True
)
(
==
)
listType
respectsMinSize
=
maybe
(
const
True
)
((
<=
)
.
getMinSize
)
minSize
respectsMinSize
=
maybe
(
const
True
)
((
<=
)
.
getMinSize
)
minSize
...
@@ -443,7 +443,7 @@ matchingNode listType minSize maxSize searchQuery (Node inputNode children) =
...
@@ -443,7 +443,7 @@ matchingNode listType minSize maxSize searchQuery (Node inputNode children) =
in
respectsMinSize
nodeSize
in
respectsMinSize
nodeSize
&&
respectsMaxSize
nodeSize
&&
respectsMaxSize
nodeSize
-- Search for the query either in the root or in the children.
-- Search for the query either in the root or in the children.
&&
(
search
Query
(
inputNode
^.
ne_ngrams
)
||
any
(
matchingNode
listType
minSize
maxSize
searchQuery
)
children
)
&&
(
search
Fn
(
inputNode
^.
ne_ngrams
)
||
any
(
matchingNode
listType
minSize
maxSize
searchFn
)
children
)
&&
matchesListType
(
inputNode
^.
ne_list
)
&&
matchesListType
(
inputNode
^.
ne_list
)
-- | Version of 'buildForest' specialised over the 'NgramsElement' as the values of the tree.
-- | Version of 'buildForest' specialised over the 'NgramsElement' as the values of the tree.
...
...
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