@valjoux/strategies
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -8,2 +8,4 @@ 'use strict'; | ||
var fluoVector = require('@palett/fluo-vector'); | ||
var says = require('@palett/says'); | ||
var enumChars = require('@spare/enum-chars'); | ||
var eta = require('@valjoux/eta'); | ||
@@ -33,7 +35,8 @@ var timestamp = require('@valjoux/timestamp'); | ||
const eta$1 = new eta.Eta(), | ||
fname = Object.keys(methods), | ||
functionNames = Object.keys(methods), | ||
prettyNames = functionNames.map(x => says.ros(x)).join(enumChars.CO), | ||
functions = Object.values(methods), | ||
ents = Object.entries(candidates), | ||
h = ents.length, | ||
w = fname.length, | ||
entries = Object.entries(candidates), | ||
h = entries.length, | ||
w = functionNames.length, | ||
tmx = matrixInit.iso(h, w, 0), | ||
@@ -44,3 +47,3 @@ vmx = matrixInit.iso(h, w, undefined); | ||
for (let i = 0, cname, params; i < h; i++) { | ||
[cname, params] = ents[i], progressLogger(i, cname, fname, repeat); | ||
[cname, params] = entries[i], progressLogger(i, cname, prettyNames, repeat); | ||
eta$1.tick(); | ||
@@ -54,3 +57,3 @@ | ||
const crostab$1 = new crostab.CrosTab(Object.keys(candidates), fname, [[]]); | ||
const crostab$1 = new crostab.CrosTab(Object.keys(candidates), functionNames, [[]]); | ||
let [lapse, result] = [crostab$1.copy({ | ||
@@ -77,6 +80,6 @@ rows: tmx, | ||
const progressLogger = (index, cname, fname, repeat) => { | ||
const progressLogger = (index, cname, names, repeat) => { | ||
var _ref; | ||
_ref = `[${timestamp.now()}] [${index}] (${cname}) tested by [${fname}], repeated * ${repeat}.`, console.log(_ref); | ||
_ref = `[${timestamp.time()}] [${index}] (${cname}) tested by [${names}], repeated * ${repeat}.`, console.log(_ref); | ||
}; | ||
@@ -83,0 +86,0 @@ |
import { CrosTab } from '@analys/crostab'; | ||
import { round } from '@aryth/math'; | ||
import { fluoVector } from '@palett/fluo-vector'; | ||
import { ros } from '@palett/says'; | ||
import { CO } from '@spare/enum-chars'; | ||
import { Eta } from '@valjoux/eta'; | ||
import { now } from '@valjoux/timestamp'; | ||
import { time } from '@valjoux/timestamp'; | ||
import { mapper } from '@vect/columns-mapper'; | ||
@@ -28,7 +30,8 @@ import { iso } from '@vect/matrix-init'; | ||
const eta = new Eta(), | ||
fname = Object.keys(methods), | ||
functionNames = Object.keys(methods), | ||
prettyNames = functionNames.map(x => ros(x)).join(CO), | ||
functions = Object.values(methods), | ||
ents = Object.entries(candidates), | ||
h = ents.length, | ||
w = fname.length, | ||
entries = Object.entries(candidates), | ||
h = entries.length, | ||
w = functionNames.length, | ||
tmx = iso(h, w, 0), | ||
@@ -39,3 +42,3 @@ vmx = iso(h, w, undefined); | ||
for (let i = 0, cname, params; i < h; i++) { | ||
[cname, params] = ents[i], progressLogger(i, cname, fname, repeat); | ||
[cname, params] = entries[i], progressLogger(i, cname, prettyNames, repeat); | ||
eta.tick(); | ||
@@ -49,3 +52,3 @@ | ||
const crostab = new CrosTab(Object.keys(candidates), fname, [[]]); | ||
const crostab = new CrosTab(Object.keys(candidates), functionNames, [[]]); | ||
let [lapse, result] = [crostab.copy({ | ||
@@ -72,6 +75,6 @@ rows: tmx, | ||
const progressLogger = (index, cname, fname, repeat) => { | ||
const progressLogger = (index, cname, names, repeat) => { | ||
var _ref; | ||
_ref = `[${now()}] [${index}] (${cname}) tested by [${fname}], repeated * ${repeat}.`, console.log(_ref); | ||
_ref = `[${time()}] [${index}] (${cname}) tested by [${names}], repeated * ${repeat}.`, console.log(_ref); | ||
}; | ||
@@ -78,0 +81,0 @@ |
{ | ||
"name": "@valjoux/strategies", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"description": "date & time util toolset", | ||
@@ -18,10 +18,12 @@ "main": "dist/index.cjs.js", | ||
"dependencies": { | ||
"@analys/crostab": "^0.3.4", | ||
"@aryth/math": "^0.2.10", | ||
"@palett/fluo-vector": "^0.4.0", | ||
"@palett/ros": "^0.4.0", | ||
"@valjoux/eta": "^0.1.10", | ||
"@valjoux/timestamp": "^0.1.10", | ||
"@vect/columns-mapper": "^0.2.4", | ||
"@vect/matrix-init": "^0.2.4" | ||
"@analys/crostab": "^0.3.6", | ||
"@aryth/math": "^0.2.14", | ||
"@palett/fluo-vector": "^0.4.5", | ||
"@palett/ros": "^0.4.5", | ||
"@palett/says": "^0.4.5", | ||
"@spare/enum-chars": "^0.8.10", | ||
"@valjoux/eta": "^0.1.11", | ||
"@valjoux/timestamp": "^0.1.11", | ||
"@vect/columns-mapper": "^0.2.8", | ||
"@vect/matrix-init": "^0.2.8" | ||
}, | ||
@@ -44,3 +46,3 @@ "repository": { | ||
"homepage": "https://github.com/hoyeungw/valjoux#readme", | ||
"gitHead": "0c5281f7a2d4ee6d9140c0faca37ce25d6e5afbc" | ||
"gitHead": "3d0fdc772379ab1d0db1d1f805f07846d9b79bb0" | ||
} |
8626
140
10
+ Added@palett/says@^0.4.5
+ Added@spare/enum-chars@^0.8.10
+ Added@analys/enum-mutabilities@0.4.23(transitive)
+ Added@aryth/rank@0.2.14(transitive)
+ Added@aryth/rank-column@0.2.14(transitive)
+ Added@aryth/rank-matrix@0.2.14(transitive)
+ Added@ject/oneself@0.0.16(transitive)
+ Added@ject/pipe@0.0.6(transitive)
+ Added@palett/cards@0.8.19(transitive)
+ Added@palett/convert@0.8.18(transitive)
+ Added@palett/dye@0.8.18(transitive)
+ Added@palett/dye-factory@0.8.18(transitive)
+ Added@palett/enum-ansi-codes@0.8.18(transitive)
+ Added@palett/enum-color-cards@0.4.6(transitive)
+ Added@palett/enum-color-space@0.4.60.8.18(transitive)
+ Added@palett/enum-colorant-modes@0.4.6(transitive)
+ Added@palett/enum-font-effects@0.4.60.8.18(transitive)
+ Added@palett/flopper@0.4.6(transitive)
+ Added@palett/fluo-entries@0.4.6(transitive)
+ Added@palett/presets@0.8.18(transitive)
+ Added@palett/projector@0.8.18(transitive)
+ Added@palett/projector-config@0.8.18(transitive)
+ Added@palett/projector-factory@0.8.18(transitive)
+ Added@palett/says@0.4.6(transitive)
+ Added@palett/table@0.4.6(transitive)
+ Added@palett/toner-hsl@0.8.18(transitive)
+ Added@palett/util-ansi@0.8.18(transitive)
+ Added@spare/bracket@0.9.9(transitive)
+ Added@spare/charset@0.9.9(transitive)
+ Added@spare/deco-colors@0.9.9(transitive)
+ Added@spare/deco-date@0.9.9(transitive)
+ Added@spare/deco-entries@0.9.9(transitive)
+ Added@spare/deco-flat@0.9.9(transitive)
+ Added@spare/deco-func@0.9.9(transitive)
+ Added@spare/deco-string@0.9.9(transitive)
+ Added@spare/deco-vector@0.9.9(transitive)
+ Added@spare/enttro@0.9.9(transitive)
+ Added@spare/enum-brackets@0.9.9(transitive)
+ Added@spare/enum-chars@0.11.220.9.9(transitive)
+ Added@spare/enum-full-angle-chars@0.9.9(transitive)
+ Added@spare/enum-quotes@0.9.9(transitive)
+ Added@spare/fold@0.9.9(transitive)
+ Added@spare/fullwidth@0.9.9(transitive)
+ Added@spare/lange@0.9.9(transitive)
+ Added@spare/liner@0.9.9(transitive)
+ Added@spare/pad-entries@0.9.9(transitive)
+ Added@spare/pad-string@0.9.9(transitive)
+ Added@spare/phrasing@0.9.9(transitive)
+ Added@spare/preset-deco@0.9.9(transitive)
+ Added@spare/quote@0.9.9(transitive)
+ Added@spare/regex-charset@0.9.9(transitive)
+ Added@spare/regex-phrasing@0.9.9(transitive)
+ Added@spare/ripper@0.9.9(transitive)
+ Added@spare/splitter@0.9.9(transitive)
+ Added@spare/string@0.9.9(transitive)
+ Added@spare/translator@0.9.9(transitive)
+ Added@spare/util@0.9.9(transitive)
+ Added@spare/vettro@0.9.9(transitive)
+ Added@typen/enums@0.1.19(transitive)
+ Added@valjoux/convert@0.2.15(transitive)
+ Added@valjoux/format-date@0.2.15(transitive)
+ Added@valjoux/format-date-time@0.2.15(transitive)
+ Added@valjoux/format-time@0.2.15(transitive)
+ Added@valjoux/timestamp-pretty@0.2.15(transitive)
+ Added@valjoux/util-bitwise@0.2.15(transitive)
+ Added@vect/column@0.2.13(transitive)
+ Added@vect/column-indicator@0.2.13(transitive)
+ Added@vect/column-mapper@0.2.13(transitive)
+ Added@vect/column-quantifier@0.2.13(transitive)
+ Added@vect/column-zipper@0.2.13(transitive)
+ Added@vect/columns-select@0.2.13(transitive)
+ Added@vect/columns-update@0.2.13(transitive)
+ Added@vect/entries-indicator@0.2.13(transitive)
+ Added@vect/entries-init@0.2.13(transitive)
+ Added@vect/entries-margin@0.2.13(transitive)
+ Added@vect/entries-unwind@0.2.13(transitive)
+ Added@vect/entries-zipper@0.2.13(transitive)
+ Added@vect/enum-matrix-directions@0.2.13(transitive)
+ Added@vect/matrix@0.2.13(transitive)
+ Added@vect/matrix-indicator@0.2.13(transitive)
+ Added@vect/matrix-mapper@0.2.13(transitive)
+ Added@vect/matrix-margin@0.2.13(transitive)
+ Added@vect/matrix-quantifier@0.2.13(transitive)
+ Added@vect/matrix-size@0.2.13(transitive)
+ Added@vect/matrix-transpose@0.2.13(transitive)
+ Added@vect/matrix-zipper@0.2.13(transitive)
+ Added@vect/object-mapper@0.2.13(transitive)
+ Added@vect/object-select@0.2.13(transitive)
Updated@analys/crostab@^0.3.6
Updated@aryth/math@^0.2.14
Updated@palett/fluo-vector@^0.4.5
Updated@palett/ros@^0.4.5
Updated@valjoux/eta@^0.1.11
Updated@valjoux/timestamp@^0.1.11
Updated@vect/columns-mapper@^0.2.8
Updated@vect/matrix-init@^0.2.8