node-red-contrib-prib-functions 0.23.3 → 0.26.0

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.
Files changed (41) hide show
  1. package/.github/copilot-instructions.md +36 -0
  2. package/README.md +15 -0
  3. package/columnar/columnar.html +258 -0
  4. package/columnar/columnar.js +1055 -0
  5. package/columnar/icons/columnar.svg +38 -0
  6. package/fileSystem/filesystem.html +299 -0
  7. package/fileSystem/filesystem.js +170 -0
  8. package/gitlab/gitlab.html +191 -0
  9. package/gitlab/gitlab.js +248 -0
  10. package/gitlab/icons/gitlab.svg +17 -0
  11. package/lib/typedInput.js +18 -2
  12. package/logisticRegression/icons/logisticregression.svg +22 -0
  13. package/logisticRegression/logisticRegression.html +136 -0
  14. package/logisticRegression/logisticRegression.js +83 -0
  15. package/package.json +19 -8
  16. package/test/columnar.js +509 -0
  17. package/test/data/.config.nodes.json +114 -70
  18. package/test/data/.config.nodes.json.backup +104 -71
  19. package/test/data/.config.runtime.json +2 -1
  20. package/test/data/.config.runtime.json.backup +2 -1
  21. package/test/data/.config.users.json +3 -2
  22. package/test/data/.config.users.json.backup +3 -2
  23. package/test/data/.flow.json.backup +561 -5
  24. package/test/data/flow.json +571 -2
  25. package/test/data/package-lock.json +1 -1
  26. package/test/data/shares/.config.nodes.json +74 -52
  27. package/test/data/shares/.config.nodes.json.backup +589 -0
  28. package/test/data/shares/.config.runtime.json +2 -1
  29. package/test/data/shares/.config.runtime.json.backup +2 -1
  30. package/test/data/shares/.config.users.json +3 -2
  31. package/test/data/shares/.config.users.json.backup +5 -1
  32. package/test/dataAnalysisExtensions.js +93 -93
  33. package/test/logisticRegression.js +379 -0
  34. package/test/transform.js +11 -11
  35. package/test/transformConfluence.js +4 -2
  36. package/test/transformNumPy.js +3 -1
  37. package/test/transformXLSX.js +4 -2
  38. package/test/transformXML.js +4 -2
  39. package/test-runner.js +400 -0
  40. package/test.parq +0 -0
  41. package/test_select.js +37 -0
@@ -20,6 +20,14 @@
20
20
  "disabled": false,
21
21
  "info": ""
22
22
  },
23
+ {
24
+ "id": "43a74ee3902ea5d5",
25
+ "type": "tab",
26
+ "label": "filesystem",
27
+ "disabled": false,
28
+ "info": "",
29
+ "env": []
30
+ },
23
31
  {
24
32
  "id": "955f4808.fd1898",
25
33
  "type": "tab",
@@ -140,6 +148,22 @@
140
148
  "disabled": false,
141
149
  "info": ""
142
150
  },
151
+ {
152
+ "id": "d98540e8ed31a4a1",
153
+ "type": "tab",
154
+ "label": "logistic Regression",
155
+ "disabled": false,
156
+ "info": "",
157
+ "env": []
158
+ },
159
+ {
160
+ "id": "8aa8799ad5afca2b",
161
+ "type": "tab",
162
+ "label": "Columnar store",
163
+ "disabled": false,
164
+ "info": "",
165
+ "env": []
166
+ },
143
167
  {
144
168
  "id": "680198a3be420949",
145
169
  "type": "group",
@@ -1399,6 +1423,19 @@
1399
1423
  []
1400
1424
  ]
1401
1425
  },
