mediawiki/services/texvcinfo (main)

sourcepatches
$ date
Sun May 16 21:03:11 UTC 2021

$ git clone file:///srv/git/mediawiki-services-texvcinfo.git repo --depth=1 -b master
Cloning into 'repo'...

$ git config user.name libraryupgrader

$ git config user.email tools.libraryupgrader@tools.wmflabs.org

$ git submodule update --init

$ grr init
Installed commit-msg hook.

$ git show-ref refs/heads/master
30fc4357bae100af4743cebe8305ef2cc92b5144 refs/heads/master

Attempting to npm audit fix
$ npm audit fix --only=dev
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 278 packages from 278 contributors in 4.697s

27 packages are looking for funding
  run `npm fund` for details

fixed 0 of 1 vulnerability in 282 scanned packages
  1 vulnerability required manual review and could not be updated

$ npm audit fix --only=dev
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

up to date in 1.53s

27 packages are looking for funding
  run `npm fund` for details

fixed 0 of 1 vulnerability in 282 scanned packages
  1 vulnerability required manual review and could not be updated

$ npm audit fix --only=dev
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

up to date in 1.614s

27 packages are looking for funding
  run `npm fund` for details

fixed 0 of 1 vulnerability in 282 scanned packages
  1 vulnerability required manual review and could not be updated

Verifying that tests still pass
$ npm ci
npm WARN prepare removing existing node_modules/ before installation
added 282 packages in 4.188s

$ npm test

