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
14
Merge Requests
14
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
1f7535d2
Commit
1f7535d2
authored
Jul 18, 2022
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[WIP]
parent
0bcef269
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
7 deletions
+14
-7
gargantext_stop
bin/gargantext_stop
+4
-0
pkgs.nix
nix/pkgs.nix
+4
-3
server
server
+2
-2
Tools.hs
src/Gargantext/Core/Viz/Graph/Tools.hs
+4
-2
No files found.
bin/gargantext_stop
View file @
1f7535d2
#!/bin/bash
tmux kill-session
-t
gargantext
docker ps
-a
|
grep
garg |
awk
'{print $1}'
|
while
read
p
;
do
docker stop
$p
&&
docker
rm
$p
done
nix/pkgs.nix
View file @
1f7535d2
{
pkgs
?
import
./pinned-2
1.11
.nix
{}
}:
{
pkgs
?
import
./pinned-2
2.05
.nix
{}
}:
rec
{
inherit
pkgs
;
...
...
@@ -6,6 +6,7 @@ rec {
hsBuildInputs
=
[
ghc
pkgs
.
cabal-install
pkgs
.
haskellPackages
.
llvm-hs
];
nonhsBuildInputs
=
with
pkgs
;
[
bzip2
...
...
@@ -30,8 +31,8 @@ rec {
expat
icu
graphviz
l
lvm
l
ib
llvm
l
ibffi
l
lvmPackages_9
.
llvm
];
libPaths
=
pkgs
.
lib
.
makeLibraryPath
nonhsBuildInputs
;
shellHook
=
''
...
...
server
View file @
1f7535d2
...
...
@@ -9,5 +9,5 @@ LOGFILE=$FOLDER"/"$FILE
mkdir
-p
$FOLDER
#
env LANG=en_US.UTF-8 ~/.local/bin/gargantext-server --ini gargantext.ini --run Dev +RTS > $LOGFILE 2>&1 & tail -F $LOGFILE # -p
env
LANG
=
en_US.UTF-8 stack
--docker
exec
gargantext-server
--
--ini
gargantext.ini
--run
Dev +RTS
>
$LOGFILE
2>&1 &
tail
-F
$LOGFILE
# -p
env
LANG
=
en_US.UTF-8 ~/.local/bin/gargantext-server
--ini
gargantext.ini
--run
Dev +RTS
>
$LOGFILE
2>&1 &
tail
-F
$LOGFILE
# -p
#
env LANG=en_US.UTF-8 stack --docker exec gargantext-server -- --ini gargantext.ini --run Dev +RTS > $LOGFILE 2>&1 & tail -F $LOGFILE # -p
src/Gargantext/Core/Viz/Graph/Tools.hs
View file @
1f7535d2
...
...
@@ -133,8 +133,10 @@ cooc2graphWith' doPartitions distance threshold myCooc = do
confluence'
=
confluence
(
Map
.
keys
bridgeness'
)
3
True
False
seq
bridgeness'
$
printDebug
"bridgeness OK"
()
seq
confluence'
$
printDebug
"confluence OK"
()
pure
$
data2graph
ti
diag
bridgeness'
confluence'
partitions
saveAsFileDebug
"/tmp/confluence"
confluence'
let
g
=
data2graph
ti
diag
bridgeness'
confluence'
partitions
saveAsFileDebug
"/tmp/graph"
g
pure
g
doDistanceMap
::
Distance
->
Threshold
...
...
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