1426
+ {
1427
+ "id": "17e0d9b46ba19357",
1428
+ "type": "filesystem",
1429
+ "z": "43a74ee3902ea5d5",
1430
+ "name": "",
1431
+ "action": "open",
1432
+ "x": 120,
1433
+ "y": 240,
1434
+ "wires": [
1435
+ [],
1436
+ []
1437
+ ]
1438
+ },
1402
1439
  {
1403
1440
  "id": "ffd72c7.5d152d",
1404
1441
  "type": "Host Available",
@@ -1999,9 +2036,9 @@
1999
2036
  "infiniteIsNull": false,
2000
2037
  "payload": "",
2001
2038
  "payloadType": "date",
2002
- "result": "$boolean(msg._matrix.toArray()=[[1,0],[0,1]])",
2039
+ "result": "$boolean(_matrix.toArray()=[[1,0],[0,1]])",
2003
2040
  "resultType": "jsonata",
2004
- "resultProperty": "msg.payload",
2041
+ "resultProperty": "msg",
2005
2042
  "topic": "",
2006
2043
  "x": 170,
2007
2044
  "y": 480,
@@ -2069,6 +2106,24 @@
2069
2106
  []
2070
2107
  ]
2071
2108
  },
2109
+ {
2110
+ "id": "ae223fa13da104ff",
2111
+ "type": "function",
2112
+ "z": "ae9957f07bd56e1b",
2113
+ "name": "function 1",
2114
+ "func": "\nreturn msg;",
2115
+ "outputs": 1,
2116
+ "timeout": 0,
2117
+ "noerr": 0,
2118
+ "initialize": "",
2119
+ "finalize": "",
2120
+ "libs": [],
2121
+ "x": 480,
2122
+ "y": 580,
2123
+ "wires": [
2124
+ []
2125
+ ]
2126
+ },
2072
2127
  {
2073
2128
  "id": "c4e5d98c.1db6f8",
2074
2129
  "type": "Monitor Flow",
@@ -7504,5 +7559,519 @@
7504
7559
  "0e4f57304e89edb8"
7505
7560
  ]
7506
7561
  ]