> texvcinfo@0.5.6 test /src/repo
> jshint . && mocha



  Feedback
    ✓ should give adequate feedback ""
    ✓ should give adequate feedback "{\\cos(x).}"
    ✓ should give adequate feedback "{\\cos\\left(x.\\right)}"
    ✓ should give adequate feedback "\\mathbb{x}"
    ✓ should give adequate feedback "a+\\badfunc-b"
    ✓ should give adequate feedback "\\sin\\left(x)"
    ✓ should give adequate feedback "\\ce{H2O}"
    ✓ should give adequate feedback "\\ce{H2O}"
    ✓ should give adequate feedback "\\ce {\\log}"

  Gold Identifiers
    ✓ in qID1 should be discovered "W(2, k) > 2^k/k^\\varepsilon"
    ✓ in qID2 should be discovered "(X,\\Sigma)"
    ✓ in qID3 should be discovered "(p-1)!^n"
    ✓ in qID4 should be discovered "f_c(z) = z^2 + c"
    ✓ in qID5 should be discovered "\\forall x \\, \\forall y \\, P(x,y) \\Leftrightarrow \\forall y \\, \\forall x \\, P(x,y)"
    ✓ in qID6 should be discovered "\\alpha(x)"
    ✓ in qID7 should be discovered "\\alpha(x)"
    ✓ in qID8 should be discovered "\\alpha(x)"
    ✓ in qID9 should be discovered "|{\\Psi}\\rangle=\\sum_{i_1,i_2,\\alpha_1,\\alpha_2}\\Gamma^{[1]i_1}_{\\alpha_1}\\lambda^{[1]}_{\\alpha_1}\\Gamma^{[2]i_2}_{\\alpha_1\\alpha_2}\\lambda^{[2]}_{{\\alpha}_2}|{i_1i_2}\\rangle|{\\Phi^{[3..N]}_{\\alpha_2}}\\rangle"
    ✓ in qID10 should be discovered "z*x\\le y"
    ✓ in qID11 should be discovered " \\frac{d}{dx}\\left( \\log_c x\\right) = {1 \\over x \\ln c} , \\qquad c > 0, c \\ne 1"
    ✓ in qID12 should be discovered "\\theta = n \\times 137.508^\\circ,"
    ✓ in qID13 should be discovered "s_V(\\mathcal{R})"
    ✓ in qID14 should be discovered "\\ell(m)"
    ✓ in qID15 should be discovered "bx-x^2"
    ✓ in qID16 should be discovered "\\omega_{k}"
    ✓ in qID17 should be discovered "\\mathbf{m}_1"
    ✓ in qID18 should be discovered "r_{ij}"
    ✓ in qID19 should be discovered " Z = \\sum_{j} g_j \\cdot \\mathrm{e}^{- \\beta E_j}"
    ✓ in qID20 should be discovered "S'"
    ✓ in qID21 should be discovered "S'"
    ✓ in qID22 should be discovered "\\text{Ker} (k_* - l_*) \\cong \\text{Im} (i_*, j_*)."
    ✓ in qID23 should be discovered "D(G,H) = \\sum_{i=1}^{29} | F_i(G) - F_i(H) |"
    ✓ in qID24 should be discovered " E_\\text{k} = E_t + E_\\text{r} \\, "
    ✓ in qID25 should be discovered "\\lambda(L(B)) \\leq d"
    ✓ in qID26 should be discovered "L\\left(C\\right) \\leq L\\left(T\\right)"
    ✓ in qID27 should be discovered "v = \\frac{c}{n}"
    ✓ in qID28 should be discovered "\\sigma_y^2(\\tau) = \\frac{2\\pi^2\\tau}{3}h_{-2}"
    ✓ in qID29 should be discovered " R_{s\\ normal} = \\sqrt{ \\frac{\\omega \\mu_0} {2 \\sigma} }"
    ✓ in qID30 should be discovered " \\phi_1 = -30^\\circ...+30^\\circ"
    ✓ in qID31 should be discovered "T_c"
    ✓ in qID32 should be discovered "T_c"
    ✓ in qID33 should be discovered "T_c"
    ✓ in qID34 should be discovered "P_1(X)=P(X)/(X-\\alpha_1)"
    ✓ in qID35 should be discovered "= \\frac{k}{n}."
    ✓ in qID36 should be discovered "n = \\prod_{i=1}^r p_i^{a_i}"
    ✓ in qID37 should be discovered "H(j \\omega) = \\mathcal{F}\\{h(t)\\}"
    ✓ in qID38 should be discovered "\\pi/4"
    ✓ in qID39 should be discovered "(x+y)^n = \\sum_{k=0}^n {n \\choose k}x^{n-k}y^k = \\sum_{k=0}^n {n \\choose k}x^{k}y^{n-k}.\n"
    ✓ in qID40 should be discovered "\\ [A]_t = -kt + [A]_0"
    ✓ in qID41 should be discovered "q^{42}"
    ✓ in qID42 should be discovered "\\alpha(d) \\le \\left(\\sqrt{3/2} + \\varepsilon\\right)^d"
    ✓ in qID43 should be discovered "   f^{\\mu} = - 8\\pi  { G \\over { 3 c^4   }   } \\left (  {A \\over 2} T_{\\alpha \\beta}  + {B \\over 2} T \\eta_{\\alpha \\beta} \\right ) \\left ( \\delta^{\\mu}_{\\nu} + u^{\\mu} u_{\\nu} \\right )  u^{\\alpha} x^{\\nu} u^{\\beta} "
    ✓ in qID44 should be discovered " \\frac{D_g u_g}{Dt} - f_{0}v_a - \\beta y v_g = 0 "
    ✓ in qID45 should be discovered "I_c"
    ✓ in qID46 should be discovered "\\, A \\mapsto M\\alpha(A)M^{-1} ,"
    ✓ in qID47 should be discovered "\\Gamma_{\\infty}"
    ✓ in qID48 should be discovered "Y = \\beta T_8 + I X"
    ✓ in qID49 should be discovered " \\mu (A)= \\begin{cases} 1 & \\mbox{ if } 0 \\in A \\\\ \n                               0 & \\mbox{ if } 0 \\notin A.\n\\end{cases}"
    ✓ in qID50 should be discovered "\\lambda_{in}"
    ✓ in qID51 should be discovered "rpm_{motor}"
    ✓ in qID52 should be discovered "\\underbrace{u_1(\\mathbf{x},z_1)=v_1+\\dot{u}_x}_{\\text{By definition of }v_1}=\\overbrace{-\\frac{\\partial V_x}{\\partial \\mathbf{x}}g_x(\\mathbf{x})-k_1(\\underbrace{z_1-u_x(\\mathbf{x})}_{e_1})}^{v_1} \\, + \\, \\overbrace{\\frac{\\partial u_x}{\\partial \\mathbf{x}}(\\underbrace{f_x(\\mathbf{x})+g_x(\\mathbf{x})z_1}_{\\dot{\\mathbf{x}} \\text{ (i.e., } \\frac{\\operatorname{d}\\mathbf{x}}{\\operatorname{d}t} \\text{)}})}^{\\dot{u}_x \\text{ (i.e., } \\frac{ \\operatorname{d}u_x }{\\operatorname{d}t} \\text{)}}"
    ✓ in qID53 should be discovered "E \\left[ \\hat{\\sigma}^2\\right]= \\frac{n-1}{n} \\sigma^2"
    ✓ in qID54 should be discovered "\\mathsf{fv}"
    ✓ in qID55 should be discovered "\\sum_x \\sum_y I(x,y) \\,\\!"
    ✓ in qID56 should be discovered "\\boldsymbol{F}_r"
    ✓ in qID57 should be discovered "0\\rightarrow B\\rightarrow A\\oplus B\\rightarrow A\\rightarrow0."
    ✓ in qID58 should be discovered "(\\nabla_Y T)(\\alpha_1, \\alpha_2, \\ldots, X_1, X_2, \\ldots) =Y(T(\\alpha_1,\\alpha_2,\\ldots,X_1,X_2,\\ldots))"
    ✓ in qID59 should be discovered " \\sum_{n \\in \\mathbb{Z}^d} |\\psi(t,n)|^2 |n| \\leq C "
    ✓ in qID60 should be discovered " p = {\\frac{-x\\pm\\sqrt{x^2-4(\\frac{-gx^2}{2v^2})(\\frac{-gx^2}{2v^2}-y)}}{2(\\frac{-gx^2}{2v^2}) }}"
    ✓ in qID61 should be discovered "\\left\\{ z \\in H: \\left| z \\right| > 1,\\, \\left| \\,\\mbox{Re}(z) \\,\\right| < \\frac{1}{2} \\right\\}"
    ✓ in qID62 should be discovered "T-\\lambda I"
    ✓ in qID63 should be discovered "\n    y\\left( x \\right) = {\\mathop{\\rm sgn}} \\left( {{\\rho }} \\right)\\frac{{{\\sigma _y}}}{{{\\sigma _x}}}\\left( {x - {\\mu _x}} \\right) + {\\mu _y}.\n  "
    ✓ in qID64 should be discovered "x=b \\ "
    ✓ in qID65 should be discovered "H^1(K)=\\sqrt{2}"
    ✓ in qID66 should be discovered "P_i = \\mbox{head}(E_K (S_{i-1}), x) \\oplus C_i"
    ✓ in qID67 should be discovered "\\frac{ \\partial f}{ \\partial x} = f_x = \\partial_x f."
    ✓ in qID68 should be discovered " P_x = P - \\{ a\\mid a \\geq x\\} "
    ✓ in qID69 should be discovered "\\eta = \\frac{ work\\ done } {heat\\ absorbed}  = \\frac{ Q1-Q2 }{ Q1}"
    ✓ in qID70 should be discovered "df = {\\partial f \\over \\partial x}dx + {\\partial f \\over \\partial y}dy = pdx + vdy"
    ✓ in qID71 should be discovered "h_{r,s}"
    ✓ in qID72 should be discovered " K^M_*(k) := T^*(k^\\times)/(a\\otimes (1-a)) "
    ✓ in qID73 should be discovered "\\{C : K_X \\cdot C = 0\\}"
    ✓ in qID74 should be discovered "\\Theta \\wedge\n(d\\Theta)^n \\neq 0"
    ✓ in qID75 should be discovered "D\\left(\\rho u_i\\right)/Dt\\approx0"
    ✓ in qID76 should be discovered " z_{t} = \\lambda_{1}z_{t-1} + \\varepsilon_{t} "
    ✓ in qID77 should be discovered "b_3"
    ✓ in qID78 should be discovered "b_3"
    ✓ in qID79 should be discovered " \\Delta W = \\int_{V_1}^{V_2} p \\mathrm{d}V \\,\\!"
    ✓ in qID80 should be discovered "\\dim f(Z) > n"
    ✓ in qID81 should be discovered "\\frac{d}{dt} \\log_e t = \\frac{1}{t}."
    ✓ in qID82 should be discovered "h_i : X \\to \\{-1,+1\\}"
    ✓ in qID83 should be discovered "2\\le seqs \\le6"
    ✓ in qID84 should be discovered " F = \\{ (x,y) : x \\in \\mathcal{R}^b,\\, y \\in \\mathcal{R}^n,\\; x=y \\}."
    ✓ in qID85 should be discovered "X_i(\\omega)=\\omega_i"
    ✓ in qID86 should be discovered "\n{\\partial{L}\\over \\partial q_i} = {\\mathrm{d} \\over \\mathrm{d}t}{\\partial{L}\\over \\partial{\\dot{q_i}}}.\n"
    ✓ in qID87 should be discovered "x_7"
    ✓ in qID88 should be discovered "\\Pi_n"
    ✓ in qID89 should be discovered "\\sigma^2 = X^TVX,"
    ✓ in qID90 should be discovered "\\int_{\\mathbb{R}^n}f\\,dx = \\int_0^\\infty\\left\\{\\int_{\\partial B(x_0;r)} f\\,dS\\right\\}\\,dr."
    ✓ in qID91 should be discovered "\n\\{x, p_x\\}_{DB} = \\{y, p_y\\}_{DB} = \\frac{1}{2}\n"
    ✓ in qID92 should be discovered "G_{k, \\sigma} (y)= 1-(1+ky/\\sigma)^{-1/k} "
    ✓ in qID93 should be discovered "L(H_B) \\otimes C(X)"
    ✓ in qID94 should be discovered "\\pi_i = 2^{-N} \\tbinom Ni"
    ✓ in qID95 should be discovered "(\\sqrt{p_1}, \\cdots ,\\sqrt{p_n})"
    ✓ in qID96 should be discovered "\\boldsymbol{s}"
    ✓ in qID97 should be discovered "\\mathbf{J^TW\\  \\Delta y}"
    ✓ in qID98 should be discovered "\\bar V^*"
    ✓ in qID99 should be discovered "\\;\\frac{(n+\\delta-1)(n+\\delta-2)\\cdots n}{(\\delta-1)!}\\;"
    ✓ in qID100 should be discovered "y_k[n]"

  Identifiers
    ✓ should be discovered ""
    ✓ should be discovered "."
    ✓ should be discovered "a"
    ✓ should be discovered "a."
    ✓ should be discovered "a_\\text{x}"
    ✓ should be discovered "a_{bc}"
    ✓ should be discovered "a_{b,c}"
    ✓ should be discovered "a_{+}"
    ✓ should be discovered "a_{\\emptyset}"
    ✓ should be discovered "a_{-\\infty}"
    ✓ should be discovered "a_b^c"
    ✓ should be discovered "\\int_0^\\infty"
    ✓ should be discovered "a_{b\\pm c}"
    ✓ should be discovered "\\mathrm{def}"
    ✓ should be discovered "k_{\\mathbf{B}}"
    ✓ should be discovered "\\boldsymbol{\\sigma}"
    ✓ should be discovered "\\mathbf{\\hat{n}}"
    ✓ should be discovered "a^2"
    ✓ should be discovered "a^2+b^2"
    ✓ should be discovered "a^{2}+b^{2}"
    ✓ should be discovered "\\frac2b"
    ✓ should be discovered "t_a"
    ✓ should be discovered "\\mathrm{kg}"
    ✓ should be discovered "\\sqrt[3]{81}"
    ✓ should be discovered "a'_{k}"
    ✓ should be discovered "x_n*x_{n-1}"
    ✓ should be discovered "a_{i_{j}}"
    ✓ should be discovered "\\operatorname{arg min}"
    ✓ should be discovered "\\underbrace{x+y}_2"
    ✓ should be discovered "\\hat{U}(t,t_0)=\\exp{\\left(-\\frac{i}\\hbar \\int_{t_0}^t \\hat{H}(t')dt'\\right)}"
    ✓ should be discovered "\\begin{align}\n  &[\\mathrm j_k, \\mathrm j_l]\n    \\equiv \\mathrm j_k \\mathrm j_l - \\mathrm j_l \\mathrm j_k\n    = i \\hbar \\sum_m \\varepsilon_{k, l, m} \\mathrm j_m\n    & k, l, m &\\in \\{\\mathrm x, \\mathrm y, \\mathrm z\\}\n\\end{align}"
    ✓ should be discovered "x = \\int_1^y {\\mathrm{d}t \\over t}"
    ✓ should be discovered "f'(x) = \\lim_{h \\to 0}{f(x+h) - f(x)\\over{h}}"
    ✓ should be discovered "\\dot m = C_d A \\sqrt{k \\rho_0 P_0 \\left(\\frac{2}{k + 1}\\right)^{\\frac{k + 1}{k - 1}}}"
    ✓ should be discovered "\\forall x \\Big(\\forall y (y \\in x \\rightarrow P[y]) \\rightarrow P[x]\\Big) \\rightarrow \\forall x \\, P[x]"
    ✓ should be discovered "\\text{Magnetic Reynolds number  }"
    ✓ should be discovered "\\int_{R_n} \\cdots \\int_{R_2} \\int_{R_1} f(x_1, x_2, \\ldots, x_n) \\, dx_1 dx_2\\cdots dx_n \\equiv \\int_R f(\\boldsymbol{x}) \\, d^n\\boldsymbol{x}"
    ✓ should be discovered "\\mathbf{M}_{\\rm orb}"
    ✓ should be discovered "F=\\overline{(A \\wedge B) \\vee (C \\wedge D)}"
    ✓ should be discovered "\\mathrm{2\\ Squares\\ of\\ Land}"
    ✓ should be discovered "\\mathrm{d_k,d^k,d_{klo},\\left(d_{\\begin{matrix}a\\end{matrix}}\\right),\\frac12}"
    ✓ should be discovered "\\mathrm{\\begin{matrix}a\\end{matrix},\\big(,\\mbox{A},{\\rm b},1_2_3,1^2,1^2^3,1_2^3,_1^2}"
    ✓ should be discovered "\\mathrm{a \\choose b, \\sqrt{4}}"
    ✓ should be discovered "\\sideset{c}{d}e+\\sideset{_\\dagger^*}{_\\dagger^*}\\prod"
    ✓ should be discovered "\\mathrm{_a^b}"
    ✓ should be discovered "\\mathrm{\\sqrt[3]{81}}"
    ✓ should be discovered "\\mathrm{\\sideset{c}{d}e}"
    ✓ should be discovered "\\mathrm{{}_c}"
    ✓ should be discovered "\\mathrm{'_c}"
    ✓ should be discovered "0_{d_k,d^k,d_{klo},\\left(d_{\\begin{matrix}a\\end{matrix}}\\right),\\frac12}"
    ✓ should be discovered "0_{\\begin{matrix}a\\end{matrix},\\big(,\\mbox{A},{\\rm b},1_2_3,1^2,1^2^3,1_2^3,_1^2}"
    ✓ should be discovered "0_{a \\choose b, \\sqrt{4}}"
    ✓ should be discovered "0_{_a^b}"
    ✓ should be discovered "0_{\\sqrt[3]{81}}"
    ✓ should be discovered "0_{\\sideset{c}{d}e}"
    ✓ should be discovered "0_{{}_c}"
    ✓ should be discovered "0_{\\it a}"
    ✓ should be discovered "0_{\\cal a}"
    ✓ should be discovered "0_{\\bf a}"
    ✓ should be discovered "0_{\\bf }"
    ✓ should be discovered "{\\frac {\\operatorname {d} u_{x}}{\\operatorname {d} t}}"
    ✓ should be discovered "\\ce{H2O}"
    ✓ should be discovered "a_{\\ce{H2O}}"
    ✓ should be discovered "\\mathbb{\\ce{H2O}}"
    ✓ should be discovered "\\ce{\\underbrace{a}_{b}}"
    ✓ texonly should not cause an error

  Index
    ✓ should correctly handle ""with option""
    ✓ should correctly handle "\\mathbb{x}"with option{"format":"tree"}
    ✓ should correctly handle "\\mathbb{x}"with option{"format":"identifier"}
    ✓ should correctly handle "\\mathbb{x}"with option{"format":"list"}
    ✓ should correctly handle "\\mathbb{x}"with option{"format":"json"}
    ✓ should correctly handle "\\mathbb{x}"with option{"format":"all"}
    ✓ should correctly handle "\\invalid"with optionundefined
    ✓ should correctly handle "\\left("with optionundefined
    ✓ should correctly handle {"length":1}with option{"format":"json","flatTree":true}
    ✓ should throw an exception in debug mode

  Tokens
    ✓ should correctly render ""
    ✓ should correctly render "a"
    ✓ should correctly render "a^2"
    ✓ should correctly render "a^2+b^2"
    ✓ should correctly render "a^{2}+b^{2}"
    ✓ should correctly render "\\frac2b"

  tree2d3json
    ✓ should correctly render ""
    ✓ should correctly render "a"
    ✓ should correctly render "a^2"
    ✓ should correctly render "a^2+b^2"
    ✓ should correctly render "a^{2}+b^{2}"
    ✓ should correctly render "\\frac2b"
    ✓ should correctly render "b^2"

  Array Tree
    ✓ should correctly render ""
    ✓ should correctly render "3+\\frac1{7+\\frac1{15+\\dots}}"
    ✓ should correctly render "\\ce{H2O}"


  201 passing (301ms)


$ git add .

$ git commit -F /tmp/tmpboreqgt7
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

npm dependencies

Dependencies
Development dependencies

Logs

Source code is licensed under the AGPL.