@datagrok/hit-triage 1.10.6 → 1.10.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +10 -0
- package/CHANGELOG.md +5 -0
- package/LICENSE.md +16 -0
- package/README_OLD.md +3 -3
- package/dist/package-test.js +34 -1
- package/dist/package-test.js.map +1 -1
- package/dist/package.js +430 -1
- package/dist/package.js.map +1 -1
- package/package.json +16 -42
- package/src/app/accordeons/new-hit-design-campaign-accordeon.ts +8 -2
- package/src/app/ai/view-functions.ts +549 -0
- package/src/app/base-view.ts +14 -2
- package/src/app/hit-app-base.ts +1 -0
- package/src/app/hit-design-app.ts +8 -1
- package/src/app/hit-design-views/info-view.ts +4 -3
- package/src/app/hit-design-views/submit-view.ts +13 -4
- package/src/app/hit-triage-app.ts +8 -1
- package/src/app/hit-triage-views/info-view.ts +4 -3
- package/src/app/hit-triage-views/submit-view.ts +6 -4
- package/src/package-api.ts +25 -14
- package/src/package.ts +5 -1
- package/src/packageSettingsEditor.ts +5 -11
- package/tsconfig.json +4 -69
- package/webpack.config.js +3 -46
- package/.eslintignore +0 -1
- package/.eslintrc.json +0 -45
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
> @datagrok/hit-triage@1.10.8 build /home/runner/work/public/public/packages/HitTriage
|
|
3
|
+
> grok build
|
|
4
|
+
|
|
5
|
+
HitTriage warnings
|
|
6
|
+
[33mLatest package version (1.10.8) is not in CHANGELOG
|
|
7
|
+
[0m
|
|
8
|
+
[33mChangelog guideline: https://datagrok.ai/help/develop/dev-process/changelog-policy#changelog-guideline[0m
|
|
9
|
+
Rspack compiled successfully
|
|
10
|
+
bundled HitTriage in 0.8s 225 KB
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# HitTriage changelog
|
|
2
2
|
|
|
3
|
+
## v.next
|
|
4
|
+
|
|
5
|
+
* Hit Design, PeptiHit: Fixed the "Campaing Name" typo in the new-campaign form
|
|
6
|
+
* AI: Exposed AI view functions on all four Hit apps — the landing views list/open/create/delete campaigns and templates, and the campaign table views get a hit-specific vocabulary (state, molecules, stages, status, save, submit) plus a search/call bridge to the standard table commands.
|
|
7
|
+
|
|
3
8
|
## 1.10.6 (2026-07-16)
|
|
4
9
|
|
|
5
10
|
* Hit Design: Added a "Re-run when campaign opens" option per compute function/script/query, available both in a campaign's compute dialog and at template creation. When enabled, the function is recomputed over the whole molecule column every time the campaign is opened — useful for database lookups that resolve after a molecule was first drawn.
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
Copyright 2020 Datagrok, INC
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
|
4
|
+
associated documentation files (the "Software"), to deal in the Software without restriction,
|
|
5
|
+
including without limitation the rights to use, copy, modify, merge, publish, distribute,
|
|
6
|
+
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
|
|
7
|
+
furnished to do so, subject to the following conditions:
|
|
8
|
+
|
|
9
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial
|
|
10
|
+
portions of the Software.
|
|
11
|
+
|
|
12
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
|
|
13
|
+
NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
14
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
|
|
15
|
+
OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
16
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README_OLD.md
CHANGED
|
@@ -35,7 +35,7 @@ pipeline on demand, should any step change and new source data appear.
|
|
|
35
35
|
|
|
36
36
|
## Data Access
|
|
37
37
|
|
|
38
|
-
Datagrok's built-in [data query](
|
|
38
|
+
Datagrok's built-in [data query](https://datagrok.ai/help/access#data-query) framework is used as a foundation for data access.
|
|
39
39
|
Out-of-the box, it provides the following capabilities that are relevant to this project:
|
|
40
40
|
|
|
41
41
|
1. Ability to access any data source (db, files, web service) efficiently
|
|
@@ -54,7 +54,7 @@ For calculated data, Datagrok's functions framework is used. It allows to define
|
|
|
54
54
|
descriptors) that would be executed on the set of molecules.
|
|
55
55
|
|
|
56
56
|
For retrieving additional information from external sources, the system uses
|
|
57
|
-
[parameterized queries](
|
|
57
|
+
[parameterized queries](https://datagrok.ai/help/access#data-query).
|
|
58
58
|
|
|
59
59
|
## Data Storage
|
|
60
60
|
|
|
@@ -96,7 +96,7 @@ gets shown in the context panel on the right.
|
|
|
96
96
|
|
|
97
97
|
## Visualization and Reporting Outcomes
|
|
98
98
|
|
|
99
|
-
* Built-in [viewers](
|
|
99
|
+
* Built-in [viewers](https://datagrok.ai/help/visualize/viewers)
|
|
100
100
|
* Export to Excel / PDF
|
|
101
101
|
* Share outcomes as URLs
|
|
102
102
|
|
package/dist/package-test.js
CHANGED
|
@@ -1,2 +1,35 @@
|
|
|
1
|
-
var hittriage_test;(()=>{var t={982(t,e,n){var o;!function(){var e={};!function(t){"use strict";t.__esModule=!0,t.digestLength=32,t.blockSize=64;var e=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function n(t,n,o,s,i){for(var r,a,c,l,u,y,f,d,p,h,x,g,m;i>=64;){for(r=n[0],a=n[1],c=n[2],l=n[3],u=n[4],y=n[5],f=n[6],d=n[7],h=0;h<16;h++)x=s+4*h,t[h]=(255&o[x])<<24|(255&o[x+1])<<16|(255&o[x+2])<<8|255&o[x+3];for(h=16;h<64;h++)g=((p=t[h-2])>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,m=((p=t[h-15])>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,t[h]=(g+t[h-7]|0)+(m+t[h-16]|0);for(h=0;h<64;h++)g=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&y^~u&f)|0)+(d+(e[h]+t[h]|0)|0)|0,m=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&a^r&c^a&c)|0,d=f,f=y,y=u,u=l+g|0,l=c,c=a,a=r,r=g+m|0;n[0]+=r,n[1]+=a,n[2]+=c,n[3]+=l,n[4]+=u,n[5]+=y,n[6]+=f,n[7]+=d,s+=64,i-=64}return s}var o=function(){function e(){this.digestLength=t.digestLength,this.blockSize=t.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return e.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},e.prototype.clean=function(){for(var t=0;t<this.buffer.length;t++)this.buffer[t]=0;for(t=0;t<this.temp.length;t++)this.temp[t]=0;this.reset()},e.prototype.update=function(t,e){if(void 0===e&&(e=t.length),this.finished)throw new Error("SHA256: can't update because hash was finished.");var o=0;if(this.bytesHashed+=e,this.bufferLength>0){for(;this.bufferLength<64&&e>0;)this.buffer[this.bufferLength++]=t[o++],e--;64===this.bufferLength&&(n(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(e>=64&&(o=n(this.temp,this.state,t,o,e),e%=64);e>0;)this.buffer[this.bufferLength++]=t[o++],e--;return this},e.prototype.finish=function(t){if(!this.finished){var e=this.bytesHashed,o=this.bufferLength,s=e/536870912|0,i=e<<3,r=e%64<56?64:128;this.buffer[o]=128;for(var a=o+1;a<r-8;a++)this.buffer[a]=0;this.buffer[r-8]=s>>>24&255,this.buffer[r-7]=s>>>16&255,this.buffer[r-6]=s>>>8&255,this.buffer[r-5]=s>>>0&255,this.buffer[r-4]=i>>>24&255,this.buffer[r-3]=i>>>16&255,this.buffer[r-2]=i>>>8&255,this.buffer[r-1]=i>>>0&255,n(this.temp,this.state,this.buffer,0,r),this.finished=!0}for(a=0;a<8;a++)t[4*a+0]=this.state[a]>>>24&255,t[4*a+1]=this.state[a]>>>16&255,t[4*a+2]=this.state[a]>>>8&255,t[4*a+3]=this.state[a]>>>0&255;return this},e.prototype.digest=function(){var t=new Uint8Array(this.digestLength);return this.finish(t),t},e.prototype._saveState=function(t){for(var e=0;e<this.state.length;e++)t[e]=this.state[e]},e.prototype._restoreState=function(t,e){for(var n=0;n<this.state.length;n++)this.state[n]=t[n];this.bytesHashed=e,this.finished=!1,this.bufferLength=0},e}();t.Hash=o;var s=function(){function t(t){this.inner=new o,this.outer=new o,this.blockSize=this.inner.blockSize,this.digestLength=this.inner.digestLength;var e=new Uint8Array(this.blockSize);if(t.length>this.blockSize)(new o).update(t).finish(e).clean();else for(var n=0;n<t.length;n++)e[n]=t[n];for(n=0;n<e.length;n++)e[n]^=54;for(this.inner.update(e),n=0;n<e.length;n++)e[n]^=106;for(this.outer.update(e),this.istate=new Uint32Array(8),this.ostate=new Uint32Array(8),this.inner._saveState(this.istate),this.outer._saveState(this.ostate),n=0;n<e.length;n++)e[n]=0}return t.prototype.reset=function(){return this.inner._restoreState(this.istate,this.inner.blockSize),this.outer._restoreState(this.ostate,this.outer.blockSize),this},t.prototype.clean=function(){for(var t=0;t<this.istate.length;t++)this.ostate[t]=this.istate[t]=0;this.inner.clean(),this.outer.clean()},t.prototype.update=function(t){return this.inner.update(t),this},t.prototype.finish=function(t){return this.outer.finished?this.outer.finish(t):(this.inner.finish(t),this.outer.update(t,this.digestLength).finish(t)),this},t.prototype.digest=function(){var t=new Uint8Array(this.digestLength);return this.finish(t),t},t}();function i(t){var e=(new o).update(t),n=e.digest();return e.clean(),n}function r(t,e){var n=new s(t).update(e),o=n.digest();return n.clean(),o}function a(t,e,n,o){var s=o[0];if(0===s)throw new Error("hkdf: cannot expand more");e.reset(),s>1&&e.update(t),n&&e.update(n),e.update(o),e.finish(t),o[0]++}t.HMAC=s,t.hash=i,t.default=i,t.hmac=r;var c=new Uint8Array(t.digestLength);t.hkdf=function(t,e,n,o){void 0===e&&(e=c),void 0===o&&(o=32);for(var i=new Uint8Array([1]),l=r(e,t),u=new s(l),y=new Uint8Array(u.digestLength),f=y.length,d=new Uint8Array(o),p=0;p<o;p++)f===y.length&&(a(y,u,n,i),f=0),d[p]=y[f++];return u.clean(),y.fill(0),i.fill(0),d},t.pbkdf2=function(t,e,n,o){for(var i=new s(t),r=i.digestLength,a=new Uint8Array(4),c=new Uint8Array(r),l=new Uint8Array(r),u=new Uint8Array(o),y=0;y*r<o;y++){var f=y+1;a[0]=f>>>24&255,a[1]=f>>>16&255,a[2]=f>>>8&255,a[3]=f>>>0&255,i.reset(),i.update(e),i.update(a),i.finish(l);for(var d=0;d<r;d++)c[d]=l[d];for(d=2;d<=n;d++){i.reset(),i.update(l).finish(l);for(var p=0;p<r;p++)c[p]^=l[p]}for(d=0;d<r&&y*r+d<o;d++)u[y*r+d]=c[d]}for(y=0;y<r;y++)c[y]=l[y]=0;for(y=0;y<4;y++)a[y]=0;return i.clean(),u}}(e);var s=e.default;for(var i in e)s[i]=e[i];"object"==typeof t.exports?t.exports=s:void 0===(o=function(){return s}.call(e,n,e,t))||(t.exports=o)}()}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var i=e[o]={exports:{}};return t[o].call(i.exports,i,i.exports,n),i.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{_package:()=>S,initAutoTests:()=>R,test:()=>N,tests:()=>y});const t=DG;n(982);const e=DG.DataFrame.fromCsv('countries,fasta,smiles,molregno,LON,Zip Code,Street Address Line 1,ImageUrl,user_id,error_message,xray,flag,magnitude,CS-id,pdb_id,accel_a,time_offset,chart,fit,Questions,empty_number,empty_string\nBelgium,MSNFHNEHVMQFYRNNLKTKGVFGRQ,CC(C(=O)OCCCc1cccnc1)c2cccc(c2)C(=O)c3ccccc3,1480014,36.276729583740234,995042300,14016 ROUTE 31W,https://datagrok.ai/img/slides/access-db-connect.png,id,ErrorMessage,"COMPND \nATOM \nEND",flag,1,1,1QBS,1,1.23,<chart></chart>,"{""series"":[{""name"":""Run:2023-08-08"",""fitFunction"":""sigmoid"",""fitLineColor"":""#1f77b4"",""pointColor"":""#1f77b4"",""showPoints"":""points"",""parameters"":[2.497360340644872, 1.7058694986686864, 5.278052678195135, 0.16000320889028383],""points"":[{""x"":0.10000000149011612,""y"":2.374499797821045},{""x"":0.6000000238418579,""y"":2.6242473125457764},{""x"":1.100000023841858,""y"":2.367267608642578},{""x"":1.600000023841858,""y"":2.6723148822784424},{""x"":2.0999999046325684,""y"":2.6537344455718994},{""x"":2.5999999046325684,""y"":2.3651671409606934},{""x"":3.0999999046325684,""y"":2.5654284954071045},{""x"":3.5999999046325684,""y"":2.4160959720611572},{""x"":4.099999904632568,""y"":2.286726713180542},{""x"":4.599999904632568,""y"":2.5100042819976807},{""x"":5.099999904632568,""y"":1.6676985025405884},{""x"":5.599999904632568,""y"":0.680136501789093},{""x"":6.099999904632568,""y"":0.3391543924808502},{""x"":6.599999904632568,""y"":0.09038983285427094},{""x"":7.099999904632568,""y"":0.19802775979042053}]},{""name"":""Run:2023-08-08"",""fitLineColor"":""#ffbb78"",""pointColor"":""#ffbb78"",""showPoints"":""points"",""parameters"":[7.525235855508179, 1.3186911876809984, 5.335672608564294, 0.7860743343958098],""points"":[{""x"":0.10000000149011612,""y"":7.988070487976074},{""x"":0.6000000238418579,""y"":7.018453121185303},{""x"":1.100000023841858,""y"":8.115279197692871},{""x"":1.600000023841858,""y"":7.486658096313477},{""x"":2.0999999046325684,""y"":7.396438121795654},{""x"":2.5999999046325684,""y"":7.477052211761475},{""x"":3.0999999046325684,""y"":6.913095474243164},{""x"":3.5999999046325684,""y"":8.01385498046875},{""x"":4.099999904632568,""y"":6.985900402069092},{""x"":4.599999904632568,""y"":6.970335960388184},{""x"":5.099999904632568,""y"":5.448817253112793},{""x"":5.599999904632568,""y"":2.5534818172454834},{""x"":6.099999904632568,""y"":1.893947958946228},{""x"":6.599999904632568,""y"":0.6340042352676392},{""x"":7.099999904632568,""y"":0.8403874039649963}]}],""chartOptions"":{""xAxisName"":""Conc."",""yAxisName"":""Activity"",""title"":""Dose-Response curves""}}",text,100,abc\nBurundi,MDYKETLLMPKTDFPMRGGLPNKEPQIQEKW,COc1ccc2cc(ccc2c1)C(C)C(=O)Oc3ccc(C)cc3OC,1480015,36.276729583740234,995073444,80 STATE HIGHWAY 310,https://datagrok.ai/img/slides/access-db-connect.png,id,ErrorMessage,"COMPND \nATOM \nEND",flag,2,2,1ZP8,2,1.23,<chart></chart>,"{""series"":[{""name"":""Run:2023-08-08"",""fitFunction"":""sigmoid"",""fitLineColor"":""#1f77b4"",""pointColor"":""#1f77b4"",""showPoints"":""points"",""parameters"":[4.431460753103398, 2.1691498799246745, 5.266445597102774, 0.7825762827017926],""points"":[{""x"":0.10000000149011612,""y"":4.751083850860596},{""x"":0.6000000238418579,""y"":4.203000068664551},{""x"":1.100000023841858,""y"":4.415858745574951},{""x"":1.600000023841858,""y"":4.68414306640625},{""x"":2.0999999046325684,""y"":4.198400974273682},{""x"":2.5999999046325684,""y"":4.179222106933594},{""x"":3.0999999046325684,""y"":4.638473987579346},{""x"":3.5999999046325684,""y"":4.708553314208984},{""x"":4.099999904632568,""y"":4.291589260101318},{""x"":4.599999904632568,""y"":4.038082599639893},{""x"":5.099999904632568,""y"":3.4349939823150635},{""x"":5.599999904632568,""y"":1.2194708585739136},{""x"":6.099999904632568,""y"":1.1920831203460693},{""x"":6.599999904632568,""y"":0.5352635979652405},{""x"":7.099999904632568,""y"":0.3346920311450958}]},{""name"":""Run:2023-08-08"",""fitLineColor"":""#ffbb78"",""pointColor"":""#ffbb78"",""showPoints"":""points"",""parameters"":[2.339458017970126, -1.0734184310171178, 4.746332950550934, 0.2482416857595658],""points"":[{""x"":0.10000000149011612,""y"":0.2139337658882141},{""x"":0.6000000238418579,""y"":0.4269562065601349},{""x"":1.100000023841858,""y"":0.2441573292016983},{""x"":1.600000023841858,""y"":0.146635964512825},{""x"":2.0999999046325684,""y"":0.08818462491035461},{""x"":2.5999999046325684,""y"":0.2560656666755676},{""x"":3.0999999046325684,""y"":0.42434045672416687},{""x"":3.5999999046325684,""y"":0.37111231684684753},{""x"":4.099999904632568,""y"":0.5581737160682678},{""x"":4.599999904632568,""y"":1.183590054512024},{""x"":5.099999904632568,""y"":1.5629843473434448},{""x"":5.599999904632568,""y"":2.3211288452148438},{""x"":6.099999904632568,""y"":2.229961633682251},{""x"":6.599999904632568,""y"":2.2560226917266846},{""x"":7.099999904632568,""y"":2.2142398357391357}]}],""chartOptions"":{""xAxisName"":""Conc."",""yAxisName"":""Activity"",""title"":""Dose-Response curves""}}",text,,\nCameroon,MIEVFLFGIVLGLIPITLAGLFVTAYLQYRRGDQLDL,COc1ccc2cc(ccc2c1)C(C)C(=O)OCCCc3cccnc3,1480016,36.26095962524414,995153596,30-56 WHITESTONE EXPY,https://datagrok.ai/img/slides/access-db-connect.png,id,ErrorMessage,"COMPND \nATOM \nEND",flag,3,3,2BDJ,3,1.23,<chart></chart>,"{""series"":[{""name"":""Run:2023-08-08"",""fitFunction"":""sigmoid"",""fitLineColor"":""#1f77b4"",""pointColor"":""#1f77b4"",""showPoints"":""points"",""parameters"":[4.6760652578642325, 0.9046956320756703, 5.651408971856738, 0.07738846012184185],""points"":[{""x"":0.10000000149011612,""y"":4.32425594329834},{""x"":0.6000000238418579,""y"":4.668442249298096},{""x"":1.100000023841858,""y"":4.379785060882568},{""x"":1.600000023841858,""y"":5.0345139503479},{""x"":2.0999999046325684,""y"":4.878653526306152},{""x"":2.5999999046325684,""y"":4.3451313972473145},{""x"":3.0999999046325684,""y"":4.336992263793945},{""x"":3.5999999046325684,""y"":5.037430286407471},{""x"":4.099999904632568,""y"":5.0092692375183105},{""x"":4.599999904632568,""y"":4.151902675628662},{""x"":5.099999904632568,""y"":3.4066951274871826},{""x"":5.599999904632568,""y"":2.3732759952545166},{""x"":6.099999904632568,""y"":1.673728108406067},{""x"":6.599999904632568,""y"":0.48574790358543396},{""x"":7.099999904632568,""y"":0.2783052325248718}]},{""name"":""Run:2023-08-08"",""fitLineColor"":""#ffbb78"",""pointColor"":""#ffbb78"",""showPoints"":""points"",""parameters"":[2.938395863010111, -1.4658480661392117, 5.462702751996584, 0.3473139023615039],""points"":[{""x"":0.10000000149011612,""y"":0.4941710829734802},{""x"":0.6000000238418579,""y"":0.15323974192142487},{""x"":1.100000023841858,""y"":0.46373432874679565},{""x"":1.600000023841858,""y"":0.3370431363582611},{""x"":2.0999999046325684,""y"":0.5179030299186707},{""x"":2.5999999046325684,""y"":0.27899765968322754},{""x"":3.0999999046325684,""y"":0.22075064480304718},{""x"":3.5999999046325684,""y"":0.5789918899536133},{""x"":4.099999904632568,""y"":0.21169911324977875},{""x"":4.599999904632568,""y"":0.27857646346092224},{""x"":5.099999904632568,""y"":1.0906332731246948},{""x"":5.599999904632568,""y"":1.8520300388336182},{""x"":6.099999904632568,""y"":2.7177059650421143},{""x"":6.599999904632568,""y"":2.8680918216705322},{""x"":7.099999904632568,""y"":3.2413077354431152}]}],""chartOptions"":{""xAxisName"":""Conc."",""yAxisName"":""Activity"",""title"":""Dose-Response curves""}}",text,,\nCanada,MMELVLKTIIGPIVVGVVLRIVDKWLNKDK,CC(C(=O)NCCS)c1cccc(c1)C(=O)c2ccccc2,1480017,36.26095962524414,99515,30-56 WHITESTONE EXPY,https://datagrok.ai/img/slides/access-db-connect.png,id,ErrorMessage,"COMPND \nATOM \nEND",flag,4,4,1IAN,4,1.23,<chart></chart>,"{""series"":[{""name"":""Run:2023-08-08"",""fitFunction"":""sigmoid"",""fitLineColor"":""#1f77b4"",""pointColor"":""#1f77b4"",""showPoints"":""points"",""parameters"":[0.8597390975430008, 1.0957625732481946, 5.260537067987958, 0.07974187998177736],""points"":[{""x"":0.10000000149011612,""y"":0.8190152645111084},{""x"":0.6000000238418579,""y"":0.8421689867973328},{""x"":1.100000023841858,""y"":0.8740922212600708},{""x"":1.600000023841858,""y"":0.8924275040626526},{""x"":2.0999999046325684,""y"":0.8249067664146423},{""x"":2.5999999046325684,""y"":0.9327669143676758},{""x"":3.0999999046325684,""y"":0.8522974252700806},{""x"":3.5999999046325684,""y"":0.8174492716789246},{""x"":4.099999904632568,""y"":0.8394647240638733},{""x"":4.599999904632568,""y"":0.7139387726783752},{""x"":5.099999904632568,""y"":0.5561167597770691},{""x"":5.599999904632568,""y"":0.3276226818561554},{""x"":6.099999904632568,""y"":0.12479474395513535},{""x"":6.599999904632568,""y"":0.13006797432899475},{""x"":7.099999904632568,""y"":0.059702079743146896}]},{""name"":""Run:2023-08-08"",""fitLineColor"":""#ffbb78"",""pointColor"":""#ffbb78"",""showPoints"":""points"",""parameters"":[5.760930219582546, 1.6591793293833013, 4.667155929720851, 0.7858109544121652],""points"":[{""x"":0.10000000149011612,""y"":6.156993389129639},{""x"":0.6000000238418579,""y"":5.236701965332031},{""x"":1.100000023841858,""y"":6.010560512542725},{""x"":1.600000023841858,""y"":5.495512962341309},{""x"":2.0999999046325684,""y"":6.087770462036133},{""x"":2.5999999046325684,""y"":5.79986572265625},{""x"":3.0999999046325684,""y"":5.597546577453613},{""x"":3.5999999046325684,""y"":5.520902156829834},{""x"":4.099999904632568,""y"":5.360654354095459},{""x"":4.599999904632568,""y"":3.5539746284484863},{""x"":5.099999904632568,""y"":1.577236294746399},{""x"":5.599999904632568,""y"":1.0001264810562134},{""x"":6.099999904632568,""y"":0.9305797815322876},{""x"":6.599999904632568,""y"":0.6033638715744019},{""x"":7.099999904632568,""y"":0.4203685522079468}]}],""chartOptions"":{""xAxisName"":""Conc."",""yAxisName"":""Activity"",""title"":""Dose-Response curves""}}",text,,\nColombia,MDRTDEVSNHTHDKPTLTWFEEIFEEYHSPFHN,FC(F)(F)c1ccc(OC2CCNCC2)cc1,1480029,36.3309440612793,995152050,1 COURT HOUSE SQUARE,https://datagrok.ai/img/slides/access-db-connect.png,id,ErrorMessage,"COMPND \nATOM \nEND",flag,5,5,4UJ1,5,1.23,<chart></chart>,"{""series"":[{""name"":""Run:2023-08-08"",""fitFunction"":""sigmoid"",""fitLineColor"":""#1f77b4"",""pointColor"":""#1f77b4"",""showPoints"":""points"",""parameters"":[6.4995088314153655, 2.4270351004539914, 5.178659535348579, 0.625653346241577],""points"":[{""x"":0.10000000149011612,""y"":6.496231555938721},{""x"":0.6000000238418579,""y"":6.42543363571167},{""x"":1.100000023841858,""y"":7.040063858032227},{""x"":1.600000023841858,""y"":6.1115403175354},{""x"":2.0999999046325684,""y"":6.680728435516357},{""x"":2.5999999046325684,""y"":6.406774520874023},{""x"":3.0999999046325684,""y"":6.611269474029541},{""x"":3.5999999046325684,""y"":5.889094352722168},{""x"":4.099999904632568,""y"":6.75344705581665},{""x"":4.599999904632568,""y"":6.361435890197754},{""x"":5.099999904632568,""y"":4.1666975021362305},{""x"":5.599999904632568,""y"":1.172118902206421},{""x"":6.099999904632568,""y"":0.801048994064331},{""x"":6.599999904632568,""y"":0.4640021026134491},{""x"":7.099999904632568,""y"":0.0010357667924836278}]},{""name"":""Run:2023-08-08"",""fitLineColor"":""#ffbb78"",""pointColor"":""#ffbb78"",""showPoints"":""points"",""parameters"":[1.4734381347446401, 1.1649805188074196, 4.82958608866421, 0.09500545496710007],""points"":[{""x"":0.10000000149011612,""y"":1.5279096364974976},{""x"":0.6000000238418579,""y"":1.3559974431991577},{""x"":1.100000023841858,""y"":1.5246378183364868},{""x"":1.600000023841858,""y"":1.5567657947540283},{""x"":2.0999999046325684,""y"":1.4114240407943726},{""x"":2.5999999046325684,""y"":1.4045010805130005},{""x"":3.0999999046325684,""y"":1.4769829511642456},{""x"":3.5999999046325684,""y"":1.4875500202178955},{""x"":4.099999904632568,""y"":1.2991987466812134},{""x"":4.599999904632568,""y"":0.922961413860321},{""x"":5.099999904632568,""y"":0.6520044803619385},{""x"":5.599999904632568,""y"":0.15350978076457977},{""x"":6.099999904632568,""y"":0.1078903079032898},{""x"":6.599999904632568,""y"":0.17276449501514435},{""x"":7.099999904632568,""y"":0.14066608250141144}]}],""chartOptions"":{""xAxisName"":""Conc."",""yAxisName"":""Activity"",""title"":""Dose-Response curves""}}",text,,\nCosta Rica,MKSTKEEIQTIKTLLKDSRTAKYHKRLQIVL,CC(C)Cc1ccc(cc1)C(C)C(=O)N2CCCC2C(=O)OCCCc3ccccc3,1480018,36.3309440612793,995084218,4041 SOUTHWESTERN BLVD,https://datagrok.ai/img/slides/access-db-connect.png,id,ErrorMessage,"COMPND \nATOM \nEND",flag,6,6,2BPW,6,1.23,<chart></chart>,"{""series"":[{""name"":""Run:2023-08-08"",""fitFunction"":""sigmoid"",""fitLineColor"":""#1f77b4"",""pointColor"":""#1f77b4"",""showPoints"":""points"",""parameters"":[2.4833641843311227, -1.8945978742090062, 4.671127708092568, 0.24159861311815153],""points"":[{""x"":0.10000000149011612,""y"":0.0969524160027504},{""x"":0.6000000238418579,""y"":0.028483040630817413},{""x"":1.100000023841858,""y"":0.22087176144123077},{""x"":1.600000023841858,""y"":0.0068915546871721745},{""x"":2.0999999046325684,""y"":0.4305879771709442},{""x"":2.5999999046325684,""y"":0.44774115085601807},{""x"":3.0999999046325684,""y"":0.45346319675445557},{""x"":3.5999999046325684,""y"":0.2370593100786209},{""x"":4.099999904632568,""y"":0.4657953977584839},{""x"":4.599999904632568,""y"":1.155200719833374},{""x"":5.099999904632568,""y"":2.2294070720672607},{""x"":5.599999904632568,""y"":2.4311530590057373},{""x"":6.099999904632568,""y"":2.33846116065979},{""x"":6.599999904632568,""y"":2.608201026916504},{""x"":7.099999904632568,""y"":2.8136143684387207}]},{""name"":""Run:2023-08-08"",""fitLineColor"":""#ffbb78"",""pointColor"":""#ffbb78"",""showPoints"":""points"",""parameters"":[5.224573521642033, 1.4454033924198528, 5.6014197746076535, 0.2823216054197577],""points"":[{""x"":0.10000000149011612,""y"":4.95027494430542},{""x"":0.6000000238418579,""y"":5.1754679679870605},{""x"":1.100000023841858,""y"":5.276752948760986},{""x"":1.600000023841858,""y"":5.589294910430908},{""x"":2.0999999046325684,""y"":5.616994857788086},{""x"":2.5999999046325684,""y"":5.120813846588135},{""x"":3.0999999046325684,""y"":5.340766906738281},{""x"":3.5999999046325684,""y"":4.876471042633057},{""x"":4.099999904632568,""y"":4.94999361038208},{""x"":4.599999904632568,""y"":5.162564754486084},{""x"":5.099999904632568,""y"":4.399557590484619},{""x"":5.599999904632568,""y"":2.7977969646453857},{""x"":6.099999904632568,""y"":1.0229872465133667},{""x"":6.599999904632568,""y"":0.48275601863861084},{""x"":7.099999904632568,""y"":0.10408931970596313}]}],""chartOptions"":{""xAxisName"":""Conc."",""yAxisName"":""Activity"",""title"":""Dose-Response curves""}}",text,,\nCuba,MHAILRYFIRRLFYHIFYKIYSLISKKHQSLPSDVRQF,COc1ccc2c(c1)c(CC(=O)N3CCCC3C(=O)Oc4ccc(C)cc4OC)c(C)n2C(=O)c5ccc(Cl)cc5,1480019,36.33115768432617,995081928,1227 US HIGHWAY 11,https://datagrok.ai/img/slides/access-db-connect.png,id,ErrorMessage,"COMPND \nATOM \nEND",flag,7,7,1QBS,7,1.23,<chart></chart>,"{""series"":[{""name"":""Run:2023-08-08"",""fitFunction"":""sigmoid"",""fitLineColor"":""#1f77b4"",""pointColor"":""#1f77b4"",""showPoints"":""points"",""parameters"":[3.320838679713925, -1.2421619987316728, 4.831325425225256, 0.3236011098403072],""points"":[{""x"":0.10000000149011612,""y"":0.3727470338344574},{""x"":0.6000000238418579,""y"":0.12365014106035233},{""x"":1.100000023841858,""y"":0.48422467708587646},{""x"":1.600000023841858,""y"":0.2264465093612671},{""x"":2.0999999046325684,""y"":0.16821794211864471},{""x"":2.5999999046325684,""y"":0.3879014551639557},{""x"":3.0999999046325684,""y"":0.5470244884490967},{""x"":3.5999999046325684,""y"":0.3419053554534912},{""x"":4.099999904632568,""y"":0.7655120491981506},{""x"":4.599999904632568,""y"":1.2346516847610474},{""x"":5.099999904632568,""y"":2.453336715698242},{""x"":5.599999904632568,""y"":2.9565491676330566},{""x"":6.099999904632568,""y"":3.335299491882324},{""x"":6.599999904632568,""y"":3.240290880203247},{""x"":7.099999904632568,""y"":3.1107218265533447}]},{""name"":""Run:2023-08-08"",""fitLineColor"":""#ffbb78"",""pointColor"":""#ffbb78"",""showPoints"":""points"",""parameters"":[3.6401853521511094, 1.26211588875013, 5.399028074402744, 0.5089580830068091],""points"":[{""x"":0.10000000149011612,""y"":3.8585598468780518},{""x"":0.6000000238418579,""y"":3.6077206134796143},{""x"":1.100000023841858,""y"":3.855252265930176},{""x"":1.600000023841858,""y"":3.619039297103882},{""x"":2.0999999046325684,""y"":3.839388370513916},{""x"":2.5999999046325684,""y"":3.335283041000366},{""x"":3.0999999046325684,""y"":3.571141481399536},{""x"":3.5999999046325684,""y"":3.4155046939849854},{""x"":4.099999904632568,""y"":3.7316646575927734},{""x"":4.599999904632568,""y"":3.0680155754089355},{""x"":5.099999904632568,""y"":2.891066551208496},{""x"":5.599999904632568,""y"":1.6022753715515137},{""x"":6.099999904632568,""y"":0.7652576565742493},{""x"":6.599999904632568,""y"":0.6875326037406921},{""x"":7.099999904632568,""y"":0.5828871726989746}]}],""chartOptions"":{""xAxisName"":""Conc."",""yAxisName"":""Activity"",""title"":""Dose-Response curves""}}",text,,\nItaly,MSNFHNEHVMQFYRNNLKTKGVFGRQ,CC(C)Cc1ccc(cc1)C(C)C(=O)N2CCCC2C(=O)OCCO[N+](=O)[O-],1480020,36.33115768432617,99502,"168-46 91ST AVE., 2ND FLR",https://datagrok.ai/img/slides/access-db-connect.png,id,ErrorMessage,"COMPND \nATOM \nEND",flag,8,8,1ZP8,8,1.23,<chart></chart>,"{""series"":[{""name"":""Run:2023-08-08"",""fitFunction"":""sigmoid"",""fitLineColor"":""#1f77b4"",""pointColor"":""#1f77b4"",""showPoints"":""points"",""parameters"":[2.293592105923809, 1.3781586549141835, 5.1025898038676605, 0.03493851245291291],""points"":[{""x"":0.10000000149011612,""y"":2.1287283897399902},{""x"":0.6000000238418579,""y"":2.267972230911255},{""x"":1.100000023841858,""y"":2.398442506790161},{""x"":1.600000023841858,""y"":2.5130622386932373},{""x"":2.0999999046325684,""y"":2.3255116939544678},{""x"":2.5999999046325684,""y"":2.127340793609619},{""x"":3.0999999046325684,""y"":2.47259783744812},{""x"":3.5999999046325684,""y"":2.131181478500366},{""x"":4.099999904632568,""y"":2.090421438217163},{""x"":4.599999904632568,""y"":2.02299165725708},{""x"":5.099999904632568,""y"":1.1105059385299683},{""x"":5.599999904632568,""y"":0.4494485855102539},{""x"":6.099999904632568,""y"":0.1375635862350464},{""x"":6.599999904632568,""y"":0.036351121962070465},{""x"":7.099999904632568,""y"":0.1619771122932434}]},{""name"":""Run:2023-08-08"",""fitLineColor"":""#ffbb78"",""pointColor"":""#ffbb78"",""showPoints"":""points"",""parameters"":[5.953125499439879, 1.2528620255306528, 5.187637440149802, 0.3110348753260886],""points"":[{""x"":0.10000000149011612,""y"":5.6585283279418945},{""x"":0.6000000238418579,""y"":5.911152362823486},{""x"":1.100000023841858,""y"":5.924920082092285},{""x"":1.600000023841858,""y"":5.8469438552856445},{""x"":2.0999999046325684,""y"":5.929472923278809},{""x"":2.5999999046325684,""y"":6.190037727355957},{""x"":3.0999999046325684,""y"":6.236179828643799},{""x"":3.5999999046325684,""y"":6.141019344329834},{""x"":4.099999904632568,""y"":5.295210838317871},{""x"":4.599999904632568,""y"":5.265801906585693},{""x"":5.099999904632568,""y"":3.3722851276397705},{""x"":5.599999904632568,""y"":1.8299226760864258},{""x"":6.099999904632568,""y"":0.32690900564193726},{""x"":6.599999904632568,""y"":0.6274543404579163},{""x"":7.099999904632568,""y"":0.8441857099533081}]}],""chartOptions"":{""xAxisName"":""Conc."",""yAxisName"":""Activity"",""title"":""Dose-Response curves""}}",text,,\nRwanda,MPNSEPASLLELFNSIATQGELVRSLKAGNASK,CC(C)Cc1ccc(cc1)C(C)C(=O)N2CCCC2C(=O)OCCO,1480021,36.33137130737305,995037247,"168-46 91ST AVE., 2ND FLR",https://datagrok.ai/img/slides/access-db-connect.png,id,ErrorMessage,"COMPND \nATOM \nEND",flag,9,9,2BDJ,9,1.23,<chart></chart>,"{""series"":[{""name"":""Run:2023-08-08"",""fitFunction"":""sigmoid"",""fitLineColor"":""#1f77b4"",""pointColor"":""#1f77b4"",""showPoints"":""points"",""parameters"":[3.8209972202654474, 1.3779216716448506, 5.299882228439686, 0.06040645519069608],""points"":[{""x"":0.10000000149011612,""y"":3.7821109294891357},{""x"":0.6000000238418579,""y"":3.542433023452759},{""x"":1.100000023841858,""y"":3.7008674144744873},{""x"":1.600000023841858,""y"":3.717301607131958},{""x"":2.0999999046325684,""y"":4.024452209472656},{""x"":2.5999999046325684,""y"":4.013899326324463},{""x"":3.0999999046325684,""y"":3.945094347000122},{""x"":3.5999999046325684,""y"":3.866621971130371},{""x"":4.099999904632568,""y"":3.7461626529693604},{""x"":4.599999904632568,""y"":3.3454740047454834},{""x"":5.099999904632568,""y"":2.61944317817688},{""x"":5.599999904632568,""y"":0.999405026435852},{""x"":6.099999904632568,""y"":0.46259793639183044},{""x"":6.599999904632568,""y"":0.054134611040353775},{""x"":7.099999904632568,""y"":0.05711187422275543}]},{""name"":""Run:2023-08-08"",""fitLineColor"":""#ffbb78"",""pointColor"":""#ffbb78"",""showPoints"":""points"",""parameters"":[5.6318079657726035, 1.8495493770000595, 5.391793312471116, 0.17060707587348442],""points"":[{""x"":0.10000000149011612,""y"":5.458079814910889},{""x"":0.6000000238418579,""y"":5.554427146911621},{""x"":1.100000023841858,""y"":5.799983024597168},{""x"":1.600000023841858,""y"":5.364140033721924},{""x"":2.0999999046325684,""y"":5.864485740661621},{""x"":2.5999999046325684,""y"":5.4509806632995605},{""x"":3.0999999046325684,""y"":5.702574729919434},{""x"":3.5999999046325684,""y"":5.7314534187316895},{""x"":4.099999904632568,""y"":5.5123443603515625},{""x"":4.599999904632568,""y"":5.724395751953125},{""x"":5.099999904632568,""y"":4.354506969451904},{""x"":5.599999904632568,""y"":1.7307666540145874},{""x"":6.099999904632568,""y"":0.6305936574935913},{""x"":6.599999904632568,""y"":0.035183437168598175},{""x"":7.099999904632568,""y"":0.7575169205665588}]}],""chartOptions"":{""xAxisName"":""Conc."",""yAxisName"":""Activity"",""title"":""Dose-Response curves""}}",text,,\nSwitzerland,IRVVGRYLIEVWKAAGMDMDKVLFLWSSDEI,CN1CCC(CC1)Oc2ccc(cc2)C(F)(F)F,1480028,36.33137130737305,99504,92-11 179TH PLACE,https://datagrok.ai/img/slides/access-db-connect.png,id,ErrorMessage,"COMPND \nATOM \nEND",flag,9,10,1IAN,10,1.23,<chart></chart>,"{""series"":[{""name"":""Run:2023-08-08"",""fitFunction"":""sigmoid"",""fitLineColor"":""#1f77b4"",""pointColor"":""#1f77b4"",""showPoints"":""points"",""parameters"":[1.1190255865097471, 2.3163895161544437, 5.4968866182279195, 0.2035204047289052],""points"":[{""x"":0.10000000149011612,""y"":1.1057683229446411},{""x"":0.6000000238418579,""y"":1.1019697189331055},{""x"":1.100000023841858,""y"":1.0818607807159424},{""x"":1.600000023841858,""y"":1.062997817993164},{""x"":2.0999999046325684,""y"":1.046447515487671},{""x"":2.5999999046325684,""y"":1.1217249631881714},{""x"":3.0999999046325684,""y"":1.2166996002197266},{""x"":3.5999999046325684,""y"":1.215477705001831},{""x"":4.099999904632568,""y"":1.0581893920898438},{""x"":4.599999904632568,""y"":1.1747995615005493},{""x"":5.099999904632568,""y"":1.0181127786636353},{""x"":5.599999904632568,""y"":0.5344523191452026},{""x"":6.099999904632568,""y"":0.2569526433944702},{""x"":6.599999904632568,""y"":0.1912207305431366},{""x"":7.099999904632568,""y"":0.15060538053512573}]},{""name"":""Run:2023-08-08"",""fitLineColor"":""#ffbb78"",""pointColor"":""#ffbb78"",""showPoints"":""points"",""parameters"":[3.1038581025805785, 2.0032224204185245, 5.087602825989163, 0.13277988512492753],""points"":[{""x"":0.10000000149011612,""y"":3.0498509407043457},{""x"":0.6000000238418579,""y"":2.805217742919922},{""x"":1.100000023841858,""y"":3.3415253162384033},{""x"":1.600000023841858,""y"":3.0549843311309814},{""x"":2.0999999046325684,""y"":3.250074863433838},{""x"":2.5999999046325684,""y"":3.0432586669921875},{""x"":3.0999999046325684,""y"":3.265852451324463},{""x"":3.5999999046325684,""y"":2.9475724697113037},{""x"":4.099999904632568,""y"":3.1929898262023926},{""x"":4.599999904632568,""y"":2.7460060119628906},{""x"":5.099999904632568,""y"":1.6175861358642578},{""x"":5.599999904632568,""y"":0.3006608486175537},{""x"":6.099999904632568,""y"":0.3444803059101105},{""x"":6.599999904632568,""y"":0.015537971630692482},{""x"":7.099999904632568,""y"":0.5527358055114746}]}],""chartOptions"":{""xAxisName"":""Conc."",""yAxisName"":""Activity"",""title"":""Dose-Response curves""}}",text,,\n,,,,,,,,,,,,,,,,,,,,,');e.columns.add(DG.Column.fromList(DG.TYPE.BYTE_ARRAY,"BinaryImage",Array.from(new Uint8Array(11))));var s=function(t,e,n,o){return new(n||(n=Promise))(function(s,i){function r(t){try{c(o.next(t))}catch(t){i(t)}}function a(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(r,a)}c((o=o.apply(t,e||[])).next())})};const i=3e4,r=108e5,a=console.log.bind(console),c=console.info.bind(console),l=console.warn.bind(console),u=console.error.bind(console),y={},f="Auto Tests",d="Demo",p="Detectors",h="Core",x={};var g;!function(t){t.notNull=function(t,e){if(null==t)throw new Error(`${null==e?"Value":e} not defined`)}}(g||(g={}));class m{constructor(t,e,n){this.catchUnhandled=!0,this.report=!1,this.returnOnFail=!1,this.closeAll=!0,void 0!==t&&(this.catchUnhandled=t),void 0!==e&&(this.report=e),void 0!==n&&(this.returnOnFail=n)}}class v{constructor(t,e,n,o){var r;this.category=t,this.name=e,null!=o||(o={}),null!==(r=o.timeout)&&void 0!==r||(o.timeout=i),this.options=o,this.test=()=>s(this,void 0,void 0,function*(){return new Promise((t,e)=>s(this,void 0,void 0,function*(){var o;let s="";try{DG.Test.isInDebug;let t=yield n();try{s=null!==(o=null==t?void 0:t.toString())&&void 0!==o?o:""}catch(t){s="Can't convert test's result to string",console.error(`Can't convert test's result to string in the ${this.category}:${this.name} test`)}}catch(t){e(t)}t(s)}))})}}function C(t,e=!0,n){if(n=n?`${n}, `:"",t!==e)throw new Error(`${n}Expected "${e}", got "${t}"`)}function b(t,e){return t.replace(new RegExp(e.name,"gi"),e.nqName)}function w(t,n){var o,a,c,l,u,g,m,w,k,D;return s(this,void 0,void 0,function*(){const O=t.id;if(x[O])return;const L=n?n.tests:y;if("DevTools"===t.name||n&&"DevTools"===n._package.name)for(const t of window.dartTests){const e=t.name.split(/\s*\|\s*!/g);let n=null!==(o=e.pop())&&void 0!==o?o:t.name,s=e.length?h+": "+e.join(": "):h,r=n.split(" | ");n=r[r.length-1],r.unshift(s),r.pop(),s=r.join(": "),void 0===L[s]&&(L[s]={tests:[],clear:!0}),L[s].tests.push(new v(s,n,t.test,{isAggregated:!1,timeout:null!==(c=null===(a=t.options)||void 0===a?void 0:a.timeout)&&void 0!==c?c:i,skipReason:null===(l=t.options)||void 0===l?void 0:l.skipReason,owner:null===(u=t.options)||void 0===u?void 0:u.owner,benchmark:null!==(m=null===(g=t.options)||void 0===g?void 0:g.benchmark)&&void 0!==m&&m}))}const A=[],S=[],N=[],R=yield grok.dapi.functions.filter(`package.id = "${O}"`).list(),E=new RegExp(/skip:\s*([^,\s]+)|wait:\s*(\d+)|cat:\s*([^,\s]+)|timeout:\s*(\d+)/g);for(const n of R){const o=n.options.test,a=n.options.demoPath;if(o&&Array.isArray(o)&&o.length)for(let t=0;t<o.length;t++){const e=o[t].matchAll(E),a={};Array.from(e).forEach(t=>{t[0].startsWith("skip")?a.skip=t[1]:t[0].startsWith("wait")?a.wait=parseInt(t[2]):t[0].startsWith("cat")?a.cat=t[3]:t[0].startsWith("timeout")&&(a.timeout=parseInt(t[4]))});const c=new v(null!==(w=a.cat)&&void 0!==w?w:f,1===o.length?n.name:`${n.name} ${t+1}`,()=>s(this,void 0,void 0,function*(){const e=yield grok.functions.eval(b(o[t],n));if(a.wait&&(yield T(a.wait)),"boolean"==typeof e&&!e)throw`Failed: ${o[t]}, expected true, got ${e}`}),{skipReason:a.skip,timeout:DG.Test.isInBenchmark?null!==(k=a.benchmarkTimeout)&&void 0!==k?k:r:null!==(D=a.timeout)&&void 0!==D?D:i});if(a.cat){const t=a.cat;void 0===L[t]&&(L[t]={tests:[],clear:!0}),L[t].tests||(L[t].tests=[]),L[t].tests.push(c)}else A.push(c)}if(a){const t=n.options.demoWait?parseInt(n.options.demoWait):void 0,e=new v(d,n.friendlyName,()=>s(this,void 0,void 0,function*(){yield T(300),grok.shell.clearLastError(),yield n.apply(),yield T(t||2e3);const e=yield grok.shell.lastError;if(e)throw new Error(e)}),{skipReason:n.options.demoSkip});S.push(e)}if(n.hasTag("semTypeDetector")){let o=e;n.options.testData&&(o=yield grok.data.files.openTable(`System:AppData/${t.nqName}/${n.options.testData}`));const i=new v(p,n.friendlyName,()=>s(this,void 0,void 0,function*(){const e=[];console.log(`System:AppData/${t.nqName}/${n.options.testData}`);for(const t of o.clone().columns){const o=yield n.apply([t]);e.push(o||t.semType)}const s=e.filter(t=>t);C(s.length,1),n.options.testDataColumnName&&C(s[0],n.options.testDataColumnName)}),{skipReason:n.options.skipTest});N.push(i)}}x[O]=!0,A.length>0&&(L[f]={tests:A,clear:!0}),S.length>0&&(L[d]={tests:S,clear:!0}),N.length>0&&(L[p]={tests:N,clear:!1})})}function k(t){return s(this,void 0,void 0,function*(){return`${t.toString()}\n${t.stack?yield DG.Logger.translateStackTrace(t.stack):""}`})}function D(t,e,n,o,r,c){var l,y,f,d,p,h,x,g,m,v,C,b,w,D;return s(this,void 0,void 0,function*(){let s;n.length=0;const O=null!=e&&t.name.toLowerCase()!==e.toLowerCase();let T=(null===(l=t.options)||void 0===l?void 0:l.skipReason)||O,A=O?"skipped":null===(y=t.options)||void 0===y?void 0:y.skipReason;if(DG.Test.isInBenchmark&&!(null===(f=t.options)||void 0===f?void 0:f.benchmark))return void a(`Package testing: Skipped {{${t.category}}} {{${t.name}}} doesnt available in benchmark mode`);T&&!DG.Test.isInBenchmark&&a(`Package testing: Skipped {{${t.category}}} {{${t.name}}}`),T||a(`Package testing: Started {{${t.category}}} {{${t.name}}}`);const S=Date.now(),N=new Date(S).toISOString();try{if(T)s={name:t.name,owner:null!==(p=null===(d=t.options)||void 0===d?void 0:d.owner)&&void 0!==p?p:"",category:t.category,logs:"",date:N,success:!0,result:A,ms:0,skipped:!0,package:null!=r?r:"",flaking:DG.Test.isReproducing};else{let e=null!=o?o:i;DG.Test.isProfiling&&console.profile(`${t.category}: ${t.name}`),s={name:t.name,owner:null!==(x=null===(h=t.options)||void 0===h?void 0:h.owner)&&void 0!==x?x:"",category:t.category,logs:"",date:N,success:!0,result:null!==(g=(yield L(t.test,e)).toString())&&void 0!==g?g:"OK",ms:0,skipped:!1,package:null!=r?r:"",flaking:DG.Test.isReproducing},DG.Test.isProfiling&&(console.profileEnd(`${t.category}: ${t.name}`),grok.shell.info(`Profiling of ${t.category}: ${t.name} finished \n Please ensure that you have opened DevTools (F12) / Performance panel before test starts.`))}}catch(e){u(e),s={name:t.name,owner:null!==(v=null===(m=t.options)||void 0===m?void 0:m.owner)&&void 0!==v?v:"",category:t.category,logs:"",date:N,success:!1,result:yield k(e),ms:0,skipped:!1,package:null!=r?r:"",flaking:!1}}if((null===(C=t.options)||void 0===C?void 0:C.isAggregated)&&s.result.constructor===DG.DataFrame){const t=s.result.col("success");if(t&&(s.success=t.stats.sum===t.length),!c){const t=s.result;t.columns.remove("stack"),t.rows.removeWhere(t=>t.get("success")),s.result=t}s.result=s.result.toCsv()}if(s.logs=n.join("\n"),s.ms=Date.now()-S,T||a(`Package testing: Finished {{${t.category}}} {{${t.name}}} with {{${s.success?"success":"error"}}} for ${s.ms} ms`),s.success||a(`Package testing: Result for {{${t.category}}} {{${t.name}}}: ${s.result}`),s.category=t.category,s.name=t.name,s.owner=null!==(w=null===(b=t.options)||void 0===b?void 0:b.owner)&&void 0!==w?w:"",!O){let e={success:s.success,result:s.result,ms:s.ms,date:s.date,skipped:s.skipped,category:t.category,name:t.name,logs:s.logs,owner:s.owner,flaking:DG.Test.isReproducing&&s.success,package:s.package};if(s.result.constructor==Object){const t=Object.keys(s.result).reduce((t,e)=>Object.assign(Object.assign({},t),{["result."+e]:s.result[e]}),{});e=Object.assign(Object.assign({},e),t)}e.result instanceof DG.DataFrame&&(e.result=JSON.stringify(null===(D=e.result)||void 0===D?void 0:D.toJson())||""),yield grok.shell.reportTest("package",e)}return s})}function O(t){const e=t.slice();return e.sort(()=>Math.random()-.5),e}function T(t){return s(this,void 0,void 0,function*(){yield new Promise(e=>setTimeout(e,t))})}function L(t,e,n="EXECUTION TIMEOUT"){return s(this,void 0,void 0,function*(){let o=null;const s=new Promise((t,s)=>{o=setTimeout(()=>{s(n)},e)});try{return yield Promise.race([t(),s])}finally{o&&clearTimeout(o)}})}DG.DataFrame.fromColumns([DG.Column.fromStrings("col",["val1","val2","val3"])]);var A=function(t,e,n,o){return new(n||(n=Promise))(function(s,i){function r(t){try{c(o.next(t))}catch(t){i(t)}}function a(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(r,a)}c((o=o.apply(t,e||[])).next())})};const S=new t.Package;function N(e,n,o){return A(this,void 0,void 0,function*(){const f=yield function(t){var e,n,o;return s(this,void 0,void 0,function*(){const f=(null==t?void 0:t.nodeOptions)?t.nodeOptions.package:grok.functions.getCurrentCall().func.package;if(!f)throw new Error("Can't run tests outside of the package");const d=null===(e=f.packageOwner)||void 0===e?void 0:e.match(/<([^>]*)>/),p=d?d[1]:"";null!=f&&(yield w(f));const h=[];console.log("Running tests..."),console.log(t),null!=t||(t={}),null!==(n=(o=t).testContext)&&void 0!==n||(o.testContext=new m),grok.shell.clearLastError();const x=function(){const t=[];return console.log=(...e)=>{t.push(...e),a(...e)},console.info=(...e)=>{t.push(...e),c(...e)},console.warn=(...e)=>{t.push(...e),l(...e)},console.error=(...e)=>{t.push(...e),u(...e)},t}();yield function(t,e){var n,o,i,r,y,d;return s(this,void 0,void 0,function*(){try{let c=null!=(null==e?void 0:e.skipToCategory),l=!1;for(const[u,x]of Object.entries(t)){if(null===(n=e.exclude)||void 0===n?void 0:n.some(t=>u.startsWith(t)))continue;if(null!=(null==e?void 0:e.category)&&!u.toLowerCase().startsWith(null==e?void 0:e.category.toLowerCase().trim()))continue;if(c)if(l)c=!1;else{if(null==(null==e?void 0:e.skipToCategory)||u.toLowerCase().trim()!==(null==e?void 0:e.skipToCategory.toLowerCase().trim()))continue;l=!0}const t=null===(o=x.tests)||void 0===o?void 0:o.every(t=>{var n;return(null===(n=t.options)||void 0===n?void 0:n.skipReason)||null!=(null==e?void 0:e.test)&&e.test.toLowerCase()!==t.name.toLowerCase()});if(!t){const t=(null!==(i=x.tests)&&void 0!==i?i:[]).filter(t=>{var n;return(null===(n=t.options)||void 0===n?void 0:n.skipReason)||null!=(null==e?void 0:e.test)&&e.test.toLowerCase()!==t.name.toLowerCase()}).length;a(`Package testing: Started {{${u}}}${t>0?` skipped {{${t}}}`:""}`),x.beforeStatus=yield g(x.before,u)}let m,C=null!==(r=x.tests)&&void 0!==r?r:[];e.stressTest&&(C=C.filter(t=>{var e;return null===(e=t.options)||void 0===e?void 0:e.stressTest}),C=O(C)),(null!==(d=null===(y=e.tags)||void 0===y?void 0:y.length)&&void 0!==d?d:0)>0&&(C=C.filter(t=>{var n,o;return null===(o=null===(n=t.options)||void 0===n?void 0:n.tags)||void 0===o?void 0:o.some(t=>{var n;return(null!==(n=null==e?void 0:e.tags)&&void 0!==n?n:[]).includes(t)})})),x.beforeStatus?(m=Array.from(C.map(t=>({date:(new Date).toISOString(),category:u,name:t.name,success:!1,result:"before() failed",ms:0,skipped:!1,logs:"",owner:p,package:f.name,widgetsDifference:0,flaking:DG.Test.isReproducing}))),m.forEach(t=>s(this,void 0,void 0,function*(){return yield grok.shell.reportTest("package",t)}))):m=yield v(x,e,c);const b=m.filter(t=>"skipped"!=t.result);if(t||(x.afterStatus=yield g(x.after,u)),x.afterStatus&&(a(`Package testing: Category after() {{${u}}} failed`),a(`Package testing: Result for {{${u}}} after: ${x.afterStatus}`),b.push({date:(new Date).toISOString(),category:u,name:"after",success:!1,result:x.afterStatus,ms:0,skipped:!1,logs:"",owner:p,package:f.name,widgetsDifference:0,flaking:DG.Test.isReproducing})),x.beforeStatus&&(a(`Package testing: Category before() {{${u}}} failed`),a(`Package testing: Result for {{${u}}} before: ${x.beforeStatus}`),b.push({date:(new Date).toISOString(),category:u,name:"before",success:!1,result:x.beforeStatus,ms:0,skipped:!1,logs:"",owner:p,package:f.name,widgetsDifference:0,flaking:DG.Test.isReproducing})),h.push(...b),e.returnOnFail&&b.some(t=>!t.success&&!t.skipped&&t.name!==e.skipToTest))break}}finally{console.log=a,console.info=c,console.warn=l,console.error=u}if(e.testContext.catchUnhandled&&!DG.Test.isInBenchmark){yield T(1e3);const t=yield grok.shell.lastError;if(null!=t){const e={logs:"",date:(new Date).toISOString(),category:"Unhandled exceptions",name:"Exception",result:null!=t?t:"",success:!t,ms:0,skipped:!1,owner:null!=p?p:"",package:f.name,widgetsDifference:0};a(`Package testing: Unhandled Exception: ${t}`),h.push(Object.assign(Object.assign({},e),{flaking:DG.Test.isReproducing&&!t})),e.package=f.name,yield grok.shell.reportTest("package",e)}}})}(y,t);for(let t of h)t.result=t.result.toString().replace(/"/g,"'"),null!=t.logs&&(t.logs=t.logs.toString().replace(/"/g,"'"));return h;function g(t,e){return s(this,void 0,void 0,function*(){let n;try{void 0!==t&&(yield L(()=>s(this,void 0,void 0,function*(){yield t()}),1e5,`before ${e}: timeout error`))}catch(t){n=yield k(t)}return n})}function v(t,e,n){var o,a,c,l,u,y,d,h,g,m,v,b,w,k,O,T,L,A,S;return s(this,void 0,void 0,function*(){let s=null!==(o=t.tests)&&void 0!==o?o:[];const N=[],R=C();if(t.clear){let o=n&&null!=e.skipToTest;for(let n=0;n<s.length;n++){s[n].options&&void 0===(null===(a=s[n].options)||void 0===a?void 0:a.benchmark)&&(s[n].options||(s[n].options={}),s[n].options.benchmark=null!==(c=t.benchmarks)&&void 0!==c&&c);let w=s[n];if(e.test&&e.test.toLowerCase()!==w.name.toLowerCase())continue;if(o){if(null==(null==e?void 0:e.skipToTest)||w.name.toLowerCase().trim()!==(null==e?void 0:e.skipToTest.toLowerCase().trim()))continue;o=!1}(null==w?void 0:w.options)&&(w.options.owner=null!==(d=null!==(y=null!==(u=null===(l=s[n].options)||void 0===l?void 0:l.owner)&&void 0!==u?u:null==t?void 0:t.owner)&&void 0!==y?y:p)&&void 0!==d?d:"");let k=yield D(w,null==e?void 0:e.test,x,DG.Test.isInBenchmark?null!==(g=null===(h=s[n].options)||void 0===h?void 0:h.benchmarkTimeout)&&void 0!==g?g:r:null!==(v=null===(m=s[n].options)||void 0===m?void 0:m.timeout)&&void 0!==v?v:i,f.name,e.verbose);if(k&&(N.push(Object.assign(Object.assign({},k),{widgetsDifference:C()-R})),e.returnOnFail&&e.skipToTest!==w.name&&!k.success&&!k.skipped))return N;e.nodeOptions||!1===(null===(b=e.testContext)||void 0===b?void 0:b.closeAll)||(grok.shell.closeAll(),DG.Balloon.closeAll())}}else{let o=n&&null!=e.skipToTest;for(let n=0;n<s.length;n++){let i=s[n];if(e.test&&e.test.toLowerCase()!==i.name.toLowerCase())continue;if(o){null!=(null==e?void 0:e.skipToTest)&&i.name.toLowerCase().trim()===(null==e?void 0:e.skipToTest.toLowerCase().trim())&&(o=!1);continue}(null==i?void 0:i.options)&&(i.options.owner=null!==(T=null!==(O=null!==(k=null===(w=s[n].options)||void 0===w?void 0:w.owner)&&void 0!==k?k:null==t?void 0:t.owner)&&void 0!==O?O:p)&&void 0!==T?T:"");let a=yield D(i,null==e?void 0:e.test,x,DG.Test.isInBenchmark?null!==(A=null===(L=s[n].options)||void 0===L?void 0:L.benchmarkTimeout)&&void 0!==A?A:r:null===(S=s[n].options)||void 0===S?void 0:S.timeout,f.name,e.verbose);if(a&&(N.push(Object.assign(Object.assign({},a),{widgetsDifference:C()-R})),e.returnOnFail&&e.skipToTest!==i.name&&!a.success&&!a.skipped))return N}}return N})}function C(){var t;if("undefined"!=typeof process)return 0;let e=-1;try{e=DG.Widget.getAll().length}catch(e){console.warn(null!==(t=e.message)&&void 0!==t?t:e)}return e}})}({category:e,test:n,testContext:o});return t.DataFrame.fromObjects(f)})}function R(){return A(this,void 0,void 0,function*(){yield w(S,S.getModule("package-test.js"))})}})(),hittriage_test=o})();
|
|
1
|
+
var hittriage_test;(()=>{var e={397(e){!function(t,n){var o={};n(o);var i=o.default;for(var s in o)i[s]=o[s];"object"==typeof e.exports?e.exports=i:"function"==typeof define&&define.amd?define(function(){return i}):t.sha256=i}(this,function(e){"use strict";e.__esModule=!0,e.digestLength=32,e.blockSize=64;var t=new Uint32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]);function n(e,n,o,i,s){for(var r,a,l,c,u,y,f,x,p,d,h,g,m;s>=64;){for(d=0,r=n[0],a=n[1],l=n[2],c=n[3],u=n[4],y=n[5],f=n[6],x=n[7];d<16;d++)h=i+4*d,e[d]=(255&o[h])<<24|(255&o[h+1])<<16|(255&o[h+2])<<8|255&o[h+3];for(d=16;d<64;d++)g=((p=e[d-2])>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,m=((p=e[d-15])>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,e[d]=(g+e[d-7]|0)+(m+e[d-16]|0);for(d=0;d<64;d++)g=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&y^~u&f)|0)+(x+(t[d]+e[d]|0)|0)|0,m=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&a^r&l^a&l)|0,x=f,f=y,y=u,u=c+g|0,c=l,l=a,a=r,r=g+m|0;n[0]+=r,n[1]+=a,n[2]+=l,n[3]+=c,n[4]+=u,n[5]+=y,n[6]+=f,n[7]+=x,i+=64,s-=64}return i}var o=function(){function t(){this.digestLength=e.digestLength,this.blockSize=e.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return t.prototype.reset=function(){return this.state[0]=0x6a09e667,this.state[1]=0xbb67ae85,this.state[2]=0x3c6ef372,this.state[3]=0xa54ff53a,this.state[4]=0x510e527f,this.state[5]=0x9b05688c,this.state[6]=0x1f83d9ab,this.state[7]=0x5be0cd19,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},t.prototype.clean=function(){for(var e=0;e<this.buffer.length;e++)this.buffer[e]=0;for(var e=0;e<this.temp.length;e++)this.temp[e]=0;this.reset()},t.prototype.update=function(e,t){if(void 0===t&&(t=e.length),this.finished)throw Error("SHA256: can't update because hash was finished.");var o=0;if(this.bytesHashed+=t,this.bufferLength>0){for(;this.bufferLength<64&&t>0;)this.buffer[this.bufferLength++]=e[o++],t--;64===this.bufferLength&&(n(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(t>=64&&(o=n(this.temp,this.state,e,o,t),t%=64);t>0;)this.buffer[this.bufferLength++]=e[o++],t--;return this},t.prototype.finish=function(e){if(!this.finished){var t=this.bytesHashed,o=this.bufferLength,i=t/0x20000000|0,s=t<<3,r=t%64<56?64:128;this.buffer[o]=128;for(var a=o+1;a<r-8;a++)this.buffer[a]=0;this.buffer[r-8]=i>>>24&255,this.buffer[r-7]=i>>>16&255,this.buffer[r-6]=i>>>8&255,this.buffer[r-5]=i>>>0&255,this.buffer[r-4]=s>>>24&255,this.buffer[r-3]=s>>>16&255,this.buffer[r-2]=s>>>8&255,this.buffer[r-1]=s>>>0&255,n(this.temp,this.state,this.buffer,0,r),this.finished=!0}for(var a=0;a<8;a++)e[4*a+0]=this.state[a]>>>24&255,e[4*a+1]=this.state[a]>>>16&255,e[4*a+2]=this.state[a]>>>8&255,e[4*a+3]=this.state[a]>>>0&255;return this},t.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},t.prototype._saveState=function(e){for(var t=0;t<this.state.length;t++)e[t]=this.state[t]},t.prototype._restoreState=function(e,t){for(var n=0;n<this.state.length;n++)this.state[n]=e[n];this.bytesHashed=t,this.finished=!1,this.bufferLength=0},t}();e.Hash=o;var i=function(){function e(e){this.inner=new o,this.outer=new o,this.blockSize=this.inner.blockSize,this.digestLength=this.inner.digestLength;var t=new Uint8Array(this.blockSize);if(e.length>this.blockSize)new o().update(e).finish(t).clean();else for(var n=0;n<e.length;n++)t[n]=e[n];for(var n=0;n<t.length;n++)t[n]^=54;this.inner.update(t);for(var n=0;n<t.length;n++)t[n]^=106;this.outer.update(t),this.istate=new Uint32Array(8),this.ostate=new Uint32Array(8),this.inner._saveState(this.istate),this.outer._saveState(this.ostate);for(var n=0;n<t.length;n++)t[n]=0}return e.prototype.reset=function(){return this.inner._restoreState(this.istate,this.inner.blockSize),this.outer._restoreState(this.ostate,this.outer.blockSize),this},e.prototype.clean=function(){for(var e=0;e<this.istate.length;e++)this.ostate[e]=this.istate[e]=0;this.inner.clean(),this.outer.clean()},e.prototype.update=function(e){return this.inner.update(e),this},e.prototype.finish=function(e){return this.outer.finished?this.outer.finish(e):(this.inner.finish(e),this.outer.update(e,this.digestLength).finish(e)),this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e}();function s(e){var t=new o().update(e),n=t.digest();return t.clean(),n}function r(e,t){var n=new i(e).update(t),o=n.digest();return n.clean(),o}e.HMAC=i,e.hash=s,e.default=s,e.hmac=r;var a=new Uint8Array(e.digestLength);e.hkdf=function(e,t,n,o){void 0===t&&(t=a),void 0===o&&(o=32);for(var s=new Uint8Array([1]),l=new i(r(t,e)),c=new Uint8Array(l.digestLength),u=c.length,y=new Uint8Array(o),f=0;f<o;f++)u===c.length&&(!function(e,t,n,o){var i=o[0];if(0===i)throw Error("hkdf: cannot expand more");t.reset(),i>1&&t.update(e),n&&t.update(n),t.update(o),t.finish(e),o[0]++}(c,l,n,s),u=0),y[f]=c[u++];return l.clean(),c.fill(0),s.fill(0),y},e.pbkdf2=function(e,t,n,o){for(var s=new i(e),r=s.digestLength,a=new Uint8Array(4),l=new Uint8Array(r),c=new Uint8Array(r),u=new Uint8Array(o),y=0;y*r<o;y++){var f=y+1;a[0]=f>>>24&255,a[1]=f>>>16&255,a[2]=f>>>8&255,a[3]=f>>>0&255,s.reset(),s.update(t),s.update(a),s.finish(c);for(var x=0;x<r;x++)l[x]=c[x];for(var x=2;x<=n;x++){s.reset(),s.update(c).finish(c);for(var p=0;p<r;p++)l[p]^=c[p]}for(var x=0;x<r&&y*r+x<o;x++)u[y*r+x]=l[x]}for(var y=0;y<r;y++)l[y]=c[y]=0;for(var y=0;y<4;y++)a[y]=0;return s.clean(),u}})}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var s=t[o]={exports:{}};return e[o].call(s.exports,s,s.exports,n),s.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{"use strict";var e;n.r(o),n.d(o,{tests:()=>p,test:()=>R,_package:()=>N,initAutoTests:()=>E});let t=DG;n(397);let i=DG.DataFrame.fromCsv(`countries,fasta,smiles,molregno,LON,Zip Code,Street Address Line 1,ImageUrl,user_id,error_message,xray,flag,magnitude,CS-id,pdb_id,accel_a,time_offset,chart,fit,Questions,empty_number,empty_string
|
|
2
|
+
Belgium,MSNFHNEHVMQFYRNNLKTKGVFGRQ,CC(C(=O)OCCCc1cccnc1)c2cccc(c2)C(=O)c3ccccc3,1480014,36.276729583740234,995042300,14016 ROUTE 31W,https://datagrok.ai/img/slides/access-db-connect.png,id,ErrorMessage,"COMPND
|
|
3
|
+
ATOM
|
|
4
|
+
END",flag,1,1,1QBS,1,1.23,<chart></chart>,"{""series"":[{""name"":""Run:2023-08-08"",""fitFunction"":""sigmoid"",""fitLineColor"":""#1f77b4"",""pointColor"":""#1f77b4"",""showPoints"":""points"",""parameters"":[2.497360340644872, 1.7058694986686864, 5.278052678195135, 0.16000320889028383],""points"":[{""x"":0.10000000149011612,""y"":2.374499797821045},{""x"":0.6000000238418579,""y"":2.6242473125457764},{""x"":1.100000023841858,""y"":2.367267608642578},{""x"":1.600000023841858,""y"":2.6723148822784424},{""x"":2.0999999046325684,""y"":2.6537344455718994},{""x"":2.5999999046325684,""y"":2.3651671409606934},{""x"":3.0999999046325684,""y"":2.5654284954071045},{""x"":3.5999999046325684,""y"":2.4160959720611572},{""x"":4.099999904632568,""y"":2.286726713180542},{""x"":4.599999904632568,""y"":2.5100042819976807},{""x"":5.099999904632568,""y"":1.6676985025405884},{""x"":5.599999904632568,""y"":0.680136501789093},{""x"":6.099999904632568,""y"":0.3391543924808502},{""x"":6.599999904632568,""y"":0.09038983285427094},{""x"":7.099999904632568,""y"":0.19802775979042053}]},{""name"":""Run:2023-08-08"",""fitLineColor"":""#ffbb78"",""pointColor"":""#ffbb78"",""showPoints"":""points"",""parameters"":[7.525235855508179, 1.3186911876809984, 5.335672608564294, 0.7860743343958098],""points"":[{""x"":0.10000000149011612,""y"":7.988070487976074},{""x"":0.6000000238418579,""y"":7.018453121185303},{""x"":1.100000023841858,""y"":8.115279197692871},{""x"":1.600000023841858,""y"":7.486658096313477},{""x"":2.0999999046325684,""y"":7.396438121795654},{""x"":2.5999999046325684,""y"":7.477052211761475},{""x"":3.0999999046325684,""y"":6.913095474243164},{""x"":3.5999999046325684,""y"":8.01385498046875},{""x"":4.099999904632568,""y"":6.985900402069092},{""x"":4.599999904632568,""y"":6.970335960388184},{""x"":5.099999904632568,""y"":5.448817253112793},{""x"":5.599999904632568,""y"":2.5534818172454834},{""x"":6.099999904632568,""y"":1.893947958946228},{""x"":6.599999904632568,""y"":0.6340042352676392},{""x"":7.099999904632568,""y"":0.8403874039649963}]}],""chartOptions"":{""xAxisName"":""Conc."",""yAxisName"":""Activity"",""title"":""Dose-Response curves""}}",text,100,abc
|
|
5
|
+
Burundi,MDYKETLLMPKTDFPMRGGLPNKEPQIQEKW,COc1ccc2cc(ccc2c1)C(C)C(=O)Oc3ccc(C)cc3OC,1480015,36.276729583740234,995073444,80 STATE HIGHWAY 310,https://datagrok.ai/img/slides/access-db-connect.png,id,ErrorMessage,"COMPND
|
|
6
|
+
ATOM
|
|
7
|
+
END",flag,2,2,1ZP8,2,1.23,<chart></chart>,"{""series"":[{""name"":""Run:2023-08-08"",""fitFunction"":""sigmoid"",""fitLineColor"":""#1f77b4"",""pointColor"":""#1f77b4"",""showPoints"":""points"",""parameters"":[4.431460753103398, 2.1691498799246745, 5.266445597102774, 0.7825762827017926],""points"":[{""x"":0.10000000149011612,""y"":4.751083850860596},{""x"":0.6000000238418579,""y"":4.203000068664551},{""x"":1.100000023841858,""y"":4.415858745574951},{""x"":1.600000023841858,""y"":4.68414306640625},{""x"":2.0999999046325684,""y"":4.198400974273682},{""x"":2.5999999046325684,""y"":4.179222106933594},{""x"":3.0999999046325684,""y"":4.638473987579346},{""x"":3.5999999046325684,""y"":4.708553314208984},{""x"":4.099999904632568,""y"":4.291589260101318},{""x"":4.599999904632568,""y"":4.038082599639893},{""x"":5.099999904632568,""y"":3.4349939823150635},{""x"":5.599999904632568,""y"":1.2194708585739136},{""x"":6.099999904632568,""y"":1.1920831203460693},{""x"":6.599999904632568,""y"":0.5352635979652405},{""x"":7.099999904632568,""y"":0.3346920311450958}]},{""name"":""Run:2023-08-08"",""fitLineColor"":""#ffbb78"",""pointColor"":""#ffbb78"",""showPoints"":""points"",""parameters"":[2.339458017970126, -1.0734184310171178, 4.746332950550934, 0.2482416857595658],""points"":[{""x"":0.10000000149011612,""y"":0.2139337658882141},{""x"":0.6000000238418579,""y"":0.4269562065601349},{""x"":1.100000023841858,""y"":0.2441573292016983},{""x"":1.600000023841858,""y"":0.146635964512825},{""x"":2.0999999046325684,""y"":0.08818462491035461},{""x"":2.5999999046325684,""y"":0.2560656666755676},{""x"":3.0999999046325684,""y"":0.42434045672416687},{""x"":3.5999999046325684,""y"":0.37111231684684753},{""x"":4.099999904632568,""y"":0.5581737160682678},{""x"":4.599999904632568,""y"":1.183590054512024},{""x"":5.099999904632568,""y"":1.5629843473434448},{""x"":5.599999904632568,""y"":2.3211288452148438},{""x"":6.099999904632568,""y"":2.229961633682251},{""x"":6.599999904632568,""y"":2.2560226917266846},{""x"":7.099999904632568,""y"":2.2142398357391357}]}],""chartOptions"":{""xAxisName"":""Conc."",""yAxisName"":""Activity"",""title"":""Dose-Response curves""}}",text,,
|
|
8
|
+
Cameroon,MIEVFLFGIVLGLIPITLAGLFVTAYLQYRRGDQLDL,COc1ccc2cc(ccc2c1)C(C)C(=O)OCCCc3cccnc3,1480016,36.26095962524414,995153596,30-56 WHITESTONE EXPY,https://datagrok.ai/img/slides/access-db-connect.png,id,ErrorMessage,"COMPND
|
|
9
|
+
ATOM
|
|
10
|
+
END",flag,3,3,2BDJ,3,1.23,<chart></chart>,"{""series"":[{""name"":""Run:2023-08-08"",""fitFunction"":""sigmoid"",""fitLineColor"":""#1f77b4"",""pointColor"":""#1f77b4"",""showPoints"":""points"",""parameters"":[4.6760652578642325, 0.9046956320756703, 5.651408971856738, 0.07738846012184185],""points"":[{""x"":0.10000000149011612,""y"":4.32425594329834},{""x"":0.6000000238418579,""y"":4.668442249298096},{""x"":1.100000023841858,""y"":4.379785060882568},{""x"":1.600000023841858,""y"":5.0345139503479},{""x"":2.0999999046325684,""y"":4.878653526306152},{""x"":2.5999999046325684,""y"":4.3451313972473145},{""x"":3.0999999046325684,""y"":4.336992263793945},{""x"":3.5999999046325684,""y"":5.037430286407471},{""x"":4.099999904632568,""y"":5.0092692375183105},{""x"":4.599999904632568,""y"":4.151902675628662},{""x"":5.099999904632568,""y"":3.4066951274871826},{""x"":5.599999904632568,""y"":2.3732759952545166},{""x"":6.099999904632568,""y"":1.673728108406067},{""x"":6.599999904632568,""y"":0.48574790358543396},{""x"":7.099999904632568,""y"":0.2783052325248718}]},{""name"":""Run:2023-08-08"",""fitLineColor"":""#ffbb78"",""pointColor"":""#ffbb78"",""showPoints"":""points"",""parameters"":[2.938395863010111, -1.4658480661392117, 5.462702751996584, 0.3473139023615039],""points"":[{""x"":0.10000000149011612,""y"":0.4941710829734802},{""x"":0.6000000238418579,""y"":0.15323974192142487},{""x"":1.100000023841858,""y"":0.46373432874679565},{""x"":1.600000023841858,""y"":0.3370431363582611},{""x"":2.0999999046325684,""y"":0.5179030299186707},{""x"":2.5999999046325684,""y"":0.27899765968322754},{""x"":3.0999999046325684,""y"":0.22075064480304718},{""x"":3.5999999046325684,""y"":0.5789918899536133},{""x"":4.099999904632568,""y"":0.21169911324977875},{""x"":4.599999904632568,""y"":0.27857646346092224},{""x"":5.099999904632568,""y"":1.0906332731246948},{""x"":5.599999904632568,""y"":1.8520300388336182},{""x"":6.099999904632568,""y"":2.7177059650421143},{""x"":6.599999904632568,""y"":2.8680918216705322},{""x"":7.099999904632568,""y"":3.2413077354431152}]}],""chartOptions"":{""xAxisName"":""Conc."",""yAxisName"":""Activity"",""title"":""Dose-Response curves""}}",text,,
|
|
11
|
+
Canada,MMELVLKTIIGPIVVGVVLRIVDKWLNKDK,CC(C(=O)NCCS)c1cccc(c1)C(=O)c2ccccc2,1480017,36.26095962524414,99515,30-56 WHITESTONE EXPY,https://datagrok.ai/img/slides/access-db-connect.png,id,ErrorMessage,"COMPND
|
|
12
|
+
ATOM
|
|
13
|
+
END",flag,4,4,1IAN,4,1.23,<chart></chart>,"{""series"":[{""name"":""Run:2023-08-08"",""fitFunction"":""sigmoid"",""fitLineColor"":""#1f77b4"",""pointColor"":""#1f77b4"",""showPoints"":""points"",""parameters"":[0.8597390975430008, 1.0957625732481946, 5.260537067987958, 0.07974187998177736],""points"":[{""x"":0.10000000149011612,""y"":0.8190152645111084},{""x"":0.6000000238418579,""y"":0.8421689867973328},{""x"":1.100000023841858,""y"":0.8740922212600708},{""x"":1.600000023841858,""y"":0.8924275040626526},{""x"":2.0999999046325684,""y"":0.8249067664146423},{""x"":2.5999999046325684,""y"":0.9327669143676758},{""x"":3.0999999046325684,""y"":0.8522974252700806},{""x"":3.5999999046325684,""y"":0.8174492716789246},{""x"":4.099999904632568,""y"":0.8394647240638733},{""x"":4.599999904632568,""y"":0.7139387726783752},{""x"":5.099999904632568,""y"":0.5561167597770691},{""x"":5.599999904632568,""y"":0.3276226818561554},{""x"":6.099999904632568,""y"":0.12479474395513535},{""x"":6.599999904632568,""y"":0.13006797432899475},{""x"":7.099999904632568,""y"":0.059702079743146896}]},{""name"":""Run:2023-08-08"",""fitLineColor"":""#ffbb78"",""pointColor"":""#ffbb78"",""showPoints"":""points"",""parameters"":[5.760930219582546, 1.6591793293833013, 4.667155929720851, 0.7858109544121652],""points"":[{""x"":0.10000000149011612,""y"":6.156993389129639},{""x"":0.6000000238418579,""y"":5.236701965332031},{""x"":1.100000023841858,""y"":6.010560512542725},{""x"":1.600000023841858,""y"":5.495512962341309},{""x"":2.0999999046325684,""y"":6.087770462036133},{""x"":2.5999999046325684,""y"":5.79986572265625},{""x"":3.0999999046325684,""y"":5.597546577453613},{""x"":3.5999999046325684,""y"":5.520902156829834},{""x"":4.099999904632568,""y"":5.360654354095459},{""x"":4.599999904632568,""y"":3.5539746284484863},{""x"":5.099999904632568,""y"":1.577236294746399},{""x"":5.599999904632568,""y"":1.0001264810562134},{""x"":6.099999904632568,""y"":0.9305797815322876},{""x"":6.599999904632568,""y"":0.6033638715744019},{""x"":7.099999904632568,""y"":0.4203685522079468}]}],""chartOptions"":{""xAxisName"":""Conc."",""yAxisName"":""Activity"",""title"":""Dose-Response curves""}}",text,,
|
|
14
|
+
Colombia,MDRTDEVSNHTHDKPTLTWFEEIFEEYHSPFHN,FC(F)(F)c1ccc(OC2CCNCC2)cc1,1480029,36.3309440612793,995152050,1 COURT HOUSE SQUARE,https://datagrok.ai/img/slides/access-db-connect.png,id,ErrorMessage,"COMPND
|
|
15
|
+
ATOM
|
|
16
|
+
END",flag,5,5,4UJ1,5,1.23,<chart></chart>,"{""series"":[{""name"":""Run:2023-08-08"",""fitFunction"":""sigmoid"",""fitLineColor"":""#1f77b4"",""pointColor"":""#1f77b4"",""showPoints"":""points"",""parameters"":[6.4995088314153655, 2.4270351004539914, 5.178659535348579, 0.625653346241577],""points"":[{""x"":0.10000000149011612,""y"":6.496231555938721},{""x"":0.6000000238418579,""y"":6.42543363571167},{""x"":1.100000023841858,""y"":7.040063858032227},{""x"":1.600000023841858,""y"":6.1115403175354},{""x"":2.0999999046325684,""y"":6.680728435516357},{""x"":2.5999999046325684,""y"":6.406774520874023},{""x"":3.0999999046325684,""y"":6.611269474029541},{""x"":3.5999999046325684,""y"":5.889094352722168},{""x"":4.099999904632568,""y"":6.75344705581665},{""x"":4.599999904632568,""y"":6.361435890197754},{""x"":5.099999904632568,""y"":4.1666975021362305},{""x"":5.599999904632568,""y"":1.172118902206421},{""x"":6.099999904632568,""y"":0.801048994064331},{""x"":6.599999904632568,""y"":0.4640021026134491},{""x"":7.099999904632568,""y"":0.0010357667924836278}]},{""name"":""Run:2023-08-08"",""fitLineColor"":""#ffbb78"",""pointColor"":""#ffbb78"",""showPoints"":""points"",""parameters"":[1.4734381347446401, 1.1649805188074196, 4.82958608866421, 0.09500545496710007],""points"":[{""x"":0.10000000149011612,""y"":1.5279096364974976},{""x"":0.6000000238418579,""y"":1.3559974431991577},{""x"":1.100000023841858,""y"":1.5246378183364868},{""x"":1.600000023841858,""y"":1.5567657947540283},{""x"":2.0999999046325684,""y"":1.4114240407943726},{""x"":2.5999999046325684,""y"":1.4045010805130005},{""x"":3.0999999046325684,""y"":1.4769829511642456},{""x"":3.5999999046325684,""y"":1.4875500202178955},{""x"":4.099999904632568,""y"":1.2991987466812134},{""x"":4.599999904632568,""y"":0.922961413860321},{""x"":5.099999904632568,""y"":0.6520044803619385},{""x"":5.599999904632568,""y"":0.15350978076457977},{""x"":6.099999904632568,""y"":0.1078903079032898},{""x"":6.599999904632568,""y"":0.17276449501514435},{""x"":7.099999904632568,""y"":0.14066608250141144}]}],""chartOptions"":{""xAxisName"":""Conc."",""yAxisName"":""Activity"",""title"":""Dose-Response curves""}}",text,,
|
|
17
|
+
Costa Rica,MKSTKEEIQTIKTLLKDSRTAKYHKRLQIVL,CC(C)Cc1ccc(cc1)C(C)C(=O)N2CCCC2C(=O)OCCCc3ccccc3,1480018,36.3309440612793,995084218,4041 SOUTHWESTERN BLVD,https://datagrok.ai/img/slides/access-db-connect.png,id,ErrorMessage,"COMPND
|
|
18
|
+
ATOM
|
|
19
|
+
END",flag,6,6,2BPW,6,1.23,<chart></chart>,"{""series"":[{""name"":""Run:2023-08-08"",""fitFunction"":""sigmoid"",""fitLineColor"":""#1f77b4"",""pointColor"":""#1f77b4"",""showPoints"":""points"",""parameters"":[2.4833641843311227, -1.8945978742090062, 4.671127708092568, 0.24159861311815153],""points"":[{""x"":0.10000000149011612,""y"":0.0969524160027504},{""x"":0.6000000238418579,""y"":0.028483040630817413},{""x"":1.100000023841858,""y"":0.22087176144123077},{""x"":1.600000023841858,""y"":0.0068915546871721745},{""x"":2.0999999046325684,""y"":0.4305879771709442},{""x"":2.5999999046325684,""y"":0.44774115085601807},{""x"":3.0999999046325684,""y"":0.45346319675445557},{""x"":3.5999999046325684,""y"":0.2370593100786209},{""x"":4.099999904632568,""y"":0.4657953977584839},{""x"":4.599999904632568,""y"":1.155200719833374},{""x"":5.099999904632568,""y"":2.2294070720672607},{""x"":5.599999904632568,""y"":2.4311530590057373},{""x"":6.099999904632568,""y"":2.33846116065979},{""x"":6.599999904632568,""y"":2.608201026916504},{""x"":7.099999904632568,""y"":2.8136143684387207}]},{""name"":""Run:2023-08-08"",""fitLineColor"":""#ffbb78"",""pointColor"":""#ffbb78"",""showPoints"":""points"",""parameters"":[5.224573521642033, 1.4454033924198528, 5.6014197746076535, 0.2823216054197577],""points"":[{""x"":0.10000000149011612,""y"":4.95027494430542},{""x"":0.6000000238418579,""y"":5.1754679679870605},{""x"":1.100000023841858,""y"":5.276752948760986},{""x"":1.600000023841858,""y"":5.589294910430908},{""x"":2.0999999046325684,""y"":5.616994857788086},{""x"":2.5999999046325684,""y"":5.120813846588135},{""x"":3.0999999046325684,""y"":5.340766906738281},{""x"":3.5999999046325684,""y"":4.876471042633057},{""x"":4.099999904632568,""y"":4.94999361038208},{""x"":4.599999904632568,""y"":5.162564754486084},{""x"":5.099999904632568,""y"":4.399557590484619},{""x"":5.599999904632568,""y"":2.7977969646453857},{""x"":6.099999904632568,""y"":1.0229872465133667},{""x"":6.599999904632568,""y"":0.48275601863861084},{""x"":7.099999904632568,""y"":0.10408931970596313}]}],""chartOptions"":{""xAxisName"":""Conc."",""yAxisName"":""Activity"",""title"":""Dose-Response curves""}}",text,,
|
|
20
|
+
Cuba,MHAILRYFIRRLFYHIFYKIYSLISKKHQSLPSDVRQF,COc1ccc2c(c1)c(CC(=O)N3CCCC3C(=O)Oc4ccc(C)cc4OC)c(C)n2C(=O)c5ccc(Cl)cc5,1480019,36.33115768432617,995081928,1227 US HIGHWAY 11,https://datagrok.ai/img/slides/access-db-connect.png,id,ErrorMessage,"COMPND
|
|
21
|
+
ATOM
|
|
22
|
+
END",flag,7,7,1QBS,7,1.23,<chart></chart>,"{""series"":[{""name"":""Run:2023-08-08"",""fitFunction"":""sigmoid"",""fitLineColor"":""#1f77b4"",""pointColor"":""#1f77b4"",""showPoints"":""points"",""parameters"":[3.320838679713925, -1.2421619987316728, 4.831325425225256, 0.3236011098403072],""points"":[{""x"":0.10000000149011612,""y"":0.3727470338344574},{""x"":0.6000000238418579,""y"":0.12365014106035233},{""x"":1.100000023841858,""y"":0.48422467708587646},{""x"":1.600000023841858,""y"":0.2264465093612671},{""x"":2.0999999046325684,""y"":0.16821794211864471},{""x"":2.5999999046325684,""y"":0.3879014551639557},{""x"":3.0999999046325684,""y"":0.5470244884490967},{""x"":3.5999999046325684,""y"":0.3419053554534912},{""x"":4.099999904632568,""y"":0.7655120491981506},{""x"":4.599999904632568,""y"":1.2346516847610474},{""x"":5.099999904632568,""y"":2.453336715698242},{""x"":5.599999904632568,""y"":2.9565491676330566},{""x"":6.099999904632568,""y"":3.335299491882324},{""x"":6.599999904632568,""y"":3.240290880203247},{""x"":7.099999904632568,""y"":3.1107218265533447}]},{""name"":""Run:2023-08-08"",""fitLineColor"":""#ffbb78"",""pointColor"":""#ffbb78"",""showPoints"":""points"",""parameters"":[3.6401853521511094, 1.26211588875013, 5.399028074402744, 0.5089580830068091],""points"":[{""x"":0.10000000149011612,""y"":3.8585598468780518},{""x"":0.6000000238418579,""y"":3.6077206134796143},{""x"":1.100000023841858,""y"":3.855252265930176},{""x"":1.600000023841858,""y"":3.619039297103882},{""x"":2.0999999046325684,""y"":3.839388370513916},{""x"":2.5999999046325684,""y"":3.335283041000366},{""x"":3.0999999046325684,""y"":3.571141481399536},{""x"":3.5999999046325684,""y"":3.4155046939849854},{""x"":4.099999904632568,""y"":3.7316646575927734},{""x"":4.599999904632568,""y"":3.0680155754089355},{""x"":5.099999904632568,""y"":2.891066551208496},{""x"":5.599999904632568,""y"":1.6022753715515137},{""x"":6.099999904632568,""y"":0.7652576565742493},{""x"":6.599999904632568,""y"":0.6875326037406921},{""x"":7.099999904632568,""y"":0.5828871726989746}]}],""chartOptions"":{""xAxisName"":""Conc."",""yAxisName"":""Activity"",""title"":""Dose-Response curves""}}",text,,
|
|
23
|
+
Italy,MSNFHNEHVMQFYRNNLKTKGVFGRQ,CC(C)Cc1ccc(cc1)C(C)C(=O)N2CCCC2C(=O)OCCO[N+](=O)[O-],1480020,36.33115768432617,99502,"168-46 91ST AVE., 2ND FLR",https://datagrok.ai/img/slides/access-db-connect.png,id,ErrorMessage,"COMPND
|
|
24
|
+
ATOM
|
|
25
|
+
END",flag,8,8,1ZP8,8,1.23,<chart></chart>,"{""series"":[{""name"":""Run:2023-08-08"",""fitFunction"":""sigmoid"",""fitLineColor"":""#1f77b4"",""pointColor"":""#1f77b4"",""showPoints"":""points"",""parameters"":[2.293592105923809, 1.3781586549141835, 5.1025898038676605, 0.03493851245291291],""points"":[{""x"":0.10000000149011612,""y"":2.1287283897399902},{""x"":0.6000000238418579,""y"":2.267972230911255},{""x"":1.100000023841858,""y"":2.398442506790161},{""x"":1.600000023841858,""y"":2.5130622386932373},{""x"":2.0999999046325684,""y"":2.3255116939544678},{""x"":2.5999999046325684,""y"":2.127340793609619},{""x"":3.0999999046325684,""y"":2.47259783744812},{""x"":3.5999999046325684,""y"":2.131181478500366},{""x"":4.099999904632568,""y"":2.090421438217163},{""x"":4.599999904632568,""y"":2.02299165725708},{""x"":5.099999904632568,""y"":1.1105059385299683},{""x"":5.599999904632568,""y"":0.4494485855102539},{""x"":6.099999904632568,""y"":0.1375635862350464},{""x"":6.599999904632568,""y"":0.036351121962070465},{""x"":7.099999904632568,""y"":0.1619771122932434}]},{""name"":""Run:2023-08-08"",""fitLineColor"":""#ffbb78"",""pointColor"":""#ffbb78"",""showPoints"":""points"",""parameters"":[5.953125499439879, 1.2528620255306528, 5.187637440149802, 0.3110348753260886],""points"":[{""x"":0.10000000149011612,""y"":5.6585283279418945},{""x"":0.6000000238418579,""y"":5.911152362823486},{""x"":1.100000023841858,""y"":5.924920082092285},{""x"":1.600000023841858,""y"":5.8469438552856445},{""x"":2.0999999046325684,""y"":5.929472923278809},{""x"":2.5999999046325684,""y"":6.190037727355957},{""x"":3.0999999046325684,""y"":6.236179828643799},{""x"":3.5999999046325684,""y"":6.141019344329834},{""x"":4.099999904632568,""y"":5.295210838317871},{""x"":4.599999904632568,""y"":5.265801906585693},{""x"":5.099999904632568,""y"":3.3722851276397705},{""x"":5.599999904632568,""y"":1.8299226760864258},{""x"":6.099999904632568,""y"":0.32690900564193726},{""x"":6.599999904632568,""y"":0.6274543404579163},{""x"":7.099999904632568,""y"":0.8441857099533081}]}],""chartOptions"":{""xAxisName"":""Conc."",""yAxisName"":""Activity"",""title"":""Dose-Response curves""}}",text,,
|
|
26
|
+
Rwanda,MPNSEPASLLELFNSIATQGELVRSLKAGNASK,CC(C)Cc1ccc(cc1)C(C)C(=O)N2CCCC2C(=O)OCCO,1480021,36.33137130737305,995037247,"168-46 91ST AVE., 2ND FLR",https://datagrok.ai/img/slides/access-db-connect.png,id,ErrorMessage,"COMPND
|
|
27
|
+
ATOM
|
|
28
|
+
END",flag,9,9,2BDJ,9,1.23,<chart></chart>,"{""series"":[{""name"":""Run:2023-08-08"",""fitFunction"":""sigmoid"",""fitLineColor"":""#1f77b4"",""pointColor"":""#1f77b4"",""showPoints"":""points"",""parameters"":[3.8209972202654474, 1.3779216716448506, 5.299882228439686, 0.06040645519069608],""points"":[{""x"":0.10000000149011612,""y"":3.7821109294891357},{""x"":0.6000000238418579,""y"":3.542433023452759},{""x"":1.100000023841858,""y"":3.7008674144744873},{""x"":1.600000023841858,""y"":3.717301607131958},{""x"":2.0999999046325684,""y"":4.024452209472656},{""x"":2.5999999046325684,""y"":4.013899326324463},{""x"":3.0999999046325684,""y"":3.945094347000122},{""x"":3.5999999046325684,""y"":3.866621971130371},{""x"":4.099999904632568,""y"":3.7461626529693604},{""x"":4.599999904632568,""y"":3.3454740047454834},{""x"":5.099999904632568,""y"":2.61944317817688},{""x"":5.599999904632568,""y"":0.999405026435852},{""x"":6.099999904632568,""y"":0.46259793639183044},{""x"":6.599999904632568,""y"":0.054134611040353775},{""x"":7.099999904632568,""y"":0.05711187422275543}]},{""name"":""Run:2023-08-08"",""fitLineColor"":""#ffbb78"",""pointColor"":""#ffbb78"",""showPoints"":""points"",""parameters"":[5.6318079657726035, 1.8495493770000595, 5.391793312471116, 0.17060707587348442],""points"":[{""x"":0.10000000149011612,""y"":5.458079814910889},{""x"":0.6000000238418579,""y"":5.554427146911621},{""x"":1.100000023841858,""y"":5.799983024597168},{""x"":1.600000023841858,""y"":5.364140033721924},{""x"":2.0999999046325684,""y"":5.864485740661621},{""x"":2.5999999046325684,""y"":5.4509806632995605},{""x"":3.0999999046325684,""y"":5.702574729919434},{""x"":3.5999999046325684,""y"":5.7314534187316895},{""x"":4.099999904632568,""y"":5.5123443603515625},{""x"":4.599999904632568,""y"":5.724395751953125},{""x"":5.099999904632568,""y"":4.354506969451904},{""x"":5.599999904632568,""y"":1.7307666540145874},{""x"":6.099999904632568,""y"":0.6305936574935913},{""x"":6.599999904632568,""y"":0.035183437168598175},{""x"":7.099999904632568,""y"":0.7575169205665588}]}],""chartOptions"":{""xAxisName"":""Conc."",""yAxisName"":""Activity"",""title"":""Dose-Response curves""}}",text,,
|
|
29
|
+
Switzerland,IRVVGRYLIEVWKAAGMDMDKVLFLWSSDEI,CN1CCC(CC1)Oc2ccc(cc2)C(F)(F)F,1480028,36.33137130737305,99504,92-11 179TH PLACE,https://datagrok.ai/img/slides/access-db-connect.png,id,ErrorMessage,"COMPND
|
|
30
|
+
ATOM
|
|
31
|
+
END",flag,9,10,1IAN,10,1.23,<chart></chart>,"{""series"":[{""name"":""Run:2023-08-08"",""fitFunction"":""sigmoid"",""fitLineColor"":""#1f77b4"",""pointColor"":""#1f77b4"",""showPoints"":""points"",""parameters"":[1.1190255865097471, 2.3163895161544437, 5.4968866182279195, 0.2035204047289052],""points"":[{""x"":0.10000000149011612,""y"":1.1057683229446411},{""x"":0.6000000238418579,""y"":1.1019697189331055},{""x"":1.100000023841858,""y"":1.0818607807159424},{""x"":1.600000023841858,""y"":1.062997817993164},{""x"":2.0999999046325684,""y"":1.046447515487671},{""x"":2.5999999046325684,""y"":1.1217249631881714},{""x"":3.0999999046325684,""y"":1.2166996002197266},{""x"":3.5999999046325684,""y"":1.215477705001831},{""x"":4.099999904632568,""y"":1.0581893920898438},{""x"":4.599999904632568,""y"":1.1747995615005493},{""x"":5.099999904632568,""y"":1.0181127786636353},{""x"":5.599999904632568,""y"":0.5344523191452026},{""x"":6.099999904632568,""y"":0.2569526433944702},{""x"":6.599999904632568,""y"":0.1912207305431366},{""x"":7.099999904632568,""y"":0.15060538053512573}]},{""name"":""Run:2023-08-08"",""fitLineColor"":""#ffbb78"",""pointColor"":""#ffbb78"",""showPoints"":""points"",""parameters"":[3.1038581025805785, 2.0032224204185245, 5.087602825989163, 0.13277988512492753],""points"":[{""x"":0.10000000149011612,""y"":3.0498509407043457},{""x"":0.6000000238418579,""y"":2.805217742919922},{""x"":1.100000023841858,""y"":3.3415253162384033},{""x"":1.600000023841858,""y"":3.0549843311309814},{""x"":2.0999999046325684,""y"":3.250074863433838},{""x"":2.5999999046325684,""y"":3.0432586669921875},{""x"":3.0999999046325684,""y"":3.265852451324463},{""x"":3.5999999046325684,""y"":2.9475724697113037},{""x"":4.099999904632568,""y"":3.1929898262023926},{""x"":4.599999904632568,""y"":2.7460060119628906},{""x"":5.099999904632568,""y"":1.6175861358642578},{""x"":5.599999904632568,""y"":0.3006608486175537},{""x"":6.099999904632568,""y"":0.3444803059101105},{""x"":6.599999904632568,""y"":0.015537971630692482},{""x"":7.099999904632568,""y"":0.5527358055114746}]}],""chartOptions"":{""xAxisName"":""Conc."",""yAxisName"":""Activity"",""title"":""Dose-Response curves""}}",text,,
|
|
32
|
+
,,,,,,,,,,,,,,,,,,,,,`);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function r(e,t,n,o,i,s,r){try{var a=e[s](r),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(o,i)}function a(e){return function(){var t=this,n=arguments;return new Promise(function(o,i){var s=e.apply(t,n);function a(e){r(s,o,i,a,l,"next",e)}function l(e){r(s,o,i,a,l,"throw",e)}a(void 0)})}}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){var o;o=n[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o})}return e}function c(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}i.columns.add(DG.Column.fromList(DG.TYPE.BYTE_ARRAY,"BinaryImage",Array.from(new Uint8Array(11))));let u=console.log.bind(console),y=console.info.bind(console),f=console.warn.bind(console),x=console.error.bind(console),p={},d="Auto Tests",h="Demo",g="Detectors",m="Core",b={};(e||(e={})).notNull=function(e,t){if(null==e)throw Error(`${null==t?"Value":t} not defined`)};class v{constructor(e,t,n){this.catchUnhandled=!0,this.report=!1,this.returnOnFail=!1,this.closeAll=!0,void 0!==e&&(this.catchUnhandled=e),void 0!==t&&(this.report=t),void 0!==n&&(this.returnOnFail=n)}}class C{constructor(e,t,n,o){this.category=e,this.name=t,null!=o||(o={}),null!=o.timeout||(o.timeout=3e4),this.options=o,this.test=()=>a(function*(){return new Promise((e,t)=>a(function*(){let o="";try{DG.Test.isInDebug;let e=yield n();try{var i;o=null!=(i=null==e?void 0:e.toString())?i:""}catch(e){o="Can't convert test's result to string",console.error(`Can't convert test's result to string in the ${this.category}:${this.name} test`)}}catch(e){t(e)}e(o)}).call(this))}).call(this)}}function w(e,t,n){let o=void 0===t||t;if(n=n?`${n}, `:"",e!==o)throw Error(`${n}Expected "${o}", got "${e}"`)}function k(e,t,n){var o,i,s;let r=null!=(o=null!=(i=null==(s=e.options)?void 0:s.node)?i:t.node)&&o;return n.nodeOnly?r:!n.excludeNodeTests||!r}function O(e,t){return a(function*(){let n=e.id;if(b[n])return;let o=t?t.tests:p;if("DevTools"===e.name||t&&"DevTools"===t._package.name){var s=!0,r=!1,l=void 0;try{for(var c,u,y,f,x,v,k,O,D=window.dartTests[Symbol.iterator]();!(s=(O=D.next()).done);s=!0){let e=O.value,t=e.name.split(/\s*\|\s*!/g),n=null!=(c=t.pop())?c:e.name,i=t.length?m+": "+t.join(": "):m,s=n.split(" | ");n=s[s.length-1],s.unshift(i),s.pop(),i=s.join(": "),void 0===o[i]&&(o[i]={tests:[],clear:!0}),o[i].tests.push(new C(i,n,e.test,{isAggregated:!1,timeout:null!=(u=null==(f=e.options)?void 0:f.timeout)?u:3e4,skipReason:null==(x=e.options)?void 0:x.skipReason,owner:null==(v=e.options)?void 0:v.owner,benchmark:null!=(y=null==(k=e.options)?void 0:k.benchmark)&&y}))}}catch(e){r=!0,l=e}finally{try{s||null==D.return||D.return()}finally{if(r)throw l}}}let T=[],L=[],S=[],P=yield grok.dapi.functions.filter(`package.id = "${n}"`).list(),N=new RegExp(/skip:\s*([^,\s]+)|wait:\s*(\d+)|cat:\s*([^,\s]+)|timeout:\s*(\d+)/g);var R=!0,E=!1,M=void 0;try{for(var I,F,$,G,U=P[Symbol.iterator]();!(R=(G=U.next()).done);R=!0){let t=G.value,n=t.options.test,s=t.options.demoPath;if(n&&Array.isArray(n)&&n.length)for(let e=0;e<n.length;e++){let i=n[e].matchAll(N),s={};Array.from(i).forEach(e=>{e[0].startsWith("skip")?s.skip=e[1]:e[0].startsWith("wait")?s.wait=parseInt(e[2]):e[0].startsWith("cat")?s.cat=e[3]:e[0].startsWith("timeout")&&(s.timeout=parseInt(e[4]))});let r=new C(null!=(I=s.cat)?I:d,1===n.length?t.name:`${t.name} ${e+1}`,()=>a(function*(){var o;let i=yield grok.functions.eval((o=n[e],o.replace(RegExp(t.name,"gi"),t.nqName)));if(s.wait&&(yield A(s.wait)),"boolean"==typeof i&&!i)throw`Failed: ${n[e]}, expected true, got ${i}`})(),{skipReason:s.skip,timeout:DG.Test.isInBenchmark?null!=(F=s.benchmarkTimeout)?F:108e5:null!=($=s.timeout)?$:3e4,node:t instanceof DG.DataQuery});if(s.cat){let e=s.cat;void 0===o[e]&&(o[e]={tests:[],clear:!0}),o[e].tests||(o[e].tests=[]),o[e].tests.push(r)}else T.push(r)}if(s){let e=t.options.demoWait?parseInt(t.options.demoWait):void 0,n=new C(h,t.friendlyName,()=>a(function*(){yield A(300),grok.shell.clearLastError(),yield t.apply(),yield A(e||2e3);let n=yield grok.shell.lastError;if(n)throw Error(n)})(),{skipReason:t.options.demoSkip});L.push(n)}if(t.hasTag("semTypeDetector")){let n=i;t.options.testData&&(n=yield grok.data.files.openTable(`System:AppData/${e.nqName}/${t.options.testData}`));let o=new C(g,t.friendlyName,()=>a(function*(){let o=[];console.log(`System:AppData/${e.nqName}/${t.options.testData}`);var i=!0,s=!1,r=void 0;try{for(var a,l=n.clone().columns[Symbol.iterator]();!(i=(a=l.next()).done);i=!0){let e=a.value,n=yield t.apply([e]);o.push(n||e.semType)}}catch(e){s=!0,r=e}finally{try{i||null==l.return||l.return()}finally{if(s)throw r}}let c=o.filter(e=>e);w(c.length,1),t.options.testDataColumnName&&w(c[0],t.options.testDataColumnName)})(),{skipReason:t.options.skipTest});S.push(o)}}}catch(e){E=!0,M=e}finally{try{R||null==U.return||U.return()}finally{if(E)throw M}}b[n]=!0,T.length>0&&(o[d]={tests:T,clear:!0}),L.length>0&&(o[h]={tests:L,clear:!0}),S.length>0&&(o[g]={tests:S,clear:!1})})()}function D(e){return a(function*(){return`${e.toString()}
|
|
33
|
+
${e.stack?yield DG.Logger.translateStackTrace(e.stack):""}`})()}function T(e,t,n,o,i,s){return a(function*(){var r,a,y,f,p,d,h,g,m,b,v,C,w,k;let O;n.length=0;let T=void 0!=t&&e.name.toLowerCase()!==t.toLowerCase(),A=(null==(a=e.options)?void 0:a.skipReason)||T,S=T?"skipped":null==(y=e.options)?void 0:y.skipReason;if(DG.Test.isInBenchmark&&!(null==(f=e.options)?void 0:f.benchmark))return void u(`Package testing: Skipped {{${e.category}}} {{${e.name}}} doesnt available in benchmark mode`);A&&!DG.Test.isInBenchmark&&u(`Package testing: Skipped {{${e.category}}} {{${e.name}}}`),A||u(`Package testing: Started {{${e.category}}} {{${e.name}}}`);let P=Date.now(),N=new Date(P).toISOString();try{A?O={name:e.name,owner:null!=(h=null==(g=e.options)?void 0:g.owner)?h:"",category:e.category,logs:"",date:N,success:!0,result:S,ms:0,skipped:!0,package:null!=i?i:"",flaking:DG.Test.isReproducing}:(DG.Test.isProfiling&&console.profile(`${e.category}: ${e.name}`),O={name:e.name,owner:null!=(m=null==(v=e.options)?void 0:v.owner)?m:"",category:e.category,logs:"",date:N,success:!0,result:null!=(b=(yield L(e.test,null!=o?o:3e4)).toString())?b:"OK",ms:0,skipped:!1,package:null!=i?i:"",flaking:DG.Test.isReproducing},DG.Test.isProfiling&&(console.profileEnd(`${e.category}: ${e.name}`),grok.shell.info(`Profiling of ${e.category}: ${e.name} finished
|
|
34
|
+
Please ensure that you have opened DevTools (F12) / Performance panel before test starts.`)))}catch(t){x(t),O={name:e.name,owner:null!=(C=null==(w=e.options)?void 0:w.owner)?C:"",category:e.category,logs:"",date:N,success:!1,result:yield D(t),ms:0,skipped:!1,package:null!=i?i:"",flaking:!1}}if((null==(p=e.options)?void 0:p.isAggregated)&&O.result.constructor===DG.DataFrame){let e=O.result.col("success");if(e&&(O.success=e.stats.sum===e.length),!s){let e=O.result;e.columns.remove("stack"),e.rows.removeWhere(e=>e.get("success")),O.result=e}O.result=O.result.toCsv()}if(O.logs=n.join("\n"),O.ms=Date.now()-P,A||u(`Package testing: Finished {{${e.category}}} {{${e.name}}} with {{${O.success?"success":"error"}}} for ${O.ms} ms`),O.success||u(`Package testing: Result for {{${e.category}}} {{${e.name}}}: ${O.result}`),O.category=e.category,O.name=e.name,O.owner=null!=(r=null==(d=e.options)?void 0:d.owner)?r:"",!T){let t={success:O.success,result:O.result,ms:O.ms,date:O.date,skipped:O.skipped,category:e.category,name:e.name,logs:O.logs,owner:O.owner,flaking:DG.Test.isReproducing&&O.success,package:O.package};if(O.result.constructor==Object){let e=Object.keys(O.result).reduce((e,t)=>c(l({},e),{["result."+t]:O.result[t]}),{});t=l({},t,e)}t.result instanceof DG.DataFrame&&(t.result=JSON.stringify(null==(k=t.result)?void 0:k.toJson())||""),yield grok.shell.reportTest("package",t)}return O})()}function A(e){return a(function*(){yield new Promise(t=>setTimeout(t,e))})()}function L(e,t,n){let o=void 0===n?"EXECUTION TIMEOUT":n;return a(function*(){let n=null,i=new Promise((e,i)=>{n=setTimeout(()=>{i(o)},t)});try{return yield Promise.race([e(),i])}finally{n&&clearTimeout(n)}})()}function S(e,t,n,o,i,s,r){try{var a=e[s](r),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(o,i)}function P(e){return function(){var t=this,n=arguments;return new Promise(function(o,i){var s=e.apply(t,n);function r(e){S(s,o,i,r,a,"next",e)}function a(e){S(s,o,i,r,a,"throw",e)}r(void 0)})}}DG.DataFrame.fromColumns([DG.Column.fromStrings("col",["val1","val2","val3"])]);let N=new t.Package;function R(e,n,o){return P(function*(){var i;let r=yield(i={category:e,test:n,testContext:o},a(function*(){let e,t=(null==i?void 0:i.nodeOptions)?i.nodeOptions.package:grok.functions.getCurrentCall().func.package;if(!t)throw Error("Can't run tests outside of the package");let n=null==(S=t.packageOwner)?void 0:S.match(/<([^>]*)>/),o=n?n[1]:"";void 0!=t&&(yield O(t));let r=[];console.log("Running tests..."),console.log(i),null!=i||(i={}),null!=(P=i).testContext||(P.testContext=new v),grok.shell.clearLastError();let d=(e=[],console.log=(...t)=>{e.push(...t),u(...t)},console.info=(...t)=>{e.push(...t),y(...t)},console.warn=(...t)=>{e.push(...t),f(...t)},console.error=(...t)=>{e.push(...t),x(...t)},e);yield(b=p,C=i,a(function*(){try{let y=(null==C?void 0:C.skipToCategory)!=void 0,f=!1;var e=!0,n=!1,i=void 0;try{for(var p,h,g,m,v,w,O=Object.entries(b)[Symbol.iterator]();!(e=(w=O.next()).done);e=!0){let e,n=(p=w.value,function(e){if(Array.isArray(e))return e}(p)||function(e){var t,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],s=!0,r=!1;try{for(o=o.call(e);!(s=(t=o.next()).done)&&(i.push(t.value),2!==i.length);s=!0);}catch(e){r=!0,n=e}finally{try{s||null==o.return||o.return()}finally{if(r)throw n}}return i}}(p)||function(e){if(e){if("string"==typeof e)return s(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,2)}}(p)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=n[0],x=n[1];if((null==(m=C.exclude)?void 0:m.some(e=>i.startsWith(e)))||(null==C?void 0:C.category)!=null&&!i.toLowerCase().startsWith(null==C?void 0:C.category.toLowerCase().trim()))continue;if(y)if(f)y=!1;else{if((null==C?void 0:C.skipToCategory)==null||i.toLowerCase().trim()!==(null==C?void 0:C.skipToCategory.toLowerCase().trim()))continue;f=!0}let b=(null!=(h=x.tests)?h:[]).filter(e=>k(e,x,C));if((C.nodeOnly||C.excludeNodeTests)&&0===b.length)continue;let O=void 0==x.tests?void 0:b.every(e=>{var t;return(null==(t=e.options)?void 0:t.skipReason)||(null==C?void 0:C.test)!=null&&C.test.toLowerCase()!==e.name.toLowerCase()});if(!O){let e=b.filter(e=>{var t;return(null==(t=e.options)?void 0:t.skipReason)||(null==C?void 0:C.test)!=null&&C.test.toLowerCase()!==e.name.toLowerCase()}).length;u(`Package testing: Started {{${i}}}${e>0?` skipped {{${e}}}`:""}`),x.beforeStatus=yield E(x.before,i)}C.stressTest&&(b=b.filter(e=>{var t;return null==(t=e.options)?void 0:t.stressTest}),b=function(e){let t=e.slice();return t.sort(()=>Math.random()-.5),t}(b)),(null!=(g=null==(v=C.tags)?void 0:v.length)?g:0)>0&&(b=b.filter(e=>{var t,n;return null==(n=e.options)||null==(t=n.tags)?void 0:t.some(e=>{var t;return(null!=(t=null==C?void 0:C.tags)?t:[]).includes(e)})})),x.beforeStatus?(e=Array.from(b.map(e=>({date:new Date().toISOString(),category:i,name:e.name,success:!1,result:"before() failed",ms:0,skipped:!1,logs:"",owner:o,package:t.name,widgetsDifference:0,flaking:DG.Test.isReproducing})))).forEach(e=>a(function*(){return yield grok.shell.reportTest("package",e)})()):e=yield function(e,n,i){return a(function*(){var s,r,a,u,y,f,x,p,h,g,m,b,v,C,w,O,D,A,L,S,P;let N=(null!=(s=e.tests)?s:[]).filter(t=>k(t,e,n)),R=[],E=M();if(e.clear){let s=i&&void 0!=n.skipToTest;for(let i=0;i<N.length;i++){N[i].options&&(null==(p=N[i].options)?void 0:p.benchmark)===void 0&&(N[i].options||(N[i].options={}),N[i].options.benchmark=null!=(h=e.benchmarks)&&h);let C=N[i];if(n.test&&n.test.toLowerCase()!==C.name.toLowerCase())continue;if(s)if((null==n?void 0:n.skipToTest)==void 0||C.name.toLowerCase().trim()!==(null==n?void 0:n.skipToTest.toLowerCase().trim()))continue;else s=!1;(null==C?void 0:C.options)&&(C.options.owner=null!=(g=null!=(m=null!=(b=null==(v=N[i].options)?void 0:v.owner)?b:null==e?void 0:e.owner)?m:o)?g:"");let w=yield T(C,null==n?void 0:n.test,d,DG.Test.isInBenchmark?null!=(r=null==(u=N[i].options)?void 0:u.benchmarkTimeout)?r:108e5:null!=(a=null==(y=N[i].options)?void 0:y.timeout)?a:3e4,t.name,n.verbose);if((null==(f=C.options)?void 0:f.skipReason)||!window.gc||(yield window.gc()),w&&(R.push(c(l({},w),{widgetsDifference:M()-E})),n.returnOnFail&&n.skipToTest!==C.name&&!w.success&&!w.skipped))break;n.nodeOptions||(null==(x=n.testContext)?void 0:x.closeAll)===!1||(grok.shell.closeAll(),DG.Balloon.closeAll())}}else{let s=i&&void 0!=n.skipToTest;for(let i=0;i<N.length;i++){let r=N[i];if(n.test&&n.test.toLowerCase()!==r.name.toLowerCase())continue;if(s){(null==n?void 0:n.skipToTest)!=void 0&&r.name.toLowerCase().trim()===(null==n?void 0:n.skipToTest.toLowerCase().trim())&&(s=!1);continue}(null==r?void 0:r.options)&&(r.options.owner=null!=(A=null!=(L=null!=(S=null==(P=N[i].options)?void 0:P.owner)?S:null==e?void 0:e.owner)?L:o)?A:"");let a=yield T(r,null==n?void 0:n.test,d,DG.Test.isInBenchmark?null!=(C=null==(w=N[i].options)?void 0:w.benchmarkTimeout)?C:108e5:null==(O=N[i].options)?void 0:O.timeout,t.name,n.verbose);if((null==(D=r.options)?void 0:D.skipReason)||!window.gc||(yield window.gc()),a&&(R.push(c(l({},a),{widgetsDifference:M()-E})),n.returnOnFail&&n.skipToTest!==r.name&&!a.success&&!a.skipped))break}}return R})()}(x,C,y);let D=e.filter(e=>"skipped"!=e.result);if(O||(x.afterStatus=yield E(x.after,i)),x.afterStatus&&(u(`Package testing: Category after() {{${i}}} failed`),u(`Package testing: Result for {{${i}}} after: ${x.afterStatus}`),D.push({date:new Date().toISOString(),category:i,name:"after",success:!1,result:x.afterStatus,ms:0,skipped:!1,logs:"",owner:o,package:t.name,widgetsDifference:0,flaking:DG.Test.isReproducing})),x.beforeStatus&&(u(`Package testing: Category before() {{${i}}} failed`),u(`Package testing: Result for {{${i}}} before: ${x.beforeStatus}`),D.push({date:new Date().toISOString(),category:i,name:"before",success:!1,result:x.beforeStatus,ms:0,skipped:!1,logs:"",owner:o,package:t.name,widgetsDifference:0,flaking:DG.Test.isReproducing})),r.push(...D),C.returnOnFail&&D.some(e=>!e.success&&!e.skipped&&e.name!==C.skipToTest))break}}catch(e){n=!0,i=e}finally{try{e||null==O.return||O.return()}finally{if(n)throw i}}}finally{console.log=u,console.info=y,console.warn=f,console.error=x}if(C.testContext.catchUnhandled&&!DG.Test.isInBenchmark){yield A(1e3);let e=yield grok.shell.lastError;if(void 0!=e){let n={logs:"",date:new Date().toISOString(),category:"Unhandled exceptions",name:"Exception",result:null!=e?e:"",success:!e,ms:0,skipped:!1,owner:null!=o?o:"",package:t.name,widgetsDifference:0};u(`Package testing: Unhandled Exception: ${e}`),r.push(c(l({},n),{flaking:DG.Test.isReproducing&&!e})),n.package=t.name,yield grok.shell.reportTest("package",n)}}})());var h=!0,g=!1,m=void 0;try{for(var b,C,w,S,P,N,R=r[Symbol.iterator]();!(h=(N=R.next()).done);h=!0){let e=N.value;e.result=e.result.toString().replace(/"/g,"'"),void 0!=e.logs&&(e.logs=e.logs.toString().replace(/"/g,"'"))}}catch(e){g=!0,m=e}finally{try{h||null==R.return||R.return()}finally{if(g)throw m}}return r;function E(e,t){return a(function*(){let n;try{void 0!==e&&(yield L(()=>a(function*(){yield e()})(),1e5,`before ${t}: timeout error`))}catch(e){n=yield D(e)}return n})()}function M(){if("u">typeof process)return 0;let e=-1;try{e=DG.Widget.getAll().length}catch(e){var t;console.warn(null!=(t=e.message)?t:e)}return e}})());return t.DataFrame.fromObjects(r)})()}function E(){return P(function*(){yield O(N,N.getModule("package-test.js"))})()}})(),hittriage_test=o})();
|
|
2
35
|
//# sourceMappingURL=package-test.js.map
|