7562
+ },
7563
+ {
7564
+ "id": "835d891c3b7b9451",
7565
+ "type": "debug",
7566
+ "z": "d98540e8ed31a4a1",
7567
+ "name": "debug 3",
7568
+ "active": true,
7569
+ "tosidebar": true,
7570
+ "console": false,
7571
+ "tostatus": false,
7572
+ "complete": "true",
7573
+ "targetType": "full",
7574
+ "statusVal": "",
7575
+ "statusType": "auto",
7576
+ "x": 740,
7577
+ "y": 420,
7578
+ "wires": []
7579
+ },
7580
+ {
7581
+ "id": "b850a29956571494",
7582
+ "type": "logisticRegression",
7583
+ "z": "d98540e8ed31a4a1",
7584
+ "name": "",
7585
+ "modelName": "test",
7586
+ "action": "fit",
7587
+ "learningRate": 0.1,
7588
+ "iterations": 2000,
7589
+ "fitIntercept": true,
7590
+ "l2": 0,
7591
+ "tolerance": 1e-7,
7592
+ "verbose": false,
7593
+ "threshold": 0.5,
7594
+ "x": 420,
7595
+ "y": 180,
7596
+ "wires": [
7597
+ [
7598
+ "835d891c3b7b9451",
7599
+ "1c969461651d15fa"
7600
+ ]
7601
+ ]
7602
+ },
7603
+ {
7604
+ "id": "1c969461651d15fa",
7605
+ "type": "test",
7606
+ "z": "d98540e8ed31a4a1",
7607
+ "name": "",
7608
+ "errorFactor": 0,
7609
+ "escapeString": false,
7610
+ "infiniteIsNull": false,
7611
+ "payload": "{\"X\":[[0,0],[0,1],[1,0],[1,1]],\"y\":[0,1,1,1]}",
7612
+ "payloadType": "json",
7613
+ "result": "Model fitted and stored as: test",
7614
+ "resultType": "str",
7615
+ "resultProperty": "msg.result",
7616
+ "topic": "",
7617
+ "x": 180,
7618
+ "y": 80,
7619
+ "wires": [
7620
+ [
7621
+ "b850a29956571494"
7622
+ ],
7623
+ [],
7624
+ [
7625
+ "f903d1b11568c38c"
7626
+ ]
7627
+ ]
7628
+ },
7629
+ {
7630
+ "id": "a4ff87db6b6a4889",
7631
+ "type": "logisticRegression",
7632
+ "z": "d98540e8ed31a4a1",
7633
+ "name": "",
7634
+ "modelName": "test",
7635
+ "action": "predict",
7636
+ "learningRate": 0.1,
7637
+ "iterations": 2000,
7638
+ "fitIntercept": true,
7639
+ "l2": 0,
7640
+ "tolerance": 1e-7,
7641
+ "verbose": false,
7642
+ "threshold": 0.5,
7643
+ "x": 460,
7644
+ "y": 360,
7645
+ "wires": [
7646
+ [
7647
+ "835d891c3b7b9451",
7648
+ "f903d1b11568c38c",
7649
+ "21167b6b6f5c0cbc"
7650
+ ]
7651
+ ]
7652
+ },
7653
+ {
7654
+ "id": "f903d1b11568c38c",
7655
+ "type": "test",
7656
+ "z": "d98540e8ed31a4a1",
7657
+ "name": "",
7658
+ "errorFactor": 0,
7659
+ "escapeString": false,
7660
+ "infiniteIsNull": false,
7661
+ "payload": "[[0, 0], [1, 1], [0.5, 0.5]]",
7662
+ "payloadType": "json",
7663
+ "result": "[0,1,1]",
7664
+ "resultType": "json",
7665
+ "resultProperty": "msg.result",
7666
+ "topic": "",
7667
+ "x": 140,
7668
+ "y": 280,
7669
+ "wires": [
7670
+ [
7671
+ "a4ff87db6b6a4889"
7672
+ ],
7673
+ [],
7674
+ []
7675
+ ]
7676
+ },
7677
+ {
7678
+ "id": "21167b6b6f5c0cbc",
7679
+ "type": "logisticRegression",
7680
+ "z": "d98540e8ed31a4a1",
7681
+ "name": "",
7682
+ "modelName": "test",
7683
+ "action": "predictProba",
7684
+ "learningRate": 0.1,
7685
+ "iterations": 2000,
7686
+ "fitIntercept": true,
7687
+ "l2": 0,
7688
+ "tolerance": 1e-7,
7689
+ "verbose": false,
7690
+ "threshold": 0.5,
7691
+ "x": 440,
7692
+ "y": 480,
7693
+ "wires": [
7694
+ [
7695
+ "835d891c3b7b9451"
7696
+ ]
7697
+ ]
7698
+ },
7699
+ {
7700
+ "id": "6dcc4342cb95db99",
7701
+ "type": "columnar",
7702
+ "z": "8aa8799ad5afca2b",
7703
+ "name": "",
7704
+ "action": "appendFile",
7705
+ "filePath": "C:\\Users\\peter\\data\\columnarStore\\test",
7706
+ "x": 350,
7707
+ "y": 180,
7708
+ "wires": [
7709
+ [
7710
+ "f7056a42ba573367"
7711
+ ]
7712
+ ]
7713
+ },
7714
+ {
7715
+ "id": "f7056a42ba573367",
7716
+ "type": "debug",
7717
+ "z": "8aa8799ad5afca2b",
7718
+ "name": "debug 4",
7719
+ "active": true,
7720
+ "tosidebar": true,
7721
+ "console": false,
7722
+ "tostatus": false,
7723
+ "complete": "true",
7724
+ "targetType": "full",
7725
+ "statusVal": "",
7726
+ "statusType": "auto",
7727
+ "x": 700,
7728
+ "y": 360,
7729
+ "wires": []
7730
+ },
7731
+ {
7732
+ "id": "69adf3d24df340b6",
7733
+ "type": "inject",
7734
+ "z": "8aa8799ad5afca2b",
7735
+ "name": "",
7736
+ "props": [
7737
+ {
7738
+ "p": "payload"
7739
+ },
7740
+ {
7741
+ "p": "topic",
7742
+ "vt": "str"
7743
+ }
7744
+ ],
7745
+ "repeat": "",
7746
+ "crontab": "",
7747
+ "once": false,
7748
+ "onceDelay": 0.1,
7749
+ "topic": "",
7750
+ "payload": "{\"records\":[{\"name\":\"John\",\"age\":30,\"city\":\"NYC\"},{\"name\":\"Jane\",\"age\":25,\"city\":\"LA\"}]}",
7751
+ "payloadType": "json",
7752
+ "x": 90,
7753
+ "y": 180,
7754
+ "wires": [
7755
+ [
7756
+ "6dcc4342cb95db99"
7757
+ ]
7758
+ ]
7759
+ },
7760
+ {
7761
+ "id": "c4db16448a22def4",
7762
+ "type": "inject",
7763
+ "z": "8aa8799ad5afca2b",
7764
+ "name": "",
7765
+ "props": [
7766
+ {
7767
+ "p": "payload"
7768
+ },
7769
+ {
7770
+ "p": "topic",
7771
+ "vt": "str"
7772
+ }
7773
+ ],
7774
+ "repeat": "",
7775
+ "crontab": "",
7776
+ "once": false,
7777
+ "onceDelay": 0.1,
7778
+ "topic": "",
7779
+ "payload": "",
7780
+ "payloadType": "date",
7781
+ "x": 100,
7782
+ "y": 280,
7783
+ "wires": [
7784
+ [
7785
+ "cb96c887a71c3cba"
7786
+ ]
7787
+ ]
7788
+ },
7789
+ {
7790
+ "id": "cb96c887a71c3cba",
7791
+ "type": "columnar",
7792
+ "z": "8aa8799ad5afca2b",
7793
+ "name": "",
7794
+ "action": "readFile",
7795
+ "filePath": "C:\\Users\\peter\\data\\columnarStore\\test",
7796
+ "x": 340,
7797
+ "y": 280,
7798
+ "wires": [
7799
+ [
7800
+ "f7056a42ba573367"
7801
+ ]
7802
+ ]
7803
+ },
7804
+ {
7805
+ "id": "a7c85ce48c4baa7b",
7806
+ "type": "columnar",
7807
+ "z": "8aa8799ad5afca2b",
7808
+ "name": "",
7809
+ "action": "sqlQuery",
7810
+ "filePath": "C:\\Users\\peter\\data\\columnarStore\\test",
7811
+ "sqlQuery": "select * from ? limit 4",
7812
+ "outputProperty": "",
7813
+ "x": 340,
7814
+ "y": 360,
7815
+ "wires": [
7816
+ [
7817
+ "f7056a42ba573367"
7818
+ ]
7819
+ ]
7820
+ },
7821
+ {
7822
+ "id": "17aa1ae56c2be540",
7823
+ "type": "inject",
7824
+ "z": "8aa8799ad5afca2b",
7825
+ "name": "",
7826
+ "props": [
7827
+ {
7828
+ "p": "payload"
7829
+ },
7830
+ {
7831
+ "p": "topic",
7832
+ "vt": "str"
7833
+ }
7834
+ ],
7835
+ "repeat": "",
7836
+ "crontab": "",
7837
+ "once": false,
7838
+ "onceDelay": 0.1,
7839
+ "topic": "",
7840
+ "payload": "{\"sql\":\"SELECT COUNT(*) AS cnt FROM ? a LIMIT 10\"}",
7841
+ "payloadType": "json",
7842
+ "x": 90,
7843
+ "y": 360,
7844
+ "wires": [
7845
+ [
7846
+ "a7c85ce48c4baa7b"
7847
+ ]
7848
+ ]
7849
+ },
7850
+ {
7851
+ "id": "50413b0ca082d563",
7852
+ "type": "columnar",
7853
+ "z": "8aa8799ad5afca2b",
7854
+ "name": "",
7855
+ "action": "sqlQuery",
7856
+ "filePath": "C:\\Users\\peter\\data\\columnarStore\\test",
7857
+ "sqlQuery": "SELECT \"a1\" as test,:msg.payload as name,COUNT(*) AS cnt1 FROM ? a where name= :msg.payload",
7858
+ "outputProperty": "payload",
7859
+ "parameterMappings": [
7860
+ {
7861
+ "paramName": "name",
7862
+ "msgPath": "payload"
7863
+ }
7864
+ ],
7865
+ "x": 370,
7866
+ "y": 500,
7867
+ "wires": [
7868
+ [
7869
+ "f7056a42ba573367"
7870
+ ]
7871
+ ]
7872
+ },
7873
+ {
7874
+ "id": "34909ff6e5e0f6a7",
7875
+ "type": "inject",
7876
+ "z": "8aa8799ad5afca2b",
7877
+ "name": "",
7878
+ "props": [
7879
+ {
7880
+ "p": "payload"
7881
+ },
7882
+ {
7883
+ "p": "topic",
7884
+ "vt": "str"
7885
+ }
7886
+ ],
7887
+ "repeat": "",
7888
+ "crontab": "",
7889
+ "once": false,
7890
+ "onceDelay": 0.1,
7891
+ "topic": "",
7892
+ "payload": "John",
7893
+ "payloadType": "str",
7894
+ "x": 90,
7895
+ "y": 520,
7896
+ "wires": [
7897
+ [
7898
+ "50413b0ca082d563",
7899
+ "a1caf329e4e87dbc"
7900
+ ]
7901
+ ]
7902
+ },
7903
+ {
7904
+ "id": "a1caf329e4e87dbc",
7905
+ "type": "columnar",
7906
+ "z": "8aa8799ad5afca2b",
7907
+ "name": "",
7908
+ "action": "sqlQuery",
7909
+ "filePath": "C:\\Users\\peter\\data\\columnarStore\\test",
7910
+ "sqlQuery": "SELECT :msg.payload as tes from ? limit 5",
7911
+ "outputProperty": "payload",
7912
+ "parameterMappings": [
7913
+ {
7914
+ "paramName": "name",
7915
+ "msgPath": "payload"
7916
+ }
7917
+ ],
7918
+ "x": 370,
7919
+ "y": 580,
7920
+ "wires": [
7921
+ [
7922
+ "f7056a42ba573367"
7923
+ ]
7924
+ ]
7925
+ },
7926
+ {
7927
+ "id": "ce0e3fb3e004b4af",
7928
+ "type": "columnar",
7929
+ "z": "8aa8799ad5afca2b",
7930
+ "name": "",
7931
+ "action": "sqlQuery",
7932
+ "filePath": "C:\\Users\\peter\\data\\columnarStore\\test",
7933
+ "sqlQuery": "SELECT a.name,COUNT(*) AS cnt FROM ? a group by name",
7934
+ "outputProperty": "payload",
7935
+ "parameterMappings": [
7936
+ {
7937
+ "paramName": "name",
7938
+ "msgPath": "payload"
7939
+ }
7940
+ ],
7941
+ "x": 420,
7942
+ "y": 740,
7943
+ "wires": [
7944
+ [
7945
+ "f7056a42ba573367"
7946
+ ]
7947
+ ]
7948
+ },
7949
+ {
7950
+ "id": "343f59f36e7293df",
7951
+ "type": "columnar",
7952
+ "z": "8aa8799ad5afca2b",
7953
+ "name": "",
7954
+ "action": "sqlQuery",
7955
+ "filePath": "C:\\Users\\peter\\data\\columnarStore\\test",
7956
+ "sqlQuery": "select a.name from ? a where name=\"John\" limit 4",
7957
+ "outputProperty": "",
7958
+ "x": 420,
7959
+ "y": 660,
7960
+ "wires": [
7961
+ [
7962
+ "f7056a42ba573367"
7963
+ ]
7964
+ ]
7965
+ },
7966
+ {
7967
+ "id": "babd195c3d0980dd",
7968
+ "type": "inject",
7969
+ "z": "8aa8799ad5afca2b",
7970
+ "name": "",
7971
+ "props": [
7972
+ {
7973
+ "p": "payload"
7974
+ },
7975
+ {
7976
+ "p": "topic",
7977
+ "vt": "str"
7978
+ }
7979
+ ],
7980
+ "repeat": "",
7981
+ "crontab": "",
7982
+ "once": false,
7983
+ "onceDelay": 0.1,
7984
+ "topic": "",
7985
+ "payload": "",
7986
+ "payloadType": "date",
7987
+ "x": 120,
7988
+ "y": 660,
7989
+ "wires": [
7990
+ [
7991
+ "343f59f36e7293df",
7992
+ "ce0e3fb3e004b4af"
7993
+ ]
7994
+ ]
7995
+ },
7996
+ {
7997
+ "id": "0960f3c3ca9ba2dc",
7998
+ "type": "inject",
7999
+ "z": "8aa8799ad5afca2b",
8000
+ "name": "",
8001
+ "props": [
8002
+ {
8003
+ "p": "payload"
8004
+ },
8005
+ {
8006
+ "p": "topic",
8007
+ "vt": "str"
8008
+ }
8009
+ ],
8010
+ "repeat": "",
8011
+ "crontab": "",
8012
+ "once": false,
8013
+ "onceDelay": 0.1,
8014
+ "topic": "",
8015
+ "payload": "John",
8016
+ "payloadType": "str",
8017
+ "x": 90,
8018
+ "y": 480,
8019
+ "wires": [
8020
+ [
8021
+ "50413b0ca082d563"
8022
+ ]
8023
+ ]
8024
+ },
8025
+ {
8026
+ "id": "a61df296c3a578e2",
8027
+ "type": "columnar",
8028
+ "z": "8aa8799ad5afca2b",
8029
+ "name": "",
8030
+ "action": "sqlQuery",
8031
+ "filePath": "C:\\Users\\peter\\data\\columnarStore\\test",
8032
+ "sqlQuery": "SELECT \"a1\" as test,:msg.payload as name FROM ? a where name= :msg.payload",
8033
+ "outputProperty": "payload",
8034
+ "parameterMappings": [
8035
+ {
8036
+ "paramName": "name",
8037
+ "msgPath": "payload"
8038
+ }
8039
+ ],
8040
+ "x": 370,
8041
+ "y": 440,
8042
+ "wires": [
8043
+ [
8044
+ "f7056a42ba573367"
8045
+ ]
8046
+ ]
8047
+ },
8048
+ {
8049
+ "id": "e88b60b96a6ce42a",
8050
+ "type": "inject",
8051
+ "z": "8aa8799ad5afca2b",
8052
+ "name": "",
8053
+ "props": [
8054
+ {
8055
+ "p": "payload"
8056
+ },
8057
+ {
8058
+ "p": "topic",
8059
+ "vt": "str"
8060
+ }
8061
+ ],
8062
+ "repeat": "",
8063
+ "crontab": "",
8064
+ "once": false,
8065
+ "onceDelay": 0.1,
8066
+ "topic": "",
8067
+ "payload": "John",
8068
+ "payloadType": "str",
8069
+ "x": 90,
8070
+ "y": 420,
8071
+ "wires": [
8072
+ [
8073
+ "a61df296c3a578e2"
8074
+ ]
8075
+ ]
7507
8076
  }
7508
8077
  ]
@@ -14,7 +14,7 @@
14
14
  }
15
15
  },
16
16
  "../..": {
17
- "version": "0.23.2",
17
+ "version": "0.23.3",
18
18
  "license": "GPL-3.0",
19
19
  "dependencies": {
20
20
  "avsc": ">=5.7.7",