lazar-gui 1.0.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/FAQ.md +14 -25
- data/Gemfile +3 -1
- data/LICENSE.md +596 -0
- data/VERSION +1 -1
- data/application.rb +71 -191
- data/config.ru +2 -1
- data/helper.rb +0 -215
- data/lazar-gui.gemspec +7 -7
- data/public/css/bootstrap.vertical-tabs.min.css +1 -0
- data/public/jsme/.DS_Store +0 -0
- data/public/jsme/222ADBFEC322C2723C6ED2C4FB31B217.cache.js +1 -0
- data/public/jsme/293DFEFA807A962F28C09E358B34A434.cache.js +1 -0
- data/public/jsme/61B683D3493CAED438D5743A0404863D.cache.js +1 -0
- data/public/jsme/6ABB8447ACAB1353A478923AC9C0550B.cache.js +1 -0
- data/public/jsme/7A65B607B90DE29D7EA26AA83BF69D4F.cache.js +1 -0
- data/public/jsme/8816D61E367E34DBCFA53666849E21D8.cache.js +1 -0
- data/public/jsme/8BDB7ED57B756F8D50277056A0D59DA8.cache.js +1 -0
- data/public/jsme/96E40B969193BD74B8A621486920E79C.cache.js +606 -0
- data/public/jsme/A2384E54F71557BAEA414A43D47F17EA.cache.js +1 -0
- data/public/jsme/A6DBDE07E3A8F66E8959A4F32505E16B.cache.png +0 -0
- data/public/jsme/C8A71BD2E1367E9BB43A1B9C25871BEE.cache.js +1 -0
- data/public/jsme/C9EEF554958AACEE6A060F620375E4FA.cache.js +1 -0
- data/public/jsme/D4DF9EC9DD21B943E35F3D5696D5D2A1.cache.js +1 -0
- data/public/jsme/D9A64F1634E29088B910B3E0D4621E49.cache.js +1 -0
- data/public/jsme/compilation-mappings.txt +2689 -0
- data/public/jsme/deferredjs/.DS_Store +0 -0
- data/public/jsme/deferredjs/222ADBFEC322C2723C6ED2C4FB31B217/1.cache.js +1 -0
- data/public/jsme/deferredjs/222ADBFEC322C2723C6ED2C4FB31B217/2.cache.js +1 -0
- data/public/jsme/deferredjs/222ADBFEC322C2723C6ED2C4FB31B217/3.cache.js +1 -0
- data/public/jsme/deferredjs/222ADBFEC322C2723C6ED2C4FB31B217/4.cache.js +1 -0
- data/public/jsme/deferredjs/222ADBFEC322C2723C6ED2C4FB31B217/5.cache.js +1 -0
- data/public/jsme/deferredjs/222ADBFEC322C2723C6ED2C4FB31B217/6.cache.js +1 -0
- data/public/jsme/deferredjs/222ADBFEC322C2723C6ED2C4FB31B217/7.cache.js +1 -0
- data/public/jsme/deferredjs/222ADBFEC322C2723C6ED2C4FB31B217/8.cache.js +1 -0
- data/public/jsme/deferredjs/222ADBFEC322C2723C6ED2C4FB31B217/9.cache.js +1 -0
- data/public/jsme/deferredjs/293DFEFA807A962F28C09E358B34A434/1.cache.js +1 -0
- data/public/jsme/deferredjs/293DFEFA807A962F28C09E358B34A434/2.cache.js +1 -0
- data/public/jsme/deferredjs/293DFEFA807A962F28C09E358B34A434/3.cache.js +1 -0
- data/public/jsme/deferredjs/293DFEFA807A962F28C09E358B34A434/4.cache.js +1 -0
- data/public/jsme/deferredjs/293DFEFA807A962F28C09E358B34A434/5.cache.js +1 -0
- data/public/jsme/deferredjs/293DFEFA807A962F28C09E358B34A434/6.cache.js +1 -0
- data/public/jsme/deferredjs/293DFEFA807A962F28C09E358B34A434/7.cache.js +1 -0
- data/public/jsme/deferredjs/293DFEFA807A962F28C09E358B34A434/8.cache.js +1 -0
- data/public/jsme/deferredjs/293DFEFA807A962F28C09E358B34A434/9.cache.js +1 -0
- data/public/jsme/deferredjs/61B683D3493CAED438D5743A0404863D/1.cache.js +1 -0
- data/public/jsme/deferredjs/61B683D3493CAED438D5743A0404863D/2.cache.js +1 -0
- data/public/jsme/deferredjs/61B683D3493CAED438D5743A0404863D/3.cache.js +1 -0
- data/public/jsme/deferredjs/61B683D3493CAED438D5743A0404863D/4.cache.js +1 -0
- data/public/jsme/deferredjs/61B683D3493CAED438D5743A0404863D/5.cache.js +1 -0
- data/public/jsme/deferredjs/61B683D3493CAED438D5743A0404863D/6.cache.js +1 -0
- data/public/jsme/deferredjs/61B683D3493CAED438D5743A0404863D/7.cache.js +1 -0
- data/public/jsme/deferredjs/61B683D3493CAED438D5743A0404863D/8.cache.js +1 -0
- data/public/jsme/deferredjs/61B683D3493CAED438D5743A0404863D/9.cache.js +1 -0
- data/public/jsme/deferredjs/6ABB8447ACAB1353A478923AC9C0550B/1.cache.js +1 -0
- data/public/jsme/deferredjs/6ABB8447ACAB1353A478923AC9C0550B/2.cache.js +1 -0
- data/public/jsme/deferredjs/6ABB8447ACAB1353A478923AC9C0550B/3.cache.js +1 -0
- data/public/jsme/deferredjs/6ABB8447ACAB1353A478923AC9C0550B/4.cache.js +1 -0
- data/public/jsme/deferredjs/6ABB8447ACAB1353A478923AC9C0550B/5.cache.js +1 -0
- data/public/jsme/deferredjs/6ABB8447ACAB1353A478923AC9C0550B/6.cache.js +1 -0
- data/public/jsme/deferredjs/6ABB8447ACAB1353A478923AC9C0550B/7.cache.js +1 -0
- data/public/jsme/deferredjs/6ABB8447ACAB1353A478923AC9C0550B/8.cache.js +1 -0
- data/public/jsme/deferredjs/6ABB8447ACAB1353A478923AC9C0550B/9.cache.js +1 -0
- data/public/jsme/deferredjs/7A65B607B90DE29D7EA26AA83BF69D4F/1.cache.js +1 -0
- data/public/jsme/deferredjs/7A65B607B90DE29D7EA26AA83BF69D4F/2.cache.js +1 -0
- data/public/jsme/deferredjs/7A65B607B90DE29D7EA26AA83BF69D4F/3.cache.js +1 -0
- data/public/jsme/deferredjs/7A65B607B90DE29D7EA26AA83BF69D4F/4.cache.js +1 -0
- data/public/jsme/deferredjs/7A65B607B90DE29D7EA26AA83BF69D4F/5.cache.js +1 -0
- data/public/jsme/deferredjs/7A65B607B90DE29D7EA26AA83BF69D4F/6.cache.js +1 -0
- data/public/jsme/deferredjs/7A65B607B90DE29D7EA26AA83BF69D4F/7.cache.js +1 -0
- data/public/jsme/deferredjs/7A65B607B90DE29D7EA26AA83BF69D4F/8.cache.js +1 -0
- data/public/jsme/deferredjs/7A65B607B90DE29D7EA26AA83BF69D4F/9.cache.js +1 -0
- data/public/jsme/deferredjs/8816D61E367E34DBCFA53666849E21D8/1.cache.js +1 -0
- data/public/jsme/deferredjs/8816D61E367E34DBCFA53666849E21D8/2.cache.js +1 -0
- data/public/jsme/deferredjs/8816D61E367E34DBCFA53666849E21D8/3.cache.js +1 -0
- data/public/jsme/deferredjs/8816D61E367E34DBCFA53666849E21D8/4.cache.js +1 -0
- data/public/jsme/deferredjs/8816D61E367E34DBCFA53666849E21D8/5.cache.js +1 -0
- data/public/jsme/deferredjs/8816D61E367E34DBCFA53666849E21D8/6.cache.js +1 -0
- data/public/jsme/deferredjs/8816D61E367E34DBCFA53666849E21D8/7.cache.js +1 -0
- data/public/jsme/deferredjs/8816D61E367E34DBCFA53666849E21D8/8.cache.js +1 -0
- data/public/jsme/deferredjs/8816D61E367E34DBCFA53666849E21D8/9.cache.js +1 -0
- data/public/jsme/deferredjs/8BDB7ED57B756F8D50277056A0D59DA8/1.cache.js +1 -0
- data/public/jsme/deferredjs/8BDB7ED57B756F8D50277056A0D59DA8/2.cache.js +1 -0
- data/public/jsme/deferredjs/8BDB7ED57B756F8D50277056A0D59DA8/3.cache.js +1 -0
- data/public/jsme/deferredjs/8BDB7ED57B756F8D50277056A0D59DA8/4.cache.js +1 -0
- data/public/jsme/deferredjs/8BDB7ED57B756F8D50277056A0D59DA8/5.cache.js +1 -0
- data/public/jsme/deferredjs/8BDB7ED57B756F8D50277056A0D59DA8/6.cache.js +1 -0
- data/public/jsme/deferredjs/8BDB7ED57B756F8D50277056A0D59DA8/7.cache.js +1 -0
- data/public/jsme/deferredjs/8BDB7ED57B756F8D50277056A0D59DA8/8.cache.js +1 -0
- data/public/jsme/deferredjs/8BDB7ED57B756F8D50277056A0D59DA8/9.cache.js +1 -0
- data/public/jsme/deferredjs/A2384E54F71557BAEA414A43D47F17EA/1.cache.js +1 -0
- data/public/jsme/deferredjs/A2384E54F71557BAEA414A43D47F17EA/2.cache.js +1 -0
- data/public/jsme/deferredjs/A2384E54F71557BAEA414A43D47F17EA/3.cache.js +1 -0
- data/public/jsme/deferredjs/A2384E54F71557BAEA414A43D47F17EA/4.cache.js +1 -0
- data/public/jsme/deferredjs/A2384E54F71557BAEA414A43D47F17EA/5.cache.js +1 -0
- data/public/jsme/deferredjs/A2384E54F71557BAEA414A43D47F17EA/6.cache.js +1 -0
- data/public/jsme/deferredjs/A2384E54F71557BAEA414A43D47F17EA/7.cache.js +1 -0
- data/public/jsme/deferredjs/A2384E54F71557BAEA414A43D47F17EA/8.cache.js +1 -0
- data/public/jsme/deferredjs/A2384E54F71557BAEA414A43D47F17EA/9.cache.js +1 -0
- data/public/jsme/deferredjs/C8A71BD2E1367E9BB43A1B9C25871BEE/1.cache.js +1 -0
- data/public/jsme/deferredjs/C8A71BD2E1367E9BB43A1B9C25871BEE/2.cache.js +1 -0
- data/public/jsme/deferredjs/C8A71BD2E1367E9BB43A1B9C25871BEE/3.cache.js +1 -0
- data/public/jsme/deferredjs/C8A71BD2E1367E9BB43A1B9C25871BEE/4.cache.js +1 -0
- data/public/jsme/deferredjs/C8A71BD2E1367E9BB43A1B9C25871BEE/5.cache.js +1 -0
- data/public/jsme/deferredjs/C8A71BD2E1367E9BB43A1B9C25871BEE/6.cache.js +1 -0
- data/public/jsme/deferredjs/C8A71BD2E1367E9BB43A1B9C25871BEE/7.cache.js +1 -0
- data/public/jsme/deferredjs/C8A71BD2E1367E9BB43A1B9C25871BEE/8.cache.js +1 -0
- data/public/jsme/deferredjs/C8A71BD2E1367E9BB43A1B9C25871BEE/9.cache.js +1 -0
- data/public/jsme/deferredjs/C9EEF554958AACEE6A060F620375E4FA/1.cache.js +1 -0
- data/public/jsme/deferredjs/C9EEF554958AACEE6A060F620375E4FA/2.cache.js +1 -0
- data/public/jsme/deferredjs/C9EEF554958AACEE6A060F620375E4FA/3.cache.js +1 -0
- data/public/jsme/deferredjs/C9EEF554958AACEE6A060F620375E4FA/4.cache.js +1 -0
- data/public/jsme/deferredjs/C9EEF554958AACEE6A060F620375E4FA/5.cache.js +1 -0
- data/public/jsme/deferredjs/C9EEF554958AACEE6A060F620375E4FA/6.cache.js +1 -0
- data/public/jsme/deferredjs/C9EEF554958AACEE6A060F620375E4FA/7.cache.js +1 -0
- data/public/jsme/deferredjs/C9EEF554958AACEE6A060F620375E4FA/8.cache.js +1 -0
- data/public/jsme/deferredjs/C9EEF554958AACEE6A060F620375E4FA/9.cache.js +1 -0
- data/public/jsme/deferredjs/D4DF9EC9DD21B943E35F3D5696D5D2A1/1.cache.js +1 -0
- data/public/jsme/deferredjs/D4DF9EC9DD21B943E35F3D5696D5D2A1/2.cache.js +1 -0
- data/public/jsme/deferredjs/D4DF9EC9DD21B943E35F3D5696D5D2A1/3.cache.js +1 -0
- data/public/jsme/deferredjs/D4DF9EC9DD21B943E35F3D5696D5D2A1/4.cache.js +1 -0
- data/public/jsme/deferredjs/D4DF9EC9DD21B943E35F3D5696D5D2A1/5.cache.js +1 -0
- data/public/jsme/deferredjs/D4DF9EC9DD21B943E35F3D5696D5D2A1/6.cache.js +1 -0
- data/public/jsme/deferredjs/D4DF9EC9DD21B943E35F3D5696D5D2A1/7.cache.js +1 -0
- data/public/jsme/deferredjs/D4DF9EC9DD21B943E35F3D5696D5D2A1/8.cache.js +1 -0
- data/public/jsme/deferredjs/D4DF9EC9DD21B943E35F3D5696D5D2A1/9.cache.js +1 -0
- data/public/jsme/deferredjs/D9A64F1634E29088B910B3E0D4621E49/1.cache.js +1 -0
- data/public/jsme/deferredjs/D9A64F1634E29088B910B3E0D4621E49/2.cache.js +1 -0
- data/public/jsme/deferredjs/D9A64F1634E29088B910B3E0D4621E49/3.cache.js +1 -0
- data/public/jsme/deferredjs/D9A64F1634E29088B910B3E0D4621E49/4.cache.js +1 -0
- data/public/jsme/deferredjs/D9A64F1634E29088B910B3E0D4621E49/5.cache.js +1 -0
- data/public/jsme/deferredjs/D9A64F1634E29088B910B3E0D4621E49/6.cache.js +1 -0
- data/public/jsme/deferredjs/D9A64F1634E29088B910B3E0D4621E49/7.cache.js +1 -0
- data/public/jsme/deferredjs/D9A64F1634E29088B910B3E0D4621E49/8.cache.js +1 -0
- data/public/jsme/deferredjs/D9A64F1634E29088B910B3E0D4621E49/9.cache.js +1 -0
- data/public/jsme/gwt/.DS_Store +0 -0
- data/public/jsme/gwt/chrome/.DS_Store +0 -0
- data/public/jsme/jsa.css +10 -2
- data/public/jsme/jsme.devmode.js +1 -0
- data/public/jsme/jsme.nocache.js +27 -18
- data/views/batch.haml +74 -32
- data/views/details.haml +6 -2
- data/views/layout.haml +34 -25
- data/views/license.haml +1 -0
- data/views/model_details.haml +91 -67
- data/views/neighbors.haml +14 -35
- data/views/predict.haml +8 -5
- data/views/prediction.haml +79 -51
- data/views/style.scss +36 -9
- metadata +148 -93
- data/public/jsme/057C029061D565E59B91BCF8D80FA08E.cache.html +0 -651
- data/public/jsme/05B63F17C4ECC632F0004998FE93F0D9.cache.png +0 -0
- data/public/jsme/0D71BA88E8DB59E613D3BD042277F3CA.cache.html +0 -636
- data/public/jsme/143B86F220A77EA4A06DF2CE62EF455A.cache.html +0 -636
- data/public/jsme/1AFB129BECD672F835F8C27B14A9D8F2.cache.html +0 -619
- data/public/jsme/20865588BA1E58170CC8C13CEAD50C3C.cache.html +0 -615
- data/public/jsme/20B12D7884BFE17E1879B157A966B4D0.cache.html +0 -631
- data/public/jsme/222DCE3CD01E8F29C3D81A37CE3EC2B8.cache.html +0 -626
- data/public/jsme/230043C4988F4EECEF225437640D792F.cache.html +0 -625
- data/public/jsme/3014E46F5C6FB35E6CF0D7870071174B.cache.html +0 -615
- data/public/jsme/3F57AECC67986E796A3148265F038FF1.cache.html +0 -639
- data/public/jsme/469A5B5AE16905A2CD712E25B9517A14.cache.html +0 -644
- data/public/jsme/4722AB194B521805C997130865A7EE3D.cache.html +0 -638
- data/public/jsme/497588C27DED1A6E8FE1E0AB8417B414.cache.html +0 -626
- data/public/jsme/571D27D70DEF8240841DA5CAFC363CFF.cache.html +0 -619
- data/public/jsme/5F7FD5A5750634DF9F5480F2778D9CD7.cache.html +0 -651
- data/public/jsme/6187B195CC6073B1DB0A30F6CD64ACA3.cache.html +0 -620
- data/public/jsme/6DED0C7A48F0BB72DDB1FDE5C05E60B5.cache.html +0 -642
- data/public/jsme/73F66F1A578E65144682885B3DC28556.cache.html +0 -620
- data/public/jsme/76252DEA9FB0A670947525C4C89E2530.cache.html +0 -657
- data/public/jsme/84DE2DAB8AD49C4E122A548C4B072500.cache.html +0 -625
- data/public/jsme/98150D1CD230B36339E35812F0BD3D0E.cache.html +0 -629
- data/public/jsme/9BA3A5A02DFF97BADFD3F9FE3817341B.cache.html +0 -636
- data/public/jsme/9D58CD61900096C805154C0AC693DCE7.cache.html +0 -639
- data/public/jsme/A3D2B7C95C4FC47DB0996CBDF930EA17.cache.html +0 -657
- data/public/jsme/A6DF9CFFF55769DE62DA6868C558B3F2.cache.html +0 -629
- data/public/jsme/B70D7DA2E93A6B0FB7E5BC15540F7B15.cache.html +0 -645
- data/public/jsme/E07214401017B41AF0BDAB1EB811CC83.cache.html +0 -645
- data/public/jsme/E45DF2A61DB551567FA3454B1A00412D.cache.html +0 -631
- data/public/jsme/E97CDFD075EEB4D0578A219C5564A988.cache.html +0 -642
- data/public/jsme/EBCDA5C12B4318C17A4741474FB9D7CA.cache.html +0 -643
- data/public/jsme/hosted.html +0 -365
- data/views/faq_layout.haml +0 -67
- data/views/validation.haml +0 -16
data/public/jsme/hosted.html
DELETED
@@ -1,365 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head><script>
|
3
|
-
var $wnd = parent;
|
4
|
-
var $doc = $wnd.document;
|
5
|
-
var $moduleName, $moduleBase, $entry
|
6
|
-
,$stats = $wnd.__gwtStatsEvent ? function(a) {return $wnd.__gwtStatsEvent(a);} : null
|
7
|
-
,$sessionId = $wnd.__gwtStatsSessionId ? $wnd.__gwtStatsSessionId : null;
|
8
|
-
// Lightweight metrics
|
9
|
-
if ($stats) {
|
10
|
-
var moduleFuncName = location.search.substr(1);
|
11
|
-
var moduleFunc = $wnd[moduleFuncName];
|
12
|
-
var moduleName = moduleFunc ? moduleFunc.moduleName : "unknown";
|
13
|
-
$stats({moduleName:moduleName,sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalStart'});
|
14
|
-
}
|
15
|
-
var $hostedHtmlVersion="2.1";
|
16
|
-
|
17
|
-
var gwtOnLoad;
|
18
|
-
var $hosted = "localhost:9997";
|
19
|
-
|
20
|
-
function loadIframe(url) {
|
21
|
-
var topDoc = window.top.document;
|
22
|
-
|
23
|
-
// create an iframe
|
24
|
-
var iframeDiv = topDoc.createElement("div");
|
25
|
-
iframeDiv.innerHTML = "<iframe scrolling=no frameborder=0 src='" + url + "'>";
|
26
|
-
var iframe = iframeDiv.firstChild;
|
27
|
-
|
28
|
-
// mess with the iframe style a little
|
29
|
-
var iframeStyle = iframe.style;
|
30
|
-
iframeStyle.position = "absolute";
|
31
|
-
iframeStyle.borderWidth = "0";
|
32
|
-
iframeStyle.left = "0";
|
33
|
-
iframeStyle.top = "0";
|
34
|
-
iframeStyle.width = "100%";
|
35
|
-
iframeStyle.backgroundColor = "#ffffff";
|
36
|
-
iframeStyle.zIndex = "1";
|
37
|
-
iframeStyle.height = "100%";
|
38
|
-
|
39
|
-
// update the top window's document's body's style
|
40
|
-
var hostBodyStyle = window.top.document.body.style;
|
41
|
-
hostBodyStyle.margin = "0";
|
42
|
-
hostBodyStyle.height = iframeStyle.height;
|
43
|
-
hostBodyStyle.overflow = "hidden";
|
44
|
-
|
45
|
-
// insert the iframe
|
46
|
-
topDoc.body.insertBefore(iframe, topDoc.body.firstChild);
|
47
|
-
}
|
48
|
-
|
49
|
-
var ua = navigator.userAgent.toLowerCase();
|
50
|
-
if (ua.indexOf("gecko") != -1) {
|
51
|
-
// install eval wrapper on FF to avoid EvalError problem
|
52
|
-
var __eval = window.eval;
|
53
|
-
window.eval = function(s) {
|
54
|
-
return __eval(s);
|
55
|
-
}
|
56
|
-
}
|
57
|
-
if (ua.indexOf("chrome") != -1) {
|
58
|
-
// work around __gwt_ObjectId appearing in JS objects
|
59
|
-
var hop = Object.prototype.hasOwnProperty;
|
60
|
-
Object.prototype.hasOwnProperty = function(prop) {
|
61
|
-
return prop != "__gwt_ObjectId" && hop.call(this, prop);
|
62
|
-
};
|
63
|
-
// do the same in our parent as well -- see issue 4486
|
64
|
-
// NOTE: this will have to be changed when we support non-iframe-based DevMode
|
65
|
-
var hop2 = parent.Object.prototype.hasOwnProperty;
|
66
|
-
parent.Object.prototype.hasOwnProperty = function(prop) {
|
67
|
-
return prop != "__gwt_ObjectId" && hop2.call(this, prop);
|
68
|
-
};
|
69
|
-
}
|
70
|
-
|
71
|
-
// wrapper to call JS methods, which we need both to be able to supply a
|
72
|
-
// different this for method lookup and to get the exception back
|
73
|
-
function __gwt_jsInvoke(thisObj, methodName) {
|
74
|
-
try {
|
75
|
-
var args = Array.prototype.slice.call(arguments, 2);
|
76
|
-
return [0, window[methodName].apply(thisObj, args)];
|
77
|
-
} catch (e) {
|
78
|
-
return [1, e];
|
79
|
-
}
|
80
|
-
}
|
81
|
-
|
82
|
-
var __gwt_javaInvokes = [];
|
83
|
-
function __gwt_makeJavaInvoke(argCount) {
|
84
|
-
return __gwt_javaInvokes[argCount] || __gwt_doMakeJavaInvoke(argCount);
|
85
|
-
}
|
86
|
-
|
87
|
-
function __gwt_doMakeJavaInvoke(argCount) {
|
88
|
-
// IE6 won't eval() anonymous functions except as r-values
|
89
|
-
var argList = "";
|
90
|
-
for (var i = 0; i < argCount; i++) {
|
91
|
-
argList += ",p" + i;
|
92
|
-
}
|
93
|
-
var argListNoComma = argList.substring(1);
|
94
|
-
|
95
|
-
return eval(
|
96
|
-
"__gwt_javaInvokes[" + argCount + "] =\n" +
|
97
|
-
" function(thisObj, dispId" + argList + ") {\n" +
|
98
|
-
" var result = __static(dispId, thisObj" + argList + ");\n" +
|
99
|
-
" if (result[0]) {\n" +
|
100
|
-
" throw result[1];\n" +
|
101
|
-
" } else {\n" +
|
102
|
-
" return result[1];\n" +
|
103
|
-
" }\n" +
|
104
|
-
" }\n"
|
105
|
-
);
|
106
|
-
}
|
107
|
-
|
108
|
-
/*
|
109
|
-
* This is used to create tear-offs of Java methods. Each function corresponds
|
110
|
-
* to exactly one dispId, and also embeds the argument count. We get the "this"
|
111
|
-
* value from the context in which the function is being executed.
|
112
|
-
* Function-object identity is preserved by caching in a sparse array.
|
113
|
-
*/
|
114
|
-
var __gwt_tearOffs = [];
|
115
|
-
var __gwt_tearOffGenerators = [];
|
116
|
-
function __gwt_makeTearOff(proxy, dispId, argCount) {
|
117
|
-
return __gwt_tearOffs[dispId] || __gwt_doMakeTearOff(dispId, argCount);
|
118
|
-
}
|
119
|
-
|
120
|
-
function __gwt_doMakeTearOff(dispId, argCount) {
|
121
|
-
return __gwt_tearOffs[dispId] =
|
122
|
-
(__gwt_tearOffGenerators[argCount] || __gwt_doMakeTearOffGenerator(argCount))(dispId);
|
123
|
-
}
|
124
|
-
|
125
|
-
function __gwt_doMakeTearOffGenerator(argCount) {
|
126
|
-
// IE6 won't eval() anonymous functions except as r-values
|
127
|
-
var argList = "";
|
128
|
-
for (var i = 0; i < argCount; i++) {
|
129
|
-
argList += ",p" + i;
|
130
|
-
}
|
131
|
-
var argListNoComma = argList.substring(1);
|
132
|
-
|
133
|
-
return eval(
|
134
|
-
"__gwt_tearOffGenerators[" + argCount + "] =\n" +
|
135
|
-
" function(dispId) {\n" +
|
136
|
-
" return function(" + argListNoComma + ") {\n" +
|
137
|
-
" var result = __static(dispId, this" + argList + ");\n" +
|
138
|
-
" if (result[0]) {\n" +
|
139
|
-
" throw result[1];\n" +
|
140
|
-
" } else {\n" +
|
141
|
-
" return result[1];\n" +
|
142
|
-
" }\n" +
|
143
|
-
" }\n" +
|
144
|
-
" }\n"
|
145
|
-
);
|
146
|
-
}
|
147
|
-
|
148
|
-
function __gwt_makeResult(isException, result) {
|
149
|
-
return [isException, result];
|
150
|
-
}
|
151
|
-
|
152
|
-
function __gwt_disconnected() {
|
153
|
-
// Prevent double-invocation.
|
154
|
-
window.__gwt_disconnected = new Function();
|
155
|
-
// Do it in a timeout so we can be sure we have a clean stack.
|
156
|
-
window.setTimeout(__gwt_disconnected_impl, 1);
|
157
|
-
}
|
158
|
-
|
159
|
-
function __gwt_disconnected_impl() {
|
160
|
-
__gwt_displayGlassMessage('GWT Code Server Disconnected',
|
161
|
-
'Most likely, you closed GWT Development Mode. Or, you might have lost '
|
162
|
-
+ 'network connectivity. To fix this, try restarting GWT Development Mode and '
|
163
|
-
+ 'refresh this page.');
|
164
|
-
}
|
165
|
-
|
166
|
-
// Keep track of z-index to allow layering of multiple glass messages
|
167
|
-
var __gwt_glassMessageZIndex = 2147483647;
|
168
|
-
|
169
|
-
// Note this method is also used by ModuleSpace.java
|
170
|
-
function __gwt_displayGlassMessage(summary, details) {
|
171
|
-
var topWin = window.top;
|
172
|
-
var topDoc = topWin.document;
|
173
|
-
var outer = topDoc.createElement("div");
|
174
|
-
// Do not insert whitespace or outer.firstChild will get a text node.
|
175
|
-
outer.innerHTML =
|
176
|
-
'<div style="position:absolute;z-index:' + __gwt_glassMessageZIndex-- +
|
177
|
-
';left:50px;top:50px;width:600px;color:#FFF;font-family:verdana;text-align:left;">' +
|
178
|
-
'<div style="font-size:30px;font-weight:bold;">' + summary + '</div>' +
|
179
|
-
'<div style="font-size:15px;">' + details + '</div>' +
|
180
|
-
'</div>' +
|
181
|
-
'<div style="position:absolute;z-index:' + __gwt_glassMessageZIndex-- +
|
182
|
-
';left:0px;top:0px;right:0px;bottom:0px;filter:alpha(opacity=60);opacity:0.6;background-color:#000;"></div>'
|
183
|
-
;
|
184
|
-
topDoc.body.appendChild(outer);
|
185
|
-
var glass = outer.firstChild;
|
186
|
-
var glassStyle = glass.style;
|
187
|
-
|
188
|
-
// Scroll to the top and remove scrollbars.
|
189
|
-
topWin.scrollTo(0, 0);
|
190
|
-
if (topDoc.compatMode == "BackCompat") {
|
191
|
-
topDoc.body.style["overflow"] = "hidden";
|
192
|
-
} else {
|
193
|
-
topDoc.documentElement.style["overflow"] = "hidden";
|
194
|
-
}
|
195
|
-
|
196
|
-
// Steal focus.
|
197
|
-
glass.focus();
|
198
|
-
|
199
|
-
if ((navigator.userAgent.indexOf("MSIE") >= 0) && (topDoc.compatMode == "BackCompat")) {
|
200
|
-
// IE quirks mode doesn't support right/bottom, but does support this.
|
201
|
-
glassStyle.width = "125%";
|
202
|
-
glassStyle.height = "100%";
|
203
|
-
} else if (navigator.userAgent.indexOf("MSIE 6") >= 0) {
|
204
|
-
// IE6 doesn't have a real standards mode, so we have to use hacks.
|
205
|
-
glassStyle.width = "125%"; // Get past scroll bar area.
|
206
|
-
// Nasty CSS; onresize would be better but the outer window won't let us add a listener IE.
|
207
|
-
glassStyle.setExpression("height", "document.documentElement.clientHeight");
|
208
|
-
}
|
209
|
-
|
210
|
-
$doc.title = summary + " [" + $doc.title + "]";
|
211
|
-
}
|
212
|
-
|
213
|
-
function findPluginObject() {
|
214
|
-
try {
|
215
|
-
return document.getElementById('pluginObject');
|
216
|
-
} catch (e) {
|
217
|
-
return null;
|
218
|
-
}
|
219
|
-
}
|
220
|
-
|
221
|
-
function findPluginEmbed() {
|
222
|
-
try {
|
223
|
-
return document.getElementById('pluginEmbed')
|
224
|
-
} catch (e) {
|
225
|
-
return null;
|
226
|
-
}
|
227
|
-
}
|
228
|
-
|
229
|
-
function findPluginXPCOM() {
|
230
|
-
try {
|
231
|
-
return __gwt_HostedModePlugin;
|
232
|
-
} catch (e) {
|
233
|
-
return null;
|
234
|
-
}
|
235
|
-
}
|
236
|
-
|
237
|
-
gwtOnLoad = function(errFn, modName, modBase){
|
238
|
-
$moduleName = modName;
|
239
|
-
$moduleBase = modBase;
|
240
|
-
|
241
|
-
// Note that the order is important
|
242
|
-
var pluginFinders = [
|
243
|
-
findPluginXPCOM,
|
244
|
-
findPluginObject,
|
245
|
-
findPluginEmbed,
|
246
|
-
];
|
247
|
-
var topWin = window.top;
|
248
|
-
var url = topWin.location.href;
|
249
|
-
if (!topWin.__gwt_SessionID) {
|
250
|
-
var ASCII_EXCLAMATION = 33;
|
251
|
-
var ASCII_TILDE = 126;
|
252
|
-
var chars = [];
|
253
|
-
for (var i = 0; i < 16; ++i) {
|
254
|
-
chars.push(Math.floor(ASCII_EXCLAMATION
|
255
|
-
+ Math.random() * (ASCII_TILDE - ASCII_EXCLAMATION + 1)));
|
256
|
-
}
|
257
|
-
topWin.__gwt_SessionID = String.fromCharCode.apply(null, chars);
|
258
|
-
}
|
259
|
-
var plugin = null;
|
260
|
-
for (var i = 0; i < pluginFinders.length; ++i) {
|
261
|
-
try {
|
262
|
-
var maybePlugin = pluginFinders[i]();
|
263
|
-
if (maybePlugin != null && maybePlugin.init(window)) {
|
264
|
-
plugin = maybePlugin;
|
265
|
-
break;
|
266
|
-
}
|
267
|
-
} catch (e) {
|
268
|
-
}
|
269
|
-
}
|
270
|
-
if (!plugin) {
|
271
|
-
// try searching for a v1 plugin for backwards compatibility
|
272
|
-
var found = false;
|
273
|
-
for (var i = 0; i < pluginFinders.length; ++i) {
|
274
|
-
try {
|
275
|
-
plugin = pluginFinders[i]();
|
276
|
-
if (plugin != null && plugin.connect($hosted, $moduleName, window)) {
|
277
|
-
return;
|
278
|
-
}
|
279
|
-
} catch (e) {
|
280
|
-
}
|
281
|
-
}
|
282
|
-
loadIframe("http://gwt.google.com/missing-plugin");
|
283
|
-
} else {
|
284
|
-
if (plugin.connect(url, topWin.__gwt_SessionID, $hosted, $moduleName,
|
285
|
-
$hostedHtmlVersion)) {
|
286
|
-
window.onUnload = function() {
|
287
|
-
try {
|
288
|
-
// wrap in try/catch since plugins are not required to supply this
|
289
|
-
plugin.disconnect();
|
290
|
-
} catch (e) {
|
291
|
-
}
|
292
|
-
};
|
293
|
-
} else {
|
294
|
-
if (errFn) {
|
295
|
-
errFn(modName);
|
296
|
-
} else {
|
297
|
-
__gwt_displayGlassMessage(
|
298
|
-
"Plugin failed to connect to Development Mode server at " + simpleEscape($hosted),
|
299
|
-
"Follow the troubleshooting instructions at "
|
300
|
-
+ "<a href='http://code.google.com/p/google-web-toolkit/wiki/TroubleshootingOOPHM'>"
|
301
|
-
+ "http://code.google.com/p/google-web-toolkit/wiki/TroubleshootingOOPHM</a>");
|
302
|
-
}
|
303
|
-
}
|
304
|
-
}
|
305
|
-
}
|
306
|
-
|
307
|
-
function simpleEscape(originalString) {
|
308
|
-
return originalString.replace(/&/g,"&")
|
309
|
-
.replace(/</g,"<")
|
310
|
-
.replace(/>/g,">")
|
311
|
-
.replace(/\'/g, "'")
|
312
|
-
.replace(/\"/g,""");
|
313
|
-
}
|
314
|
-
|
315
|
-
window.onunload = function() {
|
316
|
-
};
|
317
|
-
|
318
|
-
// Lightweight metrics
|
319
|
-
window.fireOnModuleLoadStart = function(className) {
|
320
|
-
$stats && $stats({moduleName:$moduleName, sessionId:$sessionId, subSystem:'startup', evtGroup:'moduleStartup', millis:(new Date()).getTime(), type:'onModuleLoadStart', className:className});
|
321
|
-
};
|
322
|
-
|
323
|
-
window.__gwt_module_id = 0;
|
324
|
-
</script></head>
|
325
|
-
<body>
|
326
|
-
<font face='arial' size='-1'>This html file is for Development Mode support.</font>
|
327
|
-
<script><!--
|
328
|
-
// Lightweight metrics
|
329
|
-
$stats && $stats({moduleName:$moduleName, sessionId:$sessionId, subSystem:'startup', evtGroup:'moduleStartup', millis:(new Date()).getTime(), type:'moduleEvalEnd'});
|
330
|
-
|
331
|
-
// OOPHM currently only supports IFrameLinker
|
332
|
-
var query = parent.location.search;
|
333
|
-
if (!findPluginXPCOM()) {
|
334
|
-
document.write('<embed id="pluginEmbed" type="application/x-gwt-hosted-mode" width="10" height="10">');
|
335
|
-
document.write('</embed>');
|
336
|
-
document.write('<object id="pluginObject" CLASSID="CLSID:1D6156B6-002B-49E7-B5CA-C138FB843B4E">');
|
337
|
-
document.write('</object>');
|
338
|
-
}
|
339
|
-
|
340
|
-
// look for the old query parameter if we don't find the new one
|
341
|
-
var idx = query.indexOf("gwt.codesvr=");
|
342
|
-
if (idx >= 0) {
|
343
|
-
idx += 12; // "gwt.codesvr=".length() == 12
|
344
|
-
} else {
|
345
|
-
idx = query.indexOf("gwt.hosted=");
|
346
|
-
if (idx >= 0) {
|
347
|
-
idx += 11; // "gwt.hosted=".length() == 11
|
348
|
-
}
|
349
|
-
}
|
350
|
-
if (idx >= 0) {
|
351
|
-
var amp = query.indexOf("&", idx);
|
352
|
-
if (amp >= 0) {
|
353
|
-
$hosted = query.substring(idx, amp);
|
354
|
-
} else {
|
355
|
-
$hosted = query.substring(idx);
|
356
|
-
}
|
357
|
-
|
358
|
-
// According to RFC 3986, some of this component's characters (e.g., ':')
|
359
|
-
// are reserved and *may* be escaped.
|
360
|
-
$hosted = decodeURIComponent($hosted);
|
361
|
-
}
|
362
|
-
|
363
|
-
query = window.location.search.substring(1);
|
364
|
-
if (query && $wnd[query]) setTimeout($wnd[query].onScriptLoad, 1);
|
365
|
-
--></script></body></html>
|
data/views/faq_layout.haml
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
!!!
|
2
|
-
%html{:xmlns => "http://www.w3.org/1999/xhtml", "xml:lang" => "en", :lang => "en"}
|
3
|
-
%head
|
4
|
-
%meta{'charset'=>"utf-8"}
|
5
|
-
%meta{'http-equiv'=>"X-UA-Compatible", :content=>"IE=edge"}
|
6
|
-
%meta{'name'=>"viewport", :content=>"width=device-width, initial-scale=1"}
|
7
|
-
%title Lazar GUI FAQ
|
8
|
-
%link{:rel=>'icon', :type=>'image/x-icon', :href=>'/images/favicon.ico'}
|
9
|
-
%link{:rel=>'stylesheet', :href=>"#{'/css/bootstrap.min.css'}"}
|
10
|
-
%link{:rel=>'stylesheet', :href=>"#{'/css/theme.default.min.css'}"}
|
11
|
-
%link{:rel=>'stylesheet', :href=>"#{'/css/theme.bootstrap.min.css'}"}
|
12
|
-
%link{ :href=>"/style.css", :rel=>"stylesheet"}
|
13
|
-
%link{ :href=>"/stylesheets/jquery-ui.css", :rel=>"stylesheet"}
|
14
|
-
%script{:src=>"/javascripts/jquery-1.11.2.min.js"}
|
15
|
-
%script{:src=>"/javascripts/bootstrap.min.js"}
|
16
|
-
%script{ :src=>"/javascripts/lazar-gui.js"}
|
17
|
-
%body
|
18
|
-
%noscript
|
19
|
-
%div{ :style=>"width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif"}
|
20
|
-
Your web browser must have JavaScript enabled in order for this application to display correctly.
|
21
|
-
%header.page-header
|
22
|
-
%div.row
|
23
|
-
%div.col-md-2
|
24
|
-
%a{:href=> to("/predict")}
|
25
|
-
%img.media-object{:src=>"/images/ist_logo.png", :alt=>"logo", :style=>"margin:0 3em 0 2em;"}
|
26
|
-
%div.col-md-10
|
27
|
-
%h1.media-heading{:style=>"margin: 0 0 0 1em;display:inline;"} Lazar GUI
|
28
|
-
A Graphical User Interface for the <a href="http://github.com/opentox/lazar">Lazar</a> framework
|
29
|
-
|
30
|
-
%div.container-fluid
|
31
|
-
:javascript
|
32
|
-
$(document).ready(function(){
|
33
|
-
$("#back-top").hide();
|
34
|
-
$(".blind").error(function(){
|
35
|
-
$(this).attr('src', '/images/blind.png');
|
36
|
-
});
|
37
|
-
});
|
38
|
-
|
39
|
-
= yield
|
40
|
-
|
41
|
-
%footer.footer
|
42
|
-
%div.container-fluid
|
43
|
-
%p.text-muted
|
44
|
-
©
|
45
|
-
%a{:href => 'http://www.in-silico.ch', :rel => "external"} <i style="font-family: serife">in silico</i> toxicology gmbh 2004 - #{Time.now.year.to_s}
|
46
|
-
|
47
|
-
#back-top{:style => "z-index:100;position:fixed;bottom:1%;right:1%;"}
|
48
|
-
%a{:href => "", :style=>"text:decoration:none;color:#ccc;"}
|
49
|
-
%span.glyphicon.glyphicon-circle-arrow-up{:style => "font-size:3em;color:black;"}
|
50
|
-
:javascript
|
51
|
-
$("#back-top").hide();
|
52
|
-
$(function () {
|
53
|
-
$(window).scroll(function () {
|
54
|
-
if ($(this).scrollTop() > 600) {
|
55
|
-
$('#back-top').fadeIn();
|
56
|
-
} else {
|
57
|
-
$('#back-top').fadeOut();
|
58
|
-
}
|
59
|
-
});
|
60
|
-
// scroll body to 0px on click
|
61
|
-
$('#back-top a').click(function () {
|
62
|
-
$('body,html').animate({
|
63
|
-
scrollTop: 0
|
64
|
-
}, 500);
|
65
|
-
return false;
|
66
|
-
});
|
67
|
-
});
|
data/views/validation.haml
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
- case @model_type
|
2
|
-
- when "classification"
|
3
|
-
- prediction = @cv.metadata["http://www.opentox.org/api/1.2#classificationStatistics"]["http://www.opentox.org/api/1.2#numCorrect"] + @cv.metadata["http://www.opentox.org/api/1.2#classificationStatistics"]["http://www.opentox.org/api/1.2#numIncorrect"]
|
4
|
-
%p= "Number of predictions: #{prediction}"
|
5
|
-
- percent = @cv.metadata["http://www.opentox.org/api/1.2#classificationStatistics"]["http://www.opentox.org/api/1.2#percentCorrect"]
|
6
|
-
%p= "Correct predictions: #{percent.round(2)} %"
|
7
|
-
- when "regression"
|
8
|
-
- prediction = @cv.metadata["http://www.opentox.org/api/1.2#numInstances"].to_i - @cv.metadata["http://www.opentox.org/api/1.2#numUnpredicted"].to_i
|
9
|
-
%p= "Number of predictions: #{prediction}"
|
10
|
-
- rSquare = @cv.metadata["http://www.opentox.org/api/1.2#regressionStatistics"]["http://www.opentox.org/api/1.2#rSquare"]
|
11
|
-
%p= "R-squared: #{rSquare.round(2)} %"
|
12
|
-
- rootMeanSquaredError = @cv.metadata["http://www.opentox.org/api/1.2#regressionStatistics"]["http://www.opentox.org/api/1.2#rootMeanSquaredError"]
|
13
|
-
%p= "Root Mean Square Error: #{rootMeanSquaredError.round(2)} %"
|
14
|
-
- meanAbsoluteError = @cv.metadata["http://www.opentox.org/api/1.2#regressionStatistics"]["http://www.opentox.org/api/1.2#meanAbsoluteError"]
|
15
|
-
%p= "Mean Absolute Error: #{meanAbsoluteError.round(2)} %"
|
16
|
-
|