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
148
Issues
148
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
fe387cb2
Verified
Commit
fe387cb2
authored
May 31, 2023
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ngrams] some small refactoring
parent
5401daf1
Pipeline
#4100
passed with stages
in 61 minutes and 57 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
28 deletions
+12
-28
Types.hs
src/Gargantext/API/Ngrams/Types.hs
+12
-28
No files found.
src/Gargantext/API/Ngrams/Types.hs
View file @
fe387cb2
...
@@ -587,36 +587,20 @@ instance Applicable NgramsTablePatch (Maybe NgramsTableMap) where
...
@@ -587,36 +587,20 @@ instance Applicable NgramsTablePatch (Maybe NgramsTableMap) where
ngramsElementToRepo
::
NgramsElement
->
NgramsRepoElement
ngramsElementToRepo
::
NgramsElement
->
NgramsRepoElement
ngramsElementToRepo
ngramsElementToRepo
NgramsElement
{
..
}
=
(
NgramsElement
{
_ne_size
=
s
NgramsRepoElement
{
_nre_size
=
_ne_size
,
_ne_list
=
l
,
_nre_list
=
_ne_list
,
_ne_root
=
r
,
_nre_parent
=
_ne_parent
,
_ne_parent
=
p
,
_nre_root
=
_ne_root
,
_ne_children
=
c
,
_nre_children
=
_ne_children
}
})
=
NgramsRepoElement
{
_nre_size
=
s
,
_nre_list
=
l
,
_nre_parent
=
p
,
_nre_root
=
r
,
_nre_children
=
c
}
ngramsElementFromRepo
::
NgramsTerm
->
NgramsRepoElement
->
NgramsElement
ngramsElementFromRepo
::
NgramsTerm
->
NgramsRepoElement
->
NgramsElement
ngramsElementFromRepo
ngramsElementFromRepo
ngrams
(
NgramsRepoElement
{
..
})
=
ngrams
NgramsElement
{
_ne_size
=
_nre_size
(
NgramsRepoElement
,
_ne_list
=
_nre_list
{
_nre_size
=
s
,
_ne_root
=
_nre_root
,
_nre_list
=
l
,
_ne_parent
=
_nre_parent
,
_nre_parent
=
p
,
_ne_children
=
_nre_children
,
_nre_root
=
r
,
_nre_children
=
c
})
=
NgramsElement
{
_ne_size
=
s
,
_ne_list
=
l
,
_ne_root
=
r
,
_ne_parent
=
p
,
_ne_children
=
c
,
_ne_ngrams
=
ngrams
,
_ne_ngrams
=
ngrams
,
_ne_occurrences
=
mempty
-- panic $ "API.Ngrams.Types._ne_occurrences"
,
_ne_occurrences
=
mempty
-- panic $ "API.Ngrams.Types._ne_occurrences"
{-
{-
...
...
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