Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clinicaltrials
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
david Chavalarias
clinicaltrials
Commits
bee9be79
Commit
bee9be79
authored
Feb 20, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
settings and details
parent
52c489c2
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
60 additions
and
34 deletions
+60
-34
explorerjs.html
explorerjs.html
+3
-16
extractDataCustom.py
services/db_to_tina_api/extractDataCustom.py
+4
-1
user.py
services/user.py
+7
-1
custom.css
static/explorerlibs/css2/custom.css
+3
-3
comex_page_rootindex.js
static/js/comex_page_rootindex.js
+24
-0
asyncFA2.js
static/tinawebJS/asyncFA2.js
+9
-5
main.js
static/tinawebJS/main.js
+1
-1
settings_explorerjs.js
static/tinawebJS/settings_explorerjs.js
+7
-6
rootindex.html
templates/rootindex.html
+2
-1
No files found.
explorerjs.html
View file @
bee9be79
...
...
@@ -9,7 +9,7 @@
<!-- ## fonts ## -->
<link
type=
"text/css"
href=
"https://fonts.googleapis.com/css?family=Ubuntu"
rel=
"stylesheet"
>
<
link
type=
"text/css"
href=
"https://fonts.googleapis.com/css?family=Droid%20Sans"
rel=
"stylesheet"
>
<
!-- <link type="text/css" href="https://fonts.googleapis.com/css?family=Droid%20Sans" rel="stylesheet"> --
>
<link
rel=
"stylesheet"
href=
"static/explorerlibs/jquery/jquery-ui.css"
media=
"screen"
>
<link
rel=
"stylesheet"
href=
"static/explorerlibs/bootstrap/css/bootstrap.css"
media=
"screen"
>
...
...
@@ -18,25 +18,12 @@
<link
rel=
"stylesheet"
href=
"static/explorerlibs/css2/sidebar.css"
media=
"screen"
>
<link
rel=
"stylesheet"
href=
"static/explorerlibs/bootswatch/css/bootswatch.css"
>
<link
rel=
"stylesheet"
href=
"static/explorerlibs/css2/font.css"
type=
"text/css"
>
<link
rel=
"stylesheet"
href=
"static/css/comex.css"
type=
"text/css"
>
<style>
.sigma_labels_canvas
{
letter-spacing
:
-.1em
;
/*^^^^^^^^^^^^^^
must be the same in hover_canvas */
opacity
:
.9
;
}
.sigma_hover_canvas
{
letter-spacing
:
-.1em
;
}
</style>
<!-- <link rel="stylesheet" href="static/css/comex.css" type="text/css"> -->
</head>
<body
class=
"gradient"
>
<body>
<!-- this is the topbar -->
<div
id=
"fixedtop"
class=
"navbar navbar-default navbar-fixed-top"
>
<div
class=
"container"
>
...
...
services/db_to_tina_api/extractDataCustom.py
View file @
bee9be79
...
...
@@ -533,7 +533,10 @@ class MyExtractor:
if
neigh
!=
str
(
scholar
):
source
=
str
(
scholar
)
target
=
str
(
neigh
)
weight
=
self
.
log_sim
(
neighbors
[
str
(
neigh
)],
# weight=self.log_sim(neighbors[str(neigh)],
# scholarsMatrix[nodeId1]['occ'],
# scholarsMatrix[neigh]['occ'])
weight
=
self
.
jaccard
(
neighbors
[
str
(
neigh
)],
scholarsMatrix
[
nodeId1
][
'occ'
],
scholarsMatrix
[
neigh
][
'occ'
])
#mlog("DEBUG", "\t"+source+","+target+" = "+str(weight))
...
...
services/user.py
View file @
bee9be79
...
...
@@ -267,9 +267,15 @@ def doors_login(email, password, config):
else
:
raise
Exception
(
'Doors request failed'
)
if
not
doorsProto
:
# ID is a string of the form: "UserID(12849e74-b039-481f-b8eb-1e52562fbda6)"
capture
=
match
(
r'UserID\(([0-9a-f-]+)\)'
,
uid
)
if
capture
:
uid
=
capture
.
groups
()[
0
]
return
uid
def
doors_register
(
email
,
password
,
name
,
config
):
def
doors_register
(
email
,
password
,
name
,
config
=
REALCONFIG
):
"""
Remote query to Doors API to register a user
"""
...
...
static/explorerlibs/css2/custom.css
View file @
bee9be79
...
...
@@ -123,11 +123,11 @@
.gradient
{
background-color
:
#f0f0f8
;
background-image
:
-webkit-radial-gradient
(
#ffffff
,
#d8d8e0
);
background-image
:
-moz-radial-gradient
(
#ffffff
,
#d8d8e0
);
/*background-image: -webkit-radial-gradient(#ffffff, #d8d8e0); background-image: -moz-radial-gradient(#ffffff, #d8d8e0);*/
/*background-color: #434343;*/
/*background-image: linear-gradient(#434343, #282828);*/
background-image
:
linear-gradient
(
0deg
,
transparent
24%
,
rgba
(
0
,
0
,
0
,
.02
)
25%
,
rgba
(
0
,
0
,
0
,
.02
)
26%
,
transparent
27%
,
transparent
74%
,
rgba
(
0
,
0
,
0
,
.02
)
75%
,
rgba
(
0
,
0
,
0
,
.02
)
76%
,
transparent
77%
,
transparent
),
linear-gradient
(
90deg
,
transparent
24%
,
rgba
(
0
,
0
,
0
,
.02
)
25%
,
rgba
(
0
,
0
,
0
,
.02
)
26%
,
transparent
27%
,
transparent
74%
,
rgba
(
0
,
0
,
0
,
.02
)
75%
,
rgba
(
0
,
0
,
0
,
.02
)
76%
,
transparent
77%
,
transparent
);
background-size
:
50px
50px
;
/*background-image: linear-gradient(0deg, transparent 24%, rgba(0, 0, 0, .02) 25%, rgba(0, 0, 0, .02) 26%, transparent 27%, transparent 74%, rgba(0, 0, 0, .02) 75%, rgba(0, 0, 0, .02) 76%, transparent 77%, transparent), linear-gradient(90deg, transparent 24%, rgba(0, 0, 0, .02) 25%, rgba(0, 0, 0, .02) 26%, transparent 27%, transparent 74%, rgba(0, 0, 0, .02) 75%, rgba(0, 0, 0, .02) 76%, transparent 77%, transparent);*/
/*background-size: 50px 50px;*/
}
/* ZOOM IN OUT */
...
...
static/js/comex_page_rootindex.js
0 → 100644
View file @
bee9be79
/**
* @fileoverview
* rootindex link fixing
* @todo
* - package.json
*
* @version 1
* @copyright ISCPIF-CNRS 2016
* @author romain.loth@iscpif.fr
*
*/
// just workaround for the profile/register iframe's loading mechanism to https
// context:
// curiously, a relative path for iframe src:'/services/user/register'
// doesn't work like other relative paths (reproducing current scheme)
// so we put an absolute path and change the domain name at rendering.
var
relsrc
=
document
.
getElementById
(
'inlink'
).
src
document
.
getElementById
(
'inlink'
).
src
=
'https://'
+
location
.
host
+
'/'
+
relsrc
console
.
log
(
"rootindex controllers load OK"
)
static/tinawebJS/asyncFA2.js
View file @
bee9be79
...
...
@@ -358,11 +358,15 @@ var ForceAtlas2 = function(graph) {
var
graph
=
this
.
graph
;
// Tuning
if
(
graph
.
nodes
.
length
>=
100
)
{
this
.
p
.
scalingRatio
=
2.0
;
}
else
{
this
.
p
.
scalingRatio
=
10.0
;
}
// if (graph.nodes.length >= 100) {
// this.p.scalingRatio = 2.0;
// } else {
// this.p.scalingRatio = 10.0;
// }
this
.
p
.
scalingRatio
=
100
/
Math
.
sqrt
(
graph
.
nodes
.
length
)
console
.
warn
(
"this p scalingRatio"
,
this
.
p
.
scalingRatio
,
"for length:"
,
graph
.
nodes
.
length
)
// POSS: trying proportional scaling instead of if
// NB: *smaller* scaling ratio improves non overlap of close neighboors
...
...
static/tinawebJS/main.js
View file @
bee9be79
...
...
@@ -127,7 +127,7 @@ function bringTheNoise(sourceinfo,type){
$
(
'.etabs a[href="#tabs1"]'
).
trigger
(
'click'
);
});
printStates
()
//
printStates()
pr
(
" ############ / changeTYPE click"
);
pr
(
""
)
});
...
...
static/tinawebJS/settings_explorerjs.js
View file @
bee9be79
...
...
@@ -33,7 +33,7 @@ var catSem = "NGram";
// newSize = oldSize + (sizeMult * oldSize)
var
sizeMult
=
[];
sizeMult
[
catSoc
]
=
0.7
;
sizeMult
[
catSoc
]
=
-
.
5
;
sizeMult
[
catSem
]
=
0.0
;
var
inactiveColor
=
'#666'
;
...
...
@@ -59,7 +59,7 @@ var desirableScholarSize=6; //Remember that all scholars have the same size!
* - "off": button doesn't exist, fa2 stopped forever
**/
var
fa2enabled
=
false
;
//"off";
var
stopcriteria
=
false
;
var
iterationsFA2
=
2
000
;
// <= should be proportional to graph size
var
iterationsFA2
=
3
000
;
// <= should be proportional to graph size
// TODO also adjust speed after initial
var
seed
=
999999999
;
//defaultseed
var
semanticConverged
=
false
;
...
...
@@ -75,12 +75,13 @@ var sigmaJsDrawingProperties = {
defaultLabelSize
:
10
,
//in fact I'm using it as minLabelSize'
defaultLabelBGColor
:
'#fff'
,
defaultLabelHoverColor
:
'#000'
,
labelThreshold
:
8
,
labelSizeRatio
:
1.
7
,
// for proportional display only
labelThreshold
:
7
,
labelSizeRatio
:
1.
3
,
// for proportional display only
defaultEdgeType
:
'curve'
,
font
:
"Droid Sans"
,
// font:"Droid Sans",
font
:
"Ubuntu"
,
borderSize
:
2
.5
,
//Something other than 0
borderSize
:
2
,
//Something other than 0
nodeBorderColor
:
"default"
,
//exactly like this
defaultNodeBorderColor
:
"black"
//,//Any color of your choice
//defaultBorderView: "always"
...
...
templates/rootindex.html
View file @
bee9be79
...
...
@@ -216,7 +216,7 @@
<div
class=
"panel panel-default wwwpanel"
>
<div
class=
"panel-heading"
>
<p
class=
"pull-up-right"
>
<a
target=
"_blank"
href=
"/services/user/{% if current_user.info %}profile{% else %}register{% endif %}"
>
<a
id=
"inlink"
target=
"_blank"
href=
"/services/user/{% if current_user.info %}profile{% else %}register{% endif %}"
>
<span
class=
"glyphicon glyphicon-new-window"
></span>
Open in another tab
</a>
...
...
@@ -283,5 +283,6 @@
// ---------
var
uinfo
=
{{
(
current_user
.
json_info
|
safe
)
if
current_user
.
info
else
(
"null"
|
safe
)
}};
</script>
<script
src=
"{{ url_for('static', filename='js/comex_page_rootindex.js') }}"
></script>
{% endblock %}
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