text:
Test that xml2rfc serializer XML output satisfies authoritative schema

The schema is described in https://xml2rfc.tools.ietf.org/xml2rfc-doc.html#name-relax-ng-schema-2.
The idea would be to create various BibliographicItem instances (with different field combinations, e.g. one for <referencegroup>, one for plain <reference>, etc.), feed them to xml2rfc_compat.serializer.to_xml(), and check that the resulting XML satisfies authoritative schema.
This does not relieve us from having to test the exact values in XML output in addition to that, but it’s a useful smoke-test and sanity check that our own tests are correct.

So far we could not automatically derive an XSD schema from RNC schema linked in the description. @stefanomunarini’s attempts to use the trang CLI tool seem to yield a schema that is not parseable.
This may not indicate a problem with RNC schema description, as it could be an issue with trang. Regardless, we are keeping this issue but refocusing on other consequential tests.

This is the issue I get when I try to import the below XSD schema to be used to validate the XML output:

And this is the XSD Schema trang generated from the official Compact NG Schema (RNC):

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns:ns1="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg">
  <xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="ns1.xsd"/>
  <xs:import namespace="http://www.w3.org/2000/svg" schemaLocation="SVG-1.2-RFC.xsd"/>
  <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
  <!-- xml2rfc Version 3 grammar -->
  <xs:element name="rfc">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" maxOccurs="unbounded" ref="link"/>
        <xs:element ref="front"/>
        <xs:element ref="middle"/>
        <xs:element minOccurs="0" ref="back"/>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="number"/>
      <xs:attribute name="obsoletes" default=""/>
      <xs:attribute name="updates" default=""/>
      <xs:attribute name="category">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="std"/>
            <xs:enumeration value="bcp"/>
            <xs:enumeration value="exp"/>
            <xs:enumeration value="info"/>
            <xs:enumeration value="historic"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="mode"/>
      <xs:attribute name="consensus" default="false">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="no"/>
            <xs:enumeration value="yes"/>
            <xs:enumeration value="false"/>
            <xs:enumeration value="true"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="seriesNo"/>
      <xs:attribute name="ipr"/>
      <xs:attribute name="iprExtract" type="xs:IDREF"/>
      <xs:attribute name="submissionType" default="IETF">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="IETF"/>
            <xs:enumeration value="IAB"/>
            <xs:enumeration value="IRTF"/>
            <xs:enumeration value="independent"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="docName"/>
      <xs:attribute name="sortRefs" default="false">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="true"/>
            <xs:enumeration value="false"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="symRefs" default="true">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="true"/>
            <xs:enumeration value="false"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="tocInclude" default="true">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="true"/>
            <xs:enumeration value="false"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="tocDepth" default="3"/>
      <xs:attribute name="prepTime"/>
      <xs:attribute name="indexInclude" default="true">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="true"/>
            <xs:enumeration value="false"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="version"/>
      <xs:attribute name="scripts" default="Common,Latin"/>
      <xs:attribute name="expiresDate"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="link">
    <xs:complexType>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="href" use="required"/>
      <xs:attribute name="rel"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="front">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="title"/>
        <xs:element minOccurs="0" maxOccurs="unbounded" ref="seriesInfo"/>
        <xs:element maxOccurs="unbounded" ref="author"/>
        <xs:element minOccurs="0" ref="date"/>
        <xs:element minOccurs="0" maxOccurs="unbounded" ref="area"/>
        <xs:element minOccurs="0" maxOccurs="unbounded" ref="workgroup"/>
        <xs:element minOccurs="0" maxOccurs="unbounded" ref="keyword"/>
        <xs:element minOccurs="0" ref="abstract"/>
        <xs:element minOccurs="0" maxOccurs="unbounded" ref="note"/>
        <xs:element minOccurs="0" ref="boilerplate"/>
        <xs:element minOccurs="0" ref="toc"/>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="title">
    <xs:complexType mixed="true">
      <xs:sequence>
        <xs:element minOccurs="0" maxOccurs="unbounded" ref="br"/>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="abbrev"/>
      <xs:attribute name="ascii"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="author">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" ref="organization"/>
        <xs:element minOccurs="0" ref="address"/>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" type="xs:ID"/>
      <xs:attribute name="initials"/>
      <xs:attribute name="asciiInitials"/>
      <xs:attribute name="surname"/>
      <xs:attribute name="asciiSurname"/>
      <xs:attribute name="fullname"/>
      <xs:attribute name="role">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="editor"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="asciiFullname"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="contact">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" ref="organization"/>
        <xs:element minOccurs="0" ref="address"/>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" type="xs:ID"/>
      <xs:attribute name="initials"/>
      <xs:attribute name="asciiInitials"/>
      <xs:attribute name="surname"/>
      <xs:attribute name="asciiSurname"/>
      <xs:attribute name="fullname"/>
      <xs:attribute name="asciiFullname"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="organization">
    <xs:complexType mixed="true">
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="abbrev"/>
      <xs:attribute name="ascii"/>
      <xs:attribute name="asciiAbbrev"/>
      <xs:attribute name="showOnFrontPage" default="true">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="true"/>
            <xs:enumeration value="false"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:element name="address">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" ref="postal"/>
        <xs:element minOccurs="0" ref="phone"/>
        <xs:element minOccurs="0" ref="facsimile"/>
        <xs:element minOccurs="0" maxOccurs="unbounded" ref="email"/>
        <xs:element minOccurs="0" ref="uri"/>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="postal">
    <xs:complexType>
      <xs:choice>
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:element ref="city"/>
          <xs:element ref="cityarea"/>
          <xs:element ref="code"/>
          <xs:element ref="country"/>
          <xs:element ref="extaddr"/>
          <xs:element ref="pobox"/>
          <xs:element ref="region"/>
          <xs:element ref="sortingcode"/>
          <xs:element ref="street"/>
        </xs:choice>
        <xs:element maxOccurs="unbounded" ref="postalLine"/>
      </xs:choice>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="extaddr">
    <xs:complexType mixed="true">
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="ascii"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="pobox">
    <xs:complexType mixed="true">
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="ascii"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="street">
    <xs:complexType mixed="true">
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="ascii"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="cityarea">
    <xs:complexType mixed="true">
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="ascii"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="city">
    <xs:complexType mixed="true">
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="ascii"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="region">
    <xs:complexType mixed="true">
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="ascii"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="code">
    <xs:complexType mixed="true">
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="ascii"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="sortingcode">
    <xs:complexType mixed="true">
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="ascii"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="country">
    <xs:complexType mixed="true">
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="ascii"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="postalLine">
    <xs:complexType mixed="true">
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="ascii"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="phone">
    <xs:complexType mixed="true">
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="facsimile">
    <xs:complexType mixed="true">
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="email">
    <xs:complexType mixed="true">
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="ascii"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="uri">
    <xs:complexType mixed="true">
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="date">
    <xs:complexType mixed="true">
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="day"/>
      <xs:attribute name="month"/>
      <xs:attribute name="year"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="area">
    <xs:complexType mixed="true">
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="workgroup">
    <xs:complexType mixed="true">
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="keyword">
    <xs:complexType mixed="true">
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="abstract">
    <xs:complexType>
      <xs:choice maxOccurs="unbounded">
        <xs:element ref="dl"/>
        <xs:element ref="ol"/>
        <xs:element ref="t"/>
        <xs:element ref="ul"/>
      </xs:choice>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" type="xs:ID"/>
      <xs:attribute name="pn" type="xs:ID"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="note">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" ref="name"/>
        <xs:choice maxOccurs="unbounded">
          <xs:element ref="dl"/>
          <xs:element ref="ol"/>
          <xs:element ref="t"/>
          <xs:element ref="ul"/>
        </xs:choice>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="title"/>
      <xs:attribute name="pn" type="xs:ID"/>
      <xs:attribute name="removeInRFC" default="false">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="true"/>
            <xs:enumeration value="false"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:element name="boilerplate">
    <xs:complexType>
      <xs:sequence>
        <xs:element maxOccurs="unbounded" ref="section"/>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="toc">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" maxOccurs="unbounded" ref="section"/>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="middle">
    <xs:complexType>
      <xs:sequence>
        <xs:element maxOccurs="unbounded" ref="section"/>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="section">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" ref="name"/>
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:element ref="artset"/>
          <xs:element ref="artwork"/>
          <xs:element ref="aside"/>
          <xs:element ref="author"/>
          <xs:element ref="blockquote"/>
          <xs:element ref="contact"/>
          <xs:element ref="dl"/>
          <xs:element ref="figure"/>
          <xs:element ref="iref"/>
          <xs:element ref="ol"/>
          <xs:element ref="sourcecode"/>
          <xs:element ref="t"/>
          <xs:element ref="table"/>
          <xs:element ref="texttable"/>
          <xs:element ref="ul"/>
        </xs:choice>
        <xs:element minOccurs="0" maxOccurs="unbounded" ref="section"/>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" type="xs:ID"/>
      <xs:attribute name="pn" type="xs:ID"/>
      <xs:attribute name="title"/>
      <xs:attribute name="numbered" default="true">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="true"/>
            <xs:enumeration value="false"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="toc" default="default">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="include"/>
            <xs:enumeration value="exclude"/>
            <xs:enumeration value="default"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="removeInRFC" default="false">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="true"/>
            <xs:enumeration value="false"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:element name="name">
    <xs:complexType mixed="true">
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element ref="bcp14"/>
        <xs:element ref="br"/>
        <xs:element ref="cref"/>
        <xs:element ref="em"/>
        <xs:element ref="eref"/>
        <xs:element ref="iref"/>
        <xs:element ref="relref"/>
        <xs:element ref="strong"/>
        <xs:element ref="sub"/>
        <xs:element ref="sup"/>
        <xs:element ref="tt"/>
        <xs:element ref="xref"/>
      </xs:choice>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="slugifiedName" type="xs:ID"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="br">
    <xs:complexType>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="t">
    <xs:complexType mixed="true">
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element ref="bcp14"/>
        <xs:element ref="br"/>
        <xs:element ref="contact"/>
        <xs:element ref="cref"/>
        <xs:element ref="em"/>
        <xs:element ref="eref"/>
        <xs:element ref="iref"/>
        <xs:element ref="list"/>
        <xs:element ref="relref"/>
        <xs:element ref="spanx"/>
        <xs:element ref="strong"/>
        <xs:element ref="sub"/>
        <xs:element ref="sup"/>
        <xs:element ref="tt"/>
        <xs:element ref="u"/>
        <xs:element ref="vspace"/>
        <xs:element ref="xref"/>
      </xs:choice>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" type="xs:ID"/>
      <xs:attribute name="pn" type="xs:ID"/>
      <xs:attribute name="hangText"/>
      <xs:attribute name="indent" default="0"/>
      <xs:attribute name="keepWithNext" default="false">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="true"/>
            <xs:enumeration value="false"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="keepWithPrevious" default="false">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="true"/>
            <xs:enumeration value="false"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:element name="aside">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element ref="artset"/>
        <xs:element ref="artwork"/>
        <xs:element ref="blockquote"/>
        <xs:element ref="dl"/>
        <xs:element ref="figure"/>
        <xs:element ref="iref"/>
        <xs:element ref="ol"/>
        <xs:element ref="t"/>
        <xs:element ref="table"/>
        <xs:element ref="ul"/>
      </xs:choice>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" type="xs:ID"/>
      <xs:attribute name="pn" type="xs:ID"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="blockquote">
    <xs:complexType mixed="true">
      <xs:choice>
        <xs:choice maxOccurs="unbounded">
          <xs:element ref="artset"/>
          <xs:element ref="artwork"/>
          <xs:element ref="dl"/>
          <xs:element ref="figure"/>
          <xs:element ref="ol"/>
          <xs:element ref="sourcecode"/>
          <xs:element ref="t"/>
          <xs:element ref="ul"/>
        </xs:choice>
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:element ref="bcp14"/>
          <xs:element ref="br"/>
          <xs:element ref="cref"/>
          <xs:element ref="em"/>
          <xs:element ref="eref"/>
          <xs:element ref="iref"/>
          <xs:element ref="relref"/>
          <xs:element ref="strong"/>
          <xs:element ref="sub"/>
          <xs:element ref="sup"/>
          <xs:element ref="tt"/>
          <xs:element ref="u"/>
          <xs:element ref="xref"/>
        </xs:choice>
      </xs:choice>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" type="xs:ID"/>
      <xs:attribute name="pn" type="xs:ID"/>
      <xs:attribute name="cite"/>
      <xs:attribute name="quotedFrom"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="list">
    <xs:complexType>
      <xs:sequence>
        <xs:element maxOccurs="unbounded" ref="t"/>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="style" default="empty"/>
      <xs:attribute name="hangIndent"/>
      <xs:attribute name="counter"/>
      <xs:attribute name="pn" type="xs:ID"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="ol">
    <xs:complexType>
      <xs:sequence>
        <xs:element maxOccurs="unbounded" ref="li"/>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" type="xs:ID"/>
      <xs:attribute name="type" default="1"/>
      <xs:attribute name="start" default="1"/>
      <xs:attribute name="group"/>
      <xs:attribute name="spacing" default="normal">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="normal"/>
            <xs:enumeration value="compact"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="indent" default="adaptive"/>
      <xs:attribute name="pn" type="xs:ID"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="ul">
    <xs:complexType>
      <xs:sequence>
        <xs:element maxOccurs="unbounded" ref="li"/>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" type="xs:ID"/>
      <xs:attribute name="spacing" default="normal">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="normal"/>
            <xs:enumeration value="compact"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="empty" default="false">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="true"/>
            <xs:enumeration value="false"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="bare" default="false">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="true"/>
            <xs:enumeration value="false"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="indent" default="3"/>
      <xs:attribute name="pn" type="xs:ID"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="li">
    <xs:complexType mixed="true">
      <xs:choice>
        <xs:choice maxOccurs="unbounded">
          <xs:element ref="artset"/>
          <xs:element ref="artwork"/>
          <xs:element ref="blockquote"/>
          <xs:element ref="dl"/>
          <xs:element ref="figure"/>
          <xs:element ref="ol"/>
          <xs:element ref="sourcecode"/>
          <xs:element ref="t"/>
          <xs:element ref="table"/>
          <xs:element ref="ul"/>
        </xs:choice>
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:element ref="bcp14"/>
          <xs:element ref="br"/>
          <xs:element ref="cref"/>
          <xs:element ref="em"/>
          <xs:element ref="eref"/>
          <xs:element ref="iref"/>
          <xs:element ref="relref"/>
          <xs:element ref="strong"/>
          <xs:element ref="sub"/>
          <xs:element ref="sup"/>
          <xs:element ref="tt"/>
          <xs:element ref="u"/>
          <xs:element ref="xref"/>
        </xs:choice>
      </xs:choice>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" type="xs:ID"/>
      <xs:attribute name="derivedCounter"/>
      <xs:attribute name="pn" type="xs:ID"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="dl">
    <xs:complexType>
      <xs:sequence maxOccurs="unbounded">
        <xs:element ref="dt"/>
        <xs:element ref="dd"/>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" type="xs:ID"/>
      <xs:attribute name="spacing" default="normal">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="normal"/>
            <xs:enumeration value="compact"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="newline" default="false">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="true"/>
            <xs:enumeration value="false"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="indent" default="3"/>
      <xs:attribute name="pn" type="xs:ID"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="dt">
    <xs:complexType mixed="true">
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element ref="bcp14"/>
        <xs:element ref="br"/>
        <xs:element ref="cref"/>
        <xs:element ref="em"/>
        <xs:element ref="eref"/>
        <xs:element ref="iref"/>
        <xs:element ref="relref"/>
        <xs:element ref="strong"/>
        <xs:element ref="sub"/>
        <xs:element ref="sup"/>
        <xs:element ref="tt"/>
        <xs:element ref="xref"/>
      </xs:choice>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" type="xs:ID"/>
      <xs:attribute name="pn" type="xs:ID"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="dd">
    <xs:complexType mixed="true">
      <xs:choice>
        <xs:choice maxOccurs="unbounded">
          <xs:element ref="artset"/>
          <xs:element ref="artwork"/>
          <xs:element ref="aside"/>
          <xs:element ref="dl"/>
          <xs:element ref="figure"/>
          <xs:element ref="ol"/>
          <xs:element ref="sourcecode"/>
          <xs:element ref="t"/>
          <xs:element ref="table"/>
          <xs:element ref="ul"/>
        </xs:choice>
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:element ref="bcp14"/>
          <xs:element ref="br"/>
          <xs:element ref="cref"/>
          <xs:element ref="em"/>
          <xs:element ref="eref"/>
          <xs:element ref="iref"/>
          <xs:element ref="relref"/>
          <xs:element ref="strong"/>
          <xs:element ref="sub"/>
          <xs:element ref="sup"/>
          <xs:element ref="tt"/>
          <xs:element ref="u"/>
          <xs:element ref="xref"/>
        </xs:choice>
      </xs:choice>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" type="xs:ID"/>
      <xs:attribute name="pn" type="xs:ID"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="xref">
    <xs:complexType mixed="true">
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element ref="em"/>
        <xs:element ref="strong"/>
        <xs:element ref="sub"/>
        <xs:element ref="sup"/>
        <xs:element ref="tt"/>
      </xs:choice>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="target" use="required" type="xs:IDREF"/>
      <xs:attribute name="pageno" default="false">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="true"/>
            <xs:enumeration value="false"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="format" default="default">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="default"/>
            <xs:enumeration value="title"/>
            <xs:enumeration value="counter"/>
            <xs:enumeration value="none"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="derivedContent"/>
      <xs:attribute name="sectionFormat" default="of">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="of"/>
            <xs:enumeration value="comma"/>
            <xs:enumeration value="parens"/>
            <xs:enumeration value="bare"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="section"/>
      <xs:attribute name="relative"/>
      <xs:attribute name="derivedLink"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="relref">
    <xs:complexType mixed="true">
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="target" use="required" type="xs:IDREF"/>
      <xs:attribute name="displayFormat" default="of">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="of"/>
            <xs:enumeration value="comma"/>
            <xs:enumeration value="parens"/>
            <xs:enumeration value="bare"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="derivedContent"/>
      <xs:attribute name="section" use="required"/>
      <xs:attribute name="relative"/>
      <xs:attribute name="derivedLink"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="eref">
    <xs:complexType mixed="true">
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="brackets" default="none">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="none"/>
            <xs:enumeration value="angle"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="target" use="required"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="iref">
    <xs:complexType>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="item" use="required"/>
      <xs:attribute name="subitem" default=""/>
      <xs:attribute name="primary" default="false">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="true"/>
            <xs:enumeration value="false"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="pn" type="xs:ID"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="cref">
    <xs:complexType mixed="true">
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element ref="br"/>
        <xs:element ref="em"/>
        <xs:element ref="eref"/>
        <xs:element ref="relref"/>
        <xs:element ref="strong"/>
        <xs:element ref="sub"/>
        <xs:element ref="sup"/>
        <xs:element ref="tt"/>
        <xs:element ref="xref"/>
      </xs:choice>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" type="xs:ID"/>
      <xs:attribute name="source"/>
      <xs:attribute name="display" default="true">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="true"/>
            <xs:enumeration value="false"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:element name="tt">
    <xs:complexType mixed="true">
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element ref="bcp14"/>
        <xs:element ref="br"/>
        <xs:element ref="cref"/>
        <xs:element ref="em"/>
        <xs:element ref="eref"/>
        <xs:element ref="iref"/>
        <xs:element ref="relref"/>
        <xs:element ref="strong"/>
        <xs:element ref="sub"/>
        <xs:element ref="sup"/>
        <xs:element ref="xref"/>
      </xs:choice>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="strong">
    <xs:complexType mixed="true">
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element ref="bcp14"/>
        <xs:element ref="br"/>
        <xs:element ref="cref"/>
        <xs:element ref="em"/>
        <xs:element ref="eref"/>
        <xs:element ref="iref"/>
        <xs:element ref="relref"/>
        <xs:element ref="sub"/>
        <xs:element ref="sup"/>
        <xs:element ref="tt"/>
        <xs:element ref="xref"/>
      </xs:choice>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="em">
    <xs:complexType mixed="true">
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element ref="bcp14"/>
        <xs:element ref="br"/>
        <xs:element ref="cref"/>
        <xs:element ref="eref"/>
        <xs:element ref="iref"/>
        <xs:element ref="relref"/>
        <xs:element ref="strong"/>
        <xs:element ref="sub"/>
        <xs:element ref="sup"/>
        <xs:element ref="tt"/>
        <xs:element ref="xref"/>
      </xs:choice>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="sub">
    <xs:complexType mixed="true">
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element ref="bcp14"/>
        <xs:element ref="cref"/>
        <xs:element ref="em"/>
        <xs:element ref="eref"/>
        <xs:element ref="iref"/>
        <xs:element ref="relref"/>
        <xs:element ref="strong"/>
        <xs:element ref="sub"/>
        <xs:element ref="sup"/>
        <xs:element ref="tt"/>
        <xs:element ref="xref"/>
      </xs:choice>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="sup">
    <xs:complexType mixed="true">
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element ref="bcp14"/>
        <xs:element ref="cref"/>
        <xs:element ref="em"/>
        <xs:element ref="eref"/>
        <xs:element ref="iref"/>
        <xs:element ref="relref"/>
        <xs:element ref="strong"/>
        <xs:element ref="sub"/>
        <xs:element ref="sup"/>
        <xs:element ref="tt"/>
        <xs:element ref="xref"/>
      </xs:choice>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="spanx">
    <xs:complexType mixed="true">
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attributeGroup ref="xml:space"/>
      <xs:attribute name="style" default="emph"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="vspace">
    <xs:complexType>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="blankLines" default="0"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="figure">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" ref="name"/>
        <xs:element minOccurs="0" maxOccurs="unbounded" ref="iref"/>
        <xs:element minOccurs="0" ref="preamble"/>
        <xs:choice maxOccurs="unbounded">
          <xs:element ref="artset"/>
          <xs:element ref="artwork"/>
          <xs:element ref="sourcecode"/>
        </xs:choice>
        <xs:element minOccurs="0" ref="postamble"/>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" type="xs:ID"/>
      <xs:attribute name="pn" type="xs:ID"/>
      <xs:attribute name="title" default=""/>
      <xs:attribute name="suppress-title" default="false">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="true"/>
            <xs:enumeration value="false"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="src"/>
      <xs:attribute name="originalSrc"/>
      <xs:attribute name="align" default="left">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="left"/>
            <xs:enumeration value="center"/>
            <xs:enumeration value="right"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="alt" default=""/>
      <xs:attribute name="width" default=""/>
      <xs:attribute name="height" default=""/>
    </xs:complexType>
  </xs:element>
  <xs:element name="table">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" ref="name"/>
        <xs:element minOccurs="0" maxOccurs="unbounded" ref="iref"/>
        <xs:element minOccurs="0" ref="thead"/>
        <xs:element maxOccurs="unbounded" ref="tbody"/>
        <xs:element minOccurs="0" ref="tfoot"/>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="align" default="center">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="left"/>
            <xs:enumeration value="center"/>
            <xs:enumeration value="right"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="anchor" type="xs:ID"/>
      <xs:attribute name="pn" type="xs:ID"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="preamble">
    <xs:complexType mixed="true">
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element ref="bcp14"/>
        <xs:element ref="cref"/>
        <xs:element ref="em"/>
        <xs:element ref="eref"/>
        <xs:element ref="iref"/>
        <xs:element ref="relref"/>
        <xs:element ref="spanx"/>
        <xs:element ref="strong"/>
        <xs:element ref="sub"/>
        <xs:element ref="sup"/>
        <xs:element ref="tt"/>
        <xs:element ref="u"/>
        <xs:element ref="xref"/>
      </xs:choice>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="artset">
    <xs:complexType>
      <xs:sequence>
        <xs:element maxOccurs="unbounded" ref="artwork"/>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" type="xs:ID"/>
      <xs:attribute name="pn" type="xs:ID"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="artwork">
    <xs:complexType mixed="true">
      <xs:sequence>
        <xs:element minOccurs="0" ref="svg:svg"/>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" type="xs:ID"/>
      <xs:attribute name="pn" type="xs:ID"/>
      <xs:attributeGroup ref="xml:space1"/>
      <xs:attribute name="name" default=""/>
      <xs:attribute name="type" default=""/>
      <xs:attribute name="src"/>
      <xs:attribute name="align" default="left">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="left"/>
            <xs:enumeration value="center"/>
            <xs:enumeration value="right"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="alt" default=""/>
      <xs:attribute name="width" default=""/>
      <xs:attribute name="height" default=""/>
      <xs:attribute name="originalSrc"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="sourcecode">
    <xs:complexType mixed="true">
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" type="xs:ID"/>
      <xs:attribute name="pn" type="xs:ID"/>
      <xs:attribute name="name" default=""/>
      <xs:attribute name="type" default=""/>
      <xs:attribute name="markers" default="false">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="true"/>
            <xs:enumeration value="false"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="src"/>
      <xs:attribute name="originalSrc"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="thead">
    <xs:complexType>
      <xs:sequence>
        <xs:element maxOccurs="unbounded" ref="tr"/>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" type="xs:ID"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="tbody">
    <xs:complexType>
      <xs:sequence>
        <xs:element maxOccurs="unbounded" ref="tr"/>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" type="xs:ID"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="tfoot">
    <xs:complexType>
      <xs:sequence>
        <xs:element maxOccurs="unbounded" ref="tr"/>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" type="xs:ID"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="tr">
    <xs:complexType>
      <xs:choice maxOccurs="unbounded">
        <xs:element ref="td"/>
        <xs:element ref="th"/>
      </xs:choice>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" type="xs:ID"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="td">
    <xs:complexType mixed="true">
      <xs:choice>
        <xs:choice maxOccurs="unbounded">
          <xs:element ref="artset"/>
          <xs:element ref="artwork"/>
          <xs:element ref="dl"/>
          <xs:element ref="figure"/>
          <xs:element ref="ol"/>
          <xs:element ref="sourcecode"/>
          <xs:element ref="t"/>
          <xs:element ref="ul"/>
        </xs:choice>
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:element ref="bcp14"/>
          <xs:element ref="br"/>
          <xs:element ref="cref"/>
          <xs:element ref="em"/>
          <xs:element ref="eref"/>
          <xs:element ref="iref"/>
          <xs:element ref="relref"/>
          <xs:element ref="strong"/>
          <xs:element ref="sub"/>
          <xs:element ref="sup"/>
          <xs:element ref="tt"/>
          <xs:element ref="u"/>
          <xs:element ref="xref"/>
        </xs:choice>
      </xs:choice>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" type="xs:ID"/>
      <xs:attribute name="colspan" default="1"/>
      <xs:attribute name="rowspan" default="1"/>
      <xs:attribute name="align" default="left">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="left"/>
            <xs:enumeration value="center"/>
            <xs:enumeration value="right"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:element name="th">
    <xs:complexType mixed="true">
      <xs:choice>
        <xs:choice maxOccurs="unbounded">
          <xs:element ref="artset"/>
          <xs:element ref="artwork"/>
          <xs:element ref="dl"/>
          <xs:element ref="figure"/>
          <xs:element ref="ol"/>
          <xs:element ref="sourcecode"/>
          <xs:element ref="t"/>
          <xs:element ref="ul"/>
        </xs:choice>
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:element ref="bcp14"/>
          <xs:element ref="br"/>
          <xs:element ref="cref"/>
          <xs:element ref="em"/>
          <xs:element ref="eref"/>
          <xs:element ref="iref"/>
          <xs:element ref="relref"/>
          <xs:element ref="strong"/>
          <xs:element ref="sub"/>
          <xs:element ref="sup"/>
          <xs:element ref="tt"/>
          <xs:element ref="u"/>
          <xs:element ref="xref"/>
        </xs:choice>
      </xs:choice>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" type="xs:ID"/>
      <xs:attribute name="colspan" default="1"/>
      <xs:attribute name="rowspan" default="1"/>
      <xs:attribute name="align" default="left">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="left"/>
            <xs:enumeration value="center"/>
            <xs:enumeration value="right"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:element name="postamble">
    <xs:complexType mixed="true">
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element ref="cref"/>
        <xs:element ref="eref"/>
        <xs:element ref="iref"/>
        <xs:element ref="spanx"/>
        <xs:element ref="xref"/>
      </xs:choice>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="texttable">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" ref="name"/>
        <xs:element minOccurs="0" ref="preamble"/>
        <xs:element maxOccurs="unbounded" ref="ttcol"/>
        <xs:element minOccurs="0" maxOccurs="unbounded" ref="c"/>
        <xs:element minOccurs="0" ref="postamble"/>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" type="xs:ID"/>
      <xs:attribute name="title" default=""/>
      <xs:attribute name="suppress-title" default="false">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="true"/>
            <xs:enumeration value="false"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="align" default="center">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="left"/>
            <xs:enumeration value="center"/>
            <xs:enumeration value="right"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="style" default="full">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="all"/>
            <xs:enumeration value="none"/>
            <xs:enumeration value="headers"/>
            <xs:enumeration value="full"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:element name="ttcol">
    <xs:complexType mixed="true">
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element ref="cref"/>
        <xs:element ref="eref"/>
        <xs:element ref="iref"/>
        <xs:element ref="xref"/>
      </xs:choice>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="width"/>
      <xs:attribute name="align" default="left">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="left"/>
            <xs:enumeration value="center"/>
            <xs:enumeration value="right"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:element name="c">
    <xs:complexType mixed="true">
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element ref="cref"/>
        <xs:element ref="eref"/>
        <xs:element ref="iref"/>
        <xs:element ref="spanx"/>
        <xs:element ref="xref"/>
      </xs:choice>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="bcp14">
    <xs:complexType mixed="true">
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="back">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" maxOccurs="unbounded" ref="displayreference"/>
        <xs:element minOccurs="0" maxOccurs="unbounded" ref="references"/>
        <xs:element minOccurs="0" maxOccurs="unbounded" ref="section"/>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="displayreference">
    <xs:complexType>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="target" use="required" type="xs:IDREF"/>
      <xs:attribute name="to" use="required"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="references">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" ref="name"/>
        <xs:choice>
          <xs:element maxOccurs="unbounded" ref="references"/>
          <xs:choice minOccurs="0" maxOccurs="unbounded">
            <xs:element ref="reference"/>
            <xs:element ref="referencegroup"/>
          </xs:choice>
        </xs:choice>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="pn" type="xs:ID"/>
      <xs:attribute name="anchor" type="xs:ID"/>
      <xs:attribute name="title"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="reference">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" ref="stream"/>
        <xs:element ref="front"/>
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:element ref="annotation"/>
          <xs:element ref="format"/>
          <xs:element ref="refcontent"/>
          <xs:element ref="seriesInfo"/>
        </xs:choice>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" use="required" type="xs:ID"/>
      <xs:attribute name="derivedAnchor"/>
      <xs:attribute name="target"/>
      <xs:attribute name="quoteTitle" default="true">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="true"/>
            <xs:enumeration value="false"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="quote-title">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="true"/>
            <xs:enumeration value="false"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:element name="stream">
    <xs:simpleType>
      <xs:union>
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="IETF"/>
            <xs:enumeration value="IAB"/>
            <xs:enumeration value="IRTF"/>
            <xs:enumeration value="independent"/>
          </xs:restriction>
        </xs:simpleType>
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:length value="0"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:union>
    </xs:simpleType>
  </xs:element>
  <xs:element name="referencegroup">
    <xs:complexType>
      <xs:sequence>
        <xs:element maxOccurs="unbounded" ref="reference"/>
      </xs:sequence>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="anchor" use="required" type="xs:ID"/>
      <xs:attribute name="derivedAnchor"/>
      <xs:attribute name="target"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="seriesInfo">
    <xs:complexType>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="name" use="required"/>
      <xs:attribute name="value" use="required"/>
      <xs:attribute name="asciiName"/>
      <xs:attribute name="asciiValue"/>
      <xs:attribute name="status"/>
      <xs:attribute name="stream">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="IETF"/>
            <xs:enumeration value="IAB"/>
            <xs:enumeration value="IRTF"/>
            <xs:enumeration value="independent"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:element name="format">
    <xs:complexType>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
      <xs:attribute name="target"/>
      <xs:attribute name="type" use="required"/>
      <xs:attribute name="octets"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="annotation">
    <xs:complexType mixed="true">
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element ref="bcp14"/>
        <xs:element ref="cref"/>
        <xs:element ref="em"/>
        <xs:element ref="eref"/>
        <xs:element ref="iref"/>
        <xs:element ref="relref"/>
        <xs:element ref="spanx"/>
        <xs:element ref="strong"/>
        <xs:element ref="sub"/>
        <xs:element ref="sup"/>
        <xs:element ref="tt"/>
        <xs:element ref="u"/>
        <xs:element ref="xref"/>
      </xs:choice>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="refcontent">
    <xs:complexType mixed="true">
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element ref="bcp14"/>
        <xs:element ref="em"/>
        <xs:element ref="strong"/>
        <xs:element ref="sub"/>
        <xs:element ref="sup"/>
        <xs:element ref="tt"/>
      </xs:choice>
      <xs:attributeGroup ref="xml:base"/>
      <xs:attributeGroup ref="xml:lang"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="u">
    <xs:complexType mixed="true">
      <xs:attribute name="anchor" type="xs:ID"/>
      <xs:attribute name="ascii"/>
      <xs:attribute name="format" default="lit-name-num"/>
      <xs:attribute name="pn" type="xs:ID"/>
    </xs:complexType>
  </xs:element>
</xs:schema>

To ensure the official location of the v3.rnc file is:
https://github.com/ietf-tools/xml2rfc/blob/main/xml2rfc/data/v3.rnc
The included SVG schema is at:
https://github.com/ietf-tools/xml2rfc/blob/main/xml2rfc/data/SVG-1.2-RFC.rnc
The commands to generate the XSD is:
git clone https://github.com/ietf-tools/xml2rfc.git
cd xml2rfc/xml2rfc/data/
trang -I rnc -O xsd v3.rnc v3.xsd

I believe Stefano was able to parse an XSD schema, but he had to adjust the RNC source to omit some elements. I think he will attach a diff shortly and we’ll figure out what to do about it (whether there is a problem with the schema, or with Python parsing of that schema).

@strogonoff @stefanomunarini I was told by @opoudjis that XSD cannot express RNC fully:

The problem here is that XML Schema (XSD, .xsd) does not allow you to make attributes optional as a group. The Relax NG schema is trying to specify that if relation is present then version must be present too, or they must both be absent. You can't have one without the other. XML Schema 1.0 has no way to represent this so trang generalizes to a schema that will allow one to appear without the other.
Meaning that in that schema, you're having (attribute, attribute)?, and XSD only allows attribute?, attribute?.

On the LXML page (https://lxml.de/validation.html), it says:

libxml2 does not currently support the RelaxNG Compact Syntax. However, if rnc2rng is installed, lxml 3.6 and later can use it internally to parse the input schema. It recognises the .rnc file extension and also allows parsing an RNC schema from a string using RelaxNG.from_rnc_string().

Would it be possible to directly use RNC without XSD here? If not we can go with the "partially crippled" XSD.

@ronaldtse I could not manage to convert the schema using rnc2rng due to some parse errors. However, I must admit I did not investigate much the issue here, as I got pointed to use trang instead.
On the other hand, I managed to make the XSD schema parseable using lxml by deleting some elements (see diffs here) and including imported subschemas (namely imports)  in the project directory, rather than referencing them from a remote location.
I've tested it with different XML files and it works at validating the syntax.

I think the outcome here is that we can’t automatically convert and consume authoritative schema for testing purposes since it won’t parse as is, but we adjusted the XSD by hand and are testing against that. This may be enough to warrant closing this for now.

authors: ronaldtse stefanomunarini strogonoff

repo: ietf-ribose/bibxml-service


text:
Collect experimental data

Collect new experimental data with semi-automatic labeling for training and  validating anomaly detection methods.

First example of experiments for YARN PI estimator:

10 maps and 100 samples
10 maps and 1000 samples
10 maps and 10000 samples
10 maps and 100000 samples
100 maps and 100 samples
100 maps and 100000 samples

Done

source: gharchive/issue

license_type: permissive

license_source: bigquery


text:
Upgrade dependencies including example

@igaurab

Thank you :)

source: gharchive/pull-request

authors: igaurab sbu-WBT

license: MIT

license_source: github-api


text:
Add PartialEq + Clone impl to better support web frontend frameworks

Frontend web frameworks such as Yew and Dioxus require props to impl PartialEq, so that components can be rendered only if the new data is different from the old data.
I'd suggest that the cleanest way to do this is to provide an impl for PartialEq based on the output of Plot.to_json()

To enable proper functionality, we also need to implement Clone - I've added another commit to the existing PR

If #68 gets merged, we can change the PartialEq impl to something like:
serde_json::to_value(self).unwrap() == serde_json::to_value(other).unwrap()
to_value is better because it normalises the JSON representation such that field order, spaces, etc don't matter, whereas when comparing strings, they would. For example, we would expect {"text": "hi"} == {"text":"hi} to compare as true, but they compare as false in a string representation due to the difference in whitespace.

repo: igiagkiozis/plotly


text:
Rules that only differ by their separator modifier does not parse

I have a simple model:
seq1: these & are & good & friends
seq2: those | exclusive | ones

I try to parse it with this meta model:
Document: sequences*=Sequence;
Sequence: SequenceAnd | SequencePipe;
SequenceAnd: ID ':' values+=ID[eolterm '&'];
SequencePipe: ID ':' values+=ID[eolterm '|'];

The meta model checks OK, but when I try to use it on the model above I get:
Expected '&' or ID or ID or EOF at position .\model.txt:(2, 13) => 'q2: those *| exclusiv'.

To reproduce:
model.txt
and
meta.tx.txt
and run
textx check meta.tx.txt model.txt
As far as I can understand from reading the grammar this should work, but it might be a mistake on my side.

I worked around this issue with an explicit separator in the rule:
From: ```
SequenceAnd: ID ':' values+=ID[eolterm '&'];
To: ```
SequenceAnd: ID ':' values=ID '&' values+=ID[eolterm '&'];

This is indeed an interesting example.
If you run the example in debug mode with:
textx -d check meta.tx.txt model.txt

you will notice that the second line, actually just a part seq2: those is parsed with SequenceAnd as it is perfectly valid from the standpoint of that rule. You can have only one element of values. Thus the rule succeeds and the parser expect next to see either a new Sequence or end of file which doesn't happen.
This behaviour of textX is perfectly valid.
Your workaround is fine. In cases like these you might also use not or and predicate. For example:
Document: sequences*=Sequence;
Sequence: SequenceAnd | SequencePipe;
SequenceAnd: ID ':' &(ID '&') values+=ID[eolterm '&'];
SequencePipe: ID ':' values+=ID[eolterm '|'];

Notice the &(ID '&') part. This is and predicate which must match at that place in order to proceed with this rule but will not consume the input. If there is no & after the ID SequenceAnd will fail and SequencePipe will be tried and it will succeed even if there is only one element of a Sequence thus SequencePipe will be a rule matched if there is only one element of the sequence, just like in your solution.

authors: hallgrim igordejanovic

repo: igordejanovic/textX

license: mit


text:
Update SBT to 0.13.15

Remove deprecated sbt 0.12 style dependecy operators
Update libraries and sbt version to 0.13.15

Coverage remained the same at 90.19% when pulling 5c99df4ebe61ea49ec5ffa1b61fc6f41253b9b75 on canyaman:play2.5 into 63276931e74b742fae780a517ea108a30f902619 on iheartradio:master.

thanks very much!

authors: canyaman coveralls kailuowang

repo: iheartradio/play-swagger


text:
Consistent variable names in test scenarios

in our test scenario files, we use different variable names across scenarios that refer to the same concept.  For example, some tests refer to a  while others refer to an .  In both examples, they refer to a discovery service like CDS,LDS,EDS, etc.
This does not affect the functionality of the test itself, but could affect readability of our scenarios.  In the above example, someone scanning the scenarios could think there is a difference between a service and an xDS, which is an unnecessary confusion.
While our test sample is small, it would be good to establish some naming conventions for these repeated variables and concepts.  This can be done at first by just changing the current variables in our files and then, if needed, write a brief style guide for test writing.

fixed in #54

repo: ii/xds-test-harness


text:
Add Counting Sort [Python]

http://www.geeksforgeeks.org/counting-sort/
Please assign me this and add suitable labels.

@khilanravani Done.

@khilanravani Please unassign if you are not working on this.

Very sorry! Missed the update that I was already assigned

Will work on it right away..

Please reassign me... this won't happen again..

authors: Monal5031 aviaryan khilanravani

repo: iiitv/algos


text:
Insertion Sort [Go]

https://en.wikipedia.org/wiki/Insertion_sort
Please assign me this one.

You are already assigned to #234. Please complete that beforehand.


text:
错误31066

切换到了 我的资源 子目录后就是一个新的目录了，访问kindle得切换上级目录
cd ..

authors: iikira yysfwls

repo: iikira/BaiduPCS-Go


text:
Support writing of gzipped WARC files

adds GzipChannel to write data using gzip compression (optionally multi-member gzips)
implements writing per-record gzip-compressed WARCs in WarcWriter

Thanks!

authors: ato sebastian-nagel

repo: iipc/jwarc


text:
你好，我用的是next-mist主题，设置副标题后显示不出来，要怎么修改？

你好，我用的是next-mist主题，设置副标题后显示不出来，要怎么修改？

@andybroker dont understand u, write in English if not solved. If solved, close it please. Thank's!

打开themes/next/source/css/_schemes/Mist/_logo.styl 将 .site-subtitle { display: none; }注释掉

@andybroker 打开themes/next/source/css/_schemes/Mist/_logo.styl 将 .site-subtitle { display: none; }注释掉

authors: andybroker ivan-nginx loremwalker

repo: iissnan/hexo-theme-next


text:
Game difficulty

I want easy, normal, hard
easy - increase bonus frequency, decrease asteroids, enemy spawn, remove tiny asteroid
normal - something I build now
hard - decrease player ship speed, decrease bonus frequencies, increase enemy frequency

reducing the scope

repo: iivchenko/asteroids-overflow


text:
adding small delay in creating publisher

Small delay is added in the 'mqtt2primitive' function because whenever the first message is received, it creates a publisher. Since there is no delay in creating a publisher and publishing a message, the first message is always missed on the ROS topic. Adding a delay in creating the publisher solved the problem.

Is there perhaps a better way to wait for the publisher to be ready? The 200ms seems arbitrary. Maybe there is a dedicated function/attribute of the publisher.

If its problematic for the first message to be missed, perhaps a better roption is to support explicitly setting the QoS?

I believe that this https://github.com/ika-rwth-aachen/mqtt_client/pull/61 makes this unnecessary if you are willing to configure the types explicitly

These changes should be made obsolete by #61, thank you very much, anyway! Hopefully your problem is resolved now!

authors: JayHerpin lreiher vishrutsingh1


text:
Make consume() return a Result instead of a bool

The primary use case for this is so that we can return a custom error, which would tell the caller for how long they need to wait for the next attempt to succeed (think Retry-After in HTTP's Too Many Requests status).
We might come up with additional error conditions later (e.g. treat a rate-limit of 0 as completely blocking a giving key, in which case retrying does not make sense).
This is much easier now that we removed all the floating point arithmetic and use a fixed clock in tests.

@malor can you please rebase on main and push it please? it seems CI is not started for pull requests to another branches.

authors: ikalnytskyi malor

repo: ikalnytskyi/youshallnotpass


text:
🛑 Penyanyi VF V2 is down

In 789e155, Penyanyi VF V2 (https://evobot-1.nexter32.repl.co) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Penyanyi VF V2 is back up in e052e12.


text:
bug: Persistent Layouts are not "Persistent"

This seems to be an issue with the usage of createComponent() calls in a tracked scope.
An alternative will be to make use of Dynamic component, however, that could also present its own set of issues or unexpected behaviors, specially when trying to use nested layouts in the form of an array.

Resolved via #2

repo: iksaku/inertia-adapter-solid


text:
Segmentation fault when running in foreground

Hi there.
Two questions:

I'm afraid I'm getting a segmentation fault when running rapns in the foreground.  It looks like it's occurring when connecting to the apple dev gateway (trace below).

On the other hand, when I tried to run the daemon in the background, I do see (albeit only 2x) entries saying I'm connected to the gateway.  Strange thing is that if I re-run the background daemon more times I don't see anymore log entries that I have connected (again, only 2 log entries).

I'm using Ruby 1.9.2.
Trace for 1)    (above):

$ bundle exec rapns development --foreground
/Users/smthmarketable/.rvm/gems/ruby-1.9.2-head/gems/rapns-1.0.1/lib/rapns/daemon/connection.rb:80: [BUG] Segmentation fault
ruby 1.9.2p290 (2011-07-09 revision 32478) [x86_64-darwin11.0.1]

-- control frame ----------
c:0016 p:---- s:0053 b:0053 l:000052 d:000052 CFUNC  :connect
c:0015 p:0136 s:0050 b:0050 l:000049 d:000049 METHOD /Users/smthmarketable/.rvm/gems/ruby-1.9.2-head/gems/rapns-1.0.1/lib/rapns/daemon/connection.rb:80
c:0014 p:0023 s:0045 b:0045 l:000044 d:000044 METHOD /Users/smthmarketable/.rvm/gems/ruby-1.9.2-head/gems/rapns-1.0.1/lib/rapns/daemon/connection.rb:14
c:0013 p:0013 s:0042 b:0042 l:000041 d:000041 METHOD /Users/smthmarketable/.rvm/gems/ruby-1.9.2-head/gems/rapns-1.0.1/lib/rapns/daemon/delivery_handler.rb:27
c:0012 p:0012 s:0039 b:0039 l:000038 d:000038 METHOD /Users/smthmarketable/.rvm/gems/ruby-1.9.2-head/gems/rapns-1.0.1/lib/rapns/daemon/delivery_handler_pool.rb:12
c:0011 p:0042 s:0035 b:0035 l:000025 d:000034 BLOCK  /Users/smthmarketable/.rvm/gems/ruby-1.9.2-head/gems/rapns-1.0.1/lib/rapns/daemon/pool.rb:13
c:0010 p:---- s:0031 b:0031 l:000030 d:000030 FINISH
c:0009 p:---- s:0029 b:0029 l:000028 d:000028 CFUNC  :times
c:0008 p:0013 s:0026 b:0026 l:000025 d:000025 METHOD /Users/smthmarketable/.rvm/gems/ruby-1.9.2-head/gems/rapns-1.0.1/lib/rapns/daemon/pool.rb:10
c:0007 p:0297 s:0023 b:0023 l:000022 d:000022 METHOD /Users/smthmarketable/.rvm/gems/ruby-1.9.2-head/gems/rapns-1.0.1/lib/rapns/daemon.rb:46
c:0006 p:0180 s:0018 b:0018 l:002270 d:002270 TOP    /Users/smthmarketable/.rvm/gems/ruby-1.9.2-head/gems/rapns-1.0.1/bin/rapns:28
c:0005 p:---- s:0013 b:0013 l:000012 d:000012 FINISH
c:0004 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC  :load
c:0003 p:0127 s:0007 b:0007 l:002198 d:0002c0 EVAL   /Users/smthmarketable/.rvm/gems/ruby-1.9.2-head/bin/rapns:19
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:002198 d:002198 TOP
---------------------------
-- Ruby level backtrace information ----------------------------------------
/Users/smthmarketable/.rvm/gems/ruby-1.9.2-head/bin/rapns:19:in `'
/Users/smthmarketable/.rvm/gems/ruby-1.9.2-head/bin/rapns:19:in `load'
/Users/smthmarketable/.rvm/gems/ruby-1.9.2-head/gems/rapns-1.0.1/bin/rapns:28:in `'
/Users/smthmarketable/.rvm/gems/ruby-1.9.2-head/gems/rapns-1.0.1/lib/rapns/daemon.rb:46:in `start'
/Users/smthmarketable/.rvm/gems/ruby-1.9.2-head/gems/rapns-1.0.1/lib/rapns/daemon/pool.rb:10:in `populate'
/Users/smthmarketable/.rvm/gems/ruby-1.9.2-head/gems/rapns-1.0.1/lib/rapns/daemon/pool.rb:10:in `times'
/Users/smthmarketable/.rvm/gems/ruby-1.9.2-head/gems/rapns-1.0.1/lib/rapns/daemon/pool.rb:13:in `block in populate'
/Users/smthmarketable/.rvm/gems/ruby-1.9.2-head/gems/rapns-1.0.1/lib/rapns/daemon/delivery_handler_pool.rb:12:in `object_added_to_pool'
/Users/smthmarketable/.rvm/gems/ruby-1.9.2-head/gems/rapns-1.0.1/lib/rapns/daemon/delivery_handler.rb:27:in `start'
/Users/smthmarketable/.rvm/gems/ruby-1.9.2-head/gems/rapns-1.0.1/lib/rapns/daemon/connection.rb:14:in `connect'
/Users/smthmarketable/.rvm/gems/ruby-1.9.2-head/gems/rapns-1.0.1/lib/rapns/daemon/connection.rb:80:in `connect_socket'
/Users/smthmarketable/.rvm/gems/ruby-1.9.2-head/gems/rapns-1.0.1/lib/rapns/daemon/connection.rb:80:in `connect'

-- C level backtrace information -------------------------------------------

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Abort trap: 6

Any ideas?

It may be that you've somehow linked against two versions of openssl.
Are you using mysql2 or pg? Please see this gist comment and do the same.

Sorry I forgot to add the gist link. I found this blog post that will possibly help you out more though.
http://www.christopherirish.com/2011/09/02/ruby-1-9-2-segmentation-fault-and-openssl/

repo: ileitch/rapns


text:
Whether cuda environment is nesessary

Hi~ When i run this project, I meet the problrm:
Traceback (most recent call last):
  File "viewer.py", line 53, in <module>
    import second.core.box_np_ops as box_np_ops
  File "/media/vdb/下载/KittiViewer-plus-master/second/core/box_np_ops.py", line 13, in <module>
    box_ops_cc = load_pb11(["./cc/box_ops.cc"], current_dir / "box_ops_cc.so", current_dir)
  File "/media/vdb/下载/KittiViewer-plus-master/second/utils/buildtools/pybind11_build.py", line 90, in load_pb11
    arch = find_cuda_device_arch()
  File "/media/vdb/下载/KittiViewer-plus-master/second/utils/find.py", line 77, in find_cuda_device_arch
    cuda_home = find_cuda()
  File "/media/vdb/下载/KittiViewer-plus-master/second/utils/find.py", line 69, in find_cuda
    "No CUDA runtime is found, using CUDA_HOME='{}'".format(cuda_home))
RuntimeError: No CUDA runtime is found, using CUDA_HOME='None'

I wonder if this project must need cuda environment. Looking for your reply, thank you!

Thank you for your interest in the project.
Some bounding box operations are created for cuda, and that's why box_np_ops check for it.
I am uncertain if it's easy to replace them now, and, unfortunately, I cannot dedicate time for it in the near future.
If you have time to check and fix it, feel free to open a corresponding pull request.

repo: iliiliiliili/KittiViewer-plus


text:
Autocomplete-option fails when query includes regex pattern

For example, the autocomplete fails on the input + because js regex interprets that as 'repeat the last character'.
To reproduce, query +++ on the documentation page https://illright.github.io/attractions/docs/components/autocomplete
is this intended? If so, the documentation could include that detail. Or maybe this behavior could be exposed as a boolean flag.

No, that's certainly not intended. The issue is right here, where we don't escape the regex, which is a shortcoming indeed. We'll fix this in the upcoming patch release. Thanks for the report!

You are awesome! Thanks for getting to these issues. As I familiarize myself more with attractions I will try to submit my own enhancements and bug fixes but I really appreciate your hard work in the meantime.

authors: illright sallaben

repo: illright/attractions


text:
Linking issue when targeting hip

I am trying to compile an easy example with the hip backend in 0.9.0 version (latest release). I am using archlinux and I have ROCm libraries intalled in /opt from https://github.com/rocm-arch/rocm-arch repository.
In my syclcc.json I have set my default rocm-path to /opt/rocm/lib, where I have the following libraries
lrwxrwxrwx  1 root root   17 Mar  2 18:57 libamd_comgr.so -> libamd_comgr.so.1
lrwxrwxrwx  1 root root   19 Mar  2 18:57 libamd_comgr.so.1 -> libamd_comgr.so.1.9
-rwxr-xr-x  1 root root 108M Mar  2 18:57 libamd_comgr.so.1.9
-rwxr-xr-x  1 root root 1.4M Mar  2 18:59 libamdocl64.so
-rw-r--r--  1 root root 1.8M Dec 20 23:53 libbfd.a
-rwxr-xr-x  1 root root 196K Mar  2 18:59 libcltrace.so
-rw-r--r--  1 root root 277K Dec 20 23:53 libctf.a
-rw-r--r--  1 root root 268K Dec 20 23:53 libctf-nobfd.a
lrwxrwxrwx  1 root root   28 Dec 21 02:28 libhipblas.so -> ../hipblas/lib/libhipblas.so
lrwxrwxrwx  1 root root   30 Dec 21 02:28 libhipblas.so.0 -> ../hipblas/lib/libhipblas.so.0
lrwxrwxrwx  1 root root   32 Dec 21 02:28 libhipblas.so.0.1 -> ../hipblas/lib/libhipblas.so.0.1
lrwxrwxrwx  1 root root   32 Dec 21 02:29 libhipsparse.so -> ../hipsparse/lib/libhipsparse.so
lrwxrwxrwx  1 root root   34 Dec 21 02:29 libhipsparse.so.0 -> ../hipsparse/lib/libhipsparse.so.0
lrwxrwxrwx  1 root root   36 Dec 21 02:29 libhipsparse.so.0.1 -> ../hipsparse/lib/libhipsparse.so.0.1
lrwxrwxrwx  1 root root   52 Mar  7 21:16 libhsa-amd-aqlprofile64.so -> ../hsa-amd-aqlprofile/lib/libhsa-amd-aqlprofile64.so
lrwxrwxrwx  1 root root   14 Mar  2 18:34 libhsakmt.so -> libhsakmt.so.1
lrwxrwxrwx  1 root root   18 Mar  2 18:34 libhsakmt.so.1 -> libhsakmt.so.1.0.6
-rwxr-xr-x  1 root root 173K Mar  2 18:34 libhsakmt.so.1.0.6
lrwxrwxrwx  1 root root   21 Mar  2 18:56 libhsa-runtime64.so -> libhsa-runtime64.so.1
lrwxrwxrwx  1 root root   25 Mar  2 18:56 libhsa-runtime64.so.1 -> libhsa-runtime64.so.1.2.0
-rwxr-xr-x  1 root root 2.1M Mar  2 18:56 libhsa-runtime64.so.1.2.0
lrwxrwxrwx  1 root root   26 Jan  8 17:30 libMIOpen.so -> ../miopen/lib/libMIOpen.so
lrwxrwxrwx  1 root root   28 Jan  8 17:30 libMIOpen.so.1 -> ../miopen/lib/libMIOpen.so.1
lrwxrwxrwx  1 root root   30 Jan  8 17:30 libMIOpen.so.1.0 -> ../miopen/lib/libMIOpen.so.1.0
-rw-r--r--  1 root root 1.3M Dec 20 23:53 libopcodes.a
lrwxrwxrwx  1 root root   14 Mar  2 18:59 libOpenCL.so -> libOpenCL.so.1
lrwxrwxrwx  1 root root   16 Mar  2 18:59 libOpenCL.so.1 -> libOpenCL.so.1.2
-rwxr-xr-x  1 root root  34K Mar  2 18:59 libOpenCL.so.1.2
drwxr-xr-x  2 root root 4.0K Mar  7 21:19 library
lrwxrwxrwx  1 root root   38 Dec 21 22:46 librocalution_hip.so -> ../rocalution/lib/librocalution_hip.so
lrwxrwxrwx  1 root root   40 Dec 21 22:46 librocalution_hip.so.0 -> ../rocalution/lib/librocalution_hip.so.0
lrwxrwxrwx  1 root root   42 Dec 21 22:46 librocalution_hip.so.0.1 -> ../rocalution/lib/librocalution_hip.so.0.1
lrwxrwxrwx  1 root root   34 Dec 21 22:46 librocalution.so -> ../rocalution/lib/librocalution.so
lrwxrwxrwx  1 root root   36 Dec 21 22:46 librocalution.so.0 -> ../rocalution/lib/librocalution.so.0
lrwxrwxrwx  1 root root   38 Dec 21 22:46 librocalution.so.0.1 -> ../rocalution/lib/librocalution.so.0.1
lrwxrwxrwx  1 root root   28 Dec 21 00:05 librocblas.so -> ../rocblas/lib/librocblas.so
lrwxrwxrwx  1 root root   30 Dec 21 00:05 librocblas.so.0 -> ../rocblas/lib/librocblas.so.0
lrwxrwxrwx  1 root root   32 Dec 21 00:05 librocblas.so.0.1 -> ../rocblas/lib/librocblas.so.0.1
lrwxrwxrwx  1 root root   33 Dec 21 01:08 librocfft-device.so -> ../rocfft/lib/librocfft-device.so
lrwxrwxrwx  1 root root   35 Dec 21 01:08 librocfft-device.so.0 -> ../rocfft/lib/librocfft-device.so.0
lrwxrwxrwx  1 root root   37 Dec 21 01:08 librocfft-device.so.0.1 -> ../rocfft/lib/librocfft-device.so.0.1
lrwxrwxrwx  1 root root   26 Dec 21 01:08 librocfft.so -> ../rocfft/lib/librocfft.so
lrwxrwxrwx  1 root root   28 Dec 21 01:08 librocfft.so.0 -> ../rocfft/lib/librocfft.so.0
lrwxrwxrwx  1 root root   30 Dec 21 01:08 librocfft.so.0.1 -> ../rocfft/lib/librocfft.so.0.1
lrwxrwxrwx  1 root root   19 Mar  7 21:16 librocm-dbgapi.so -> librocm-dbgapi.so.0
lrwxrwxrwx  1 root root   24 Mar  7 21:16 librocm-dbgapi.so.0 -> librocm-dbgapi.so.0.42.0
-rwxr-xr-x  1 root root 522K Mar  7 21:16 librocm-dbgapi.so.0.42.0
lrwxrwxrwx  1 root root   32 Dec 20 20:24 librocm_smi64.so -> ../rocm_smi/lib/librocm_smi64.so
lrwxrwxrwx  1 root root   34 Dec 20 20:24 librocm_smi64.so.1 -> ../rocm_smi/lib/librocm_smi64.so.1
lrwxrwxrwx  1 root root   38 Dec 21 02:17 librocprofiler64.so -> ../rocprofiler/lib/librocprofiler64.so
lrwxrwxrwx  1 root root   32 Dec 21 02:18 librocsolver.so -> ../rocsolver/lib/librocsolver.so
lrwxrwxrwx  1 root root   34 Dec 21 02:18 librocsolver.so.0 -> ../rocsolver/lib/librocsolver.so.0
lrwxrwxrwx  1 root root   36 Dec 21 02:18 librocsolver.so.0.1 -> ../rocsolver/lib/librocsolver.so.0.1
lrwxrwxrwx  1 root root   32 Dec 21 02:20 librocsparse.so -> ../rocsparse/lib/librocsparse.so
lrwxrwxrwx  1 root root   34 Dec 21 02:20 librocsparse.so.0 -> ../rocsparse/lib/librocsparse.so.0
lrwxrwxrwx  1 root root   36 Dec 21 02:20 librocsparse.so.0.1 -> ../rocsparse/lib/librocsparse.so.0.1
lrwxrwxrwx  1 root root   34 Dec 21 02:07 libroctracer64.so -> ../roctracer/lib/libroctracer64.so
lrwxrwxrwx  1 root root   36 Dec 21 02:07 libroctracer64.so.1 -> ../roctracer/lib/libroctracer64.so.1
lrwxrwxrwx  1 root root   40 Dec 21 02:07 libroctracer64.so.1.0.0 -> ../roctracer/lib/libroctracer64.so.1.0.0
lrwxrwxrwx  1 root root   30 Dec 21 02:07 libroctx64.so -> ../roctracer/lib/libroctx64.so
lrwxrwxrwx  1 root root   32 Dec 21 02:07 libroctx64.so.1 -> ../roctracer/lib/libroctx64.so.1
lrwxrwxrwx  1 root root   36 Dec 21 02:07 libroctx64.so.1.0.0 -> ../roctracer/lib/libroctx64.so.1.0.0

However, syclcc complains it can't find the ROCm libraries
[1/2] Building CXX object src/deviceQuery/CMakeFiles/deviceeQuery.dir/main.cpp.o
FAILED: src/deviceQuery/CMakeFiles/deviceeQuery.dir/main.cpp.o
syclcc   -O3 -DNDEBUG -std=gnu++17 -MD -MT src/deviceQuery/CMakeFiles/deviceeQuery.dir/main.cpp.o -MF src/deviceQuery/CMakeFiles/deviceeQuery.dir/main.cpp.o.d -o src/deviceQuery/CMakeFiles/deviceeQuery.dir/main.cpp.o -c ../src/deviceQuery/main.cpp
clang-11: error: cannot find ROCm device library. Provide its path via --rocm-path or --rocm-device-lib-path, or pass -nogpulib to build without ROCm device library.
ninja: build stopped: subcommand failed.

What is wrong here?

This is due to a combination of changes w.r.t ROCm support in clang 11 and AMD the ROCM directory layout with ROCm > 3.8, causing the device bitcode libraries not to be found.
PR #474 changes default settings to account for newer ROCm versions by default. You can either merge this PR into your hipSYCL installation, or just copy-paste the syclcc settings from there into your syclcc.json.

Man... you rocm!
Seriously, you are doing a great job with hipSYCL and on top of that, support is perfect. Answering on a sunday at 10pm!

Now this one of the comments that make it all worthwhile :) Great candidate to print out and hang above my desk ;) Thank you!

Closing as I assume this was solved.

authors: illuhad jjcasmar

repo: illuhad/hipSYCL


text:
Add support for user account details update

Your checklist for this pull request
🚨Please review the guidelines for contributing to this repository.

[x] Make sure you are requesting to pull a topic/feature/bugfix branch (right side). Don't request your master!
[x] Make sure you are making a pull request against the dev branch. Also you should start your branch off dev branch.
[x] Check you have added tests that prove your fix is effective or that your feature works.
[x] Check your code additions will fail neither code linting checks nor unit test.
[x] Check you added any notable changes to the CHANGELOG.md file. (N/A)

Description
This PR addresses the backend part of issue #175. It:

Adds missing week_start column on users table and updates related User factory.
Updates UserAccountController@update to support the profile fields update.
Updates feature/UserTest class with necessary tests.

💔Thank you!
👍 Happy to help!

Codecov Report

Merging #216 into dev will increase coverage by 0.43%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##               dev     #216      +/-   ##
===========================================
+ Coverage     70.7%   71.13%   +0.43%
- Complexity     209      214       +5
===========================================
  Files           76       76
  Lines          669      679      +10
===========================================
+ Hits           473      483      +10
  Misses         196      196

Impacted Files
Coverage Δ
Complexity Δ

app/Models/User.php
16.66% <ø> (ø)
7 <0> (ø)
:arrow_down:

app/Http/Requests/UpdateUserAccount.php
100% <100%> (ø)
5 <0> (ø)
:arrow_down:

app/Http/Controllers/UserAccountController.php
100% <100%> (ø)
8 <0> (+5)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7fc1265...9db5e3e. Read the comment docs.

@josepostiga nice work man, two thing, 1) the update should be on users/{id}/profile route and 2) use update method and request()->all() instead all the conditionals. Thanks.

@Hasnayeen thank you for the appreciation. I'm happy to help.
I've made the changes you requested. Confirm that everything's fine, now.

authors: Hasnayeen codecov-io josepostiga

repo: iluminar/goodwork


text:
[BUG] 调用openai报错

openai.error.APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='api.openapi.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)')))
我已经将urllib3版本修改为1.25.11，并开启了代理，还是报错

这个仓库的代理是自己的代理，你要改一下，修改为【https://api.openai.com/v1】就好（少一个p）

感谢！

repo: imClumsyPanda/langchain-ChatGLM


text:
Add my Awesome GitHub Profile README

Please assign this task to me and add Hacktoberfest label on it.
Thanks & regards
Abhi Patel

@AbhiPatel10 Do it man! :)

Done #47, Please Check & Accept my Pull Request.
Thank you


text:
Speed and binary size of this library?

Hi thanks for this wonderful lib! I wonder (1) how fast is it, and (2) how big is the generated binary executable, compared with traditional libpng? Thank you!

Like any rust code that has a few generic structs, and links against std, it depends quite a lot on compilation options and the use. If you can avoid too many instantiations then the size is probably ~100 kB extra above the baseline of just linking against std? Honestly I can't say that I've evaluate that specifically you'll just need to try. Speed is at least comparable to libpng. Issues is also not a Q&A, we have gitter/Elements for this: https://app.element.io/#/room/#image-rs_image:gitter.im

@HeroicKatora Thank you for your reply!

If you can avoid too many instantiations then the size is probably ~100 kB extra above the baseline of just linking against std? Honestly I can't say that I've evaluate that specifically you'll just need to try.

I will try it and thank you.

Speed is at least comparable to libpng.

Wow that is not slow!

authors: HeroicKatora fzyzcjy

repo: image-rs/image-png


text:
How to use it？

For example, I have a lot of png files in a folder. How do I set the input directory and output directory?

I had the same question ^. How can we specify output folder structure?  If input looks like this static/img/**/*.gif, how can we tell the plugin to match the same recursive structure on the output?

Details to see imagemin#usage.

repo: imagemin/imagemin-pngquant


text:
liverseg

If the liver is incomplete, can this model be detected?

If the liver is incomplete due to surgical cutting, can this model be accurately segmented?

Hi,
If you have an annotated dataset of livers with surgical cutting together with standard livers, and you train the model for that, it should work properly.
Regards,
Míriam

Much appreciated!


text:
When creating a new project new journal file doesn't get noticed by watcher.

[x] Check if watcher is watching root folder
[ ] alt-p only opens project journal file if user is in a file that's part of the project when it's pressed

opened via imdone.io from a code comment on e570db4f by Jesse

https://github.com/imdone/imdone-atom/blob/3ca69cfcc218142dafd5fbabd7bc964b647880cf/todo.md#L29-L32

Issue closed with imdone.io by removing a comment.

https://github.com/imdone/imdone-atom/blob/d7f334583159f0c6e11fcd9456d69a19eed7c2c0/todo.md#L29-L36

repo: imdone/imdone-atom


text:
Lexicographic sort in table visualizations

It would be nice to be able to sort tables lexicographically instead of just by metric. This would be especially nice for time tables, since it would let you see the rows in time order.

This is fixed in the latest release :-)

authors: gianm vogievetsky

repo: implydata/pivot


text:
fix(wildcard)

支持通配符

支持通配符

支持通配符

repo: importcjj/sensitive


text:
grafana do not read downsampled thanos blocks

Hello guys.
I create downsampled 5m and 1h blocks and my grafana cannot read it, it reads only raw data from Thanos may be i miss something in configuration please help

Why it was closed? (:
I guess you found option for --query.auto-downsampling in Thanos Querier?

Hello, yes i think this option need some additional explaining because its was not clear when i read description first time

So what is the secret to get grafana showing data older than "raw data" ?
What I understand is, Grafana (Version 5.3) sits on top of Thanos Query Instance. However when I jump to Thanos Query Instance (http:/x.x.x:19191) I see the whole range of existing (raw + downsampled) data.

You can set Querier with --query.auto-downsampling on or off. This controls the default behaviour when no param is set on HTTP request (Which is the case when you use grafana)

authors: bwplotka dmitriy-lukyanchikov itarch

repo: improbable-eng/thanos


text:
add leaders data

Soluzione temporana (che è possibile modificare in qualsiasi momento)

[x] creare leaders.csv
[x] add metadata to datapackage.yaml
[x] add metadata to readme

Originally posted by @dennisangemi in https://github.com/indecis-it/indecis.it/issues/38#issuecomment-1226458948

Dati caricati. Se dovessimo modificare qualcosa apriamo nuove issue ;)

repo: indecis-it/data


text:
Automatic metadata ingestion

We would like to understand how to automatize the insertion of extended metadata during OneData ingestion (metadata are stored on the file header).
This task is fundamental in production to be executed by the OneData system instead instead of an external call from CDMI.
Any hints?
Thank you in advance,
Eva.

We have plans to embed such functionality in onedata release, but not in the near future. To make it work, @groundnuty will provide you with a script running as a daemon connected to our changes stream REST API, that listens for newly created files, scans through file headers and inserts metadata. It will remain transparent for users.
Tomasz

Thank you very much. So I wait for the script in order to understand in which format you will need the metadata from the file headers?
Please also send us documentation on how to configure and manage this script...
Cheers,
Eva.

Dear @xorver and @groundnuty ,
any news on this issue?
Thank you in advance,
Eva.

authors: evasciacca xorver

repo: indigo-dc/onedata


text:
chore(master): release 0.14.0

:robot: I have created a release beep boop
0.14.0 (2024-12-02)
Features

update PAT variable (1c531db)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v0.14.0
:sunflower:

repo: indykite/terraform-provider-indykite


text:
Rethink API?

Hi, first of all, thanks for providing this crate. I'm here to ask a question and complain about the API a bit. Sorry. :D
My question is: how to generate a mnemonic from existing key? Bip39 describes the general conversion of encoding a key into a human-friendly string. It could be used outside of Bitcoin, etc. and that was my plan. I already have a key generated.
struct Bip39 seems confusing. There is no such object as Bip39. There could be bip39:: Mnemnonic , but clamping all the functions into a struct doesn't seem to serve any purpose.
The whole crate could be just couple two functions:
fn mnemonic_to_key(&str) -> Result<Vec<u8>> and fn key_to_mnemonic(&[u8]) -> Result<String> + bit39::Result error types. Lenght of the string/vec already provides KeyType? The lang stuff could be skipped until someone actually makes an effort to implement  it? :)
Please let me know what you think, etc. I am planing to use this crate for some stuff, so I was just wondering: maybe I could make a PR or something.

So to clarify about your comment in #5.
Wouldn't it be OK to have:
struct Seed;
struct Mnemnonic

And functions/methods that do entropy -> seed (+passphrase) -> mnemonic and mnemonic (+passphrase)-> seed and then maybe, for people that really need it, under long and scary name seed -> entropy? (I actually don't need it)
I just don't understand why Bip39 has to be a one struct containing everything.

Hi again @dpc, I see what you mean by "no such object as Bip39", splitting it certainly makes sense.
My only goal is to make sure the type system enforces correct usage, for example Seed couldn't be turned back into a Mnemonic because the process of generating the seed is irreversible, and it couldn't be generated directly from entropy without going through a Mnemonic first anyway, so Mnemonic is probably the "main" type to have available.
This is partly why it's all one (poorly named) Bip39 struct at the moment, that's the "main" type.
Renaming that to Mnemonic would probably help a bit, I'll do that and then we can figure out the rest, like having it give out a separate Seed type that provides access to the bytes as well as hex.

I've refactored things a bit to accommodate cases where access to the original entropy is useful, as well as cleaned up the types so that they make more sense but still prevent incorrect use.
Mnemonic can be used to create new ones, or created from an existing phrase with from_string(), which will make sure it is OK before returning it.
Mnemonic provides access to the Seed using get_seed(), and you can get the byte or hex representation of the Seed with get_bytes() or get_hex().
There are non-allocating as_*() versions of most of those as well that provide immutable access to the value as a slice.

I've also published an alpha version of the crate so the new crate docs would be generated, it's a bit easier to see how things are arranged that way: https://docs.rs/bip39/0.3.0-alpha.1/bip39/

authors: dpc steveatinfincia


text:
[Question]: Correct way to converse with agent with Python api

Describe your problem
I follow the Python API Reference but does not work. What should be the correct way to do so.
My Code:
from ragflow_sdk import RAGFlow
api = "<my api key>"
url = "http://<my ip>:9222"
rag_object = RAGFlow(api_key=api, base_url=url)

from ragflow_sdk import Agent
AGENT_ID = "4f1464d0b6ba11efb3570242ac120006"
session = Agent.create_session(AGENT_ID,rag_object)

while True:
    question = input("\n===== User ====\n> ")
    if question.lower() == "end":
        break
    print("\n==== Miss R ====\n")

    cont = ""
    for ans in session.ask(question, stream=True):
        print(ans.content[len(cont):], end='', flush=True)
        cont = ans.content

Error:
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
Cell In[11], line 8
      5 print("\n==== Miss R ====\n")
      7 cont = ""
----> 8 for ans in session.ask(question, stream=True):
      9     print(ans.content[len(cont):], end='', flush=True)
     10     cont = ans.content

File [~/environments/my_env/lib/python3.12/site-packages/ragflow_sdk/modules/session.py:34](http://<my ip>:9956/lab/tree/my_env/lib/python3.12/site-packages/ragflow_sdk/modules/session.py#line=33), in Session.ask(self, question, stream)
     32 if json_data["data"] != True:
     33     answer = json_data["data"]["answer"]
---> 34     reference = json_data["data"]["reference"]
     35     temp_dict = {
     36         "content": answer,
     37         "role": "assistant"
     38     }
     39     if "chunks" in reference:

KeyError: 'reference'

Try to update your sdk version

authors: Feiue val-life

repo: infiniflow/ragflow


text:
[Bug]: Cancel document parsing doesn't stop the task immediately

Is there an existing issue for the same bug?

[X] I have checked the existing issues.

Branch name
main
Commit ID
800b5c7aaa6e6cfe8fa889bfc6bb01f6c8267c6a
Other environment information
No response
Actual behavior
After cancel parsing document, the parsing task seems still run in the backend, not stopped immediately.
Expected behavior
The parsing document task stopped right after cancel.
Steps to reproduce
Upload a PDF document, select the general parsing method, after the parsing started, click cancel. Noticed the CPU is still high for quite long, seems the task is still running in the backend

Additional information
No response

Yes, it's a trade-off between task running efficiency and task status transparency.
If the task is going to check being canceled or not every step, it will tear down the speed of task execution.

authors: KevinHuSh shaoyie


text:
ISPN-1606 - Data inconsistencies when a cache view installation is rolled back

https://issues.jboss.org/browse/ISPN-1606
Block new transactions the moment we see a leaver or on cache view prepare, unblock only on cache view commit.
Throw an exception if we get a cache view prepare after we stopped the cache.
We also need to fail a prepare if the response is null. It happened once in the test suite, and there was no exception to check either.

I included a commit for ISPN-1603 as well: https://issues.jboss.org/browse/ISPN-1603
Set viewTriggerThread's context classloader to the cache manager's classloader and never set it to null.

Integrated.

authors: danberindei galderz

repo: infinispan/infinispan


text:
issue with react-native link with react-native-code-push package

What's going on?
We forked ignite cli, we added below line before react-native link step
await system.spawn(`yarn add react-native-code-push@5.2.2`, {
    stdio: 'inherit'
  })

But generally react-native link react-native-code-push will ask for code-push keys, But it's skipping that step

ignite doctor results:
System
  platform           darwin
  arch               x64
  cpu                4 cores                                        Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz
  directory          /Users/pavan/Desktop/ReactNative/BoilerPlate

JavaScript
  node               9.10.1       /Users/pavan/.nvm/versions/node/v9.10.1/bin/node
  npm                5.6.0        /Users/pavan/.nvm/versions/node/v9.10.1/bin/npm
  yarn               1.3.2        /usr/local/bin/yarn

React Native
  react-native-cli   2.0.1
  app rn version     0.51.0

Ignite
  ignite             2.0.0        /usr/local/bin/ignite

Android
  java               1.8.0_162    /usr/bin/java
  android home       -            /Users/pavan/Library/Android/sdk

iOS
  xcode              9.3.1

What's stdio set to for react-native link spawn? Sounds like it might be set to ignore? Also, when expecting user input, make sure the spinner is stopped.

This issue is pretty stale, so I'm closing it. Please let me know if you still need help with it. 🙂

authors: Blargh1 SanyasiraoM jamonholmgren

repo: infinitered/ignite


text:
5.3.1 version is untagged on git/github

Hello.
I spotted 5.3.1 version on pypi and there's no tag like that here.
I'd like to update package on alpine linux repository, but we are using github tarball so I'm unable to do so.

bump?

@rhajek bump

Hi All, I will take a look next week.

The tag for version 5.3.1 is created: https://github.com/influxdata/influxdb-python/releases/tag/v5.3.1

git tag -a v5.3.1 7b0367309b118e8be97bd85af4433b25129a4618 -m 'chore(CHANGELOG): tagging release to 5.3.1'

authors: JuniorJPDJ bednar jpruciak

repo: influxdata/influxdb-python


text:
tsi inverted index may lose index data when server crash

System info: [InfluxDB 1.5, Darwin Kernel Version 16.7.0]
Steps to reproduce:

create new series
series data persist in tsl file
tsl log file use bufio.Writer module, call bufio.Writer.Write() and bufio.Writer will buffer the series index data, then if server crash, will lose up to 4KB bytes data.

Additional info: [Include gist of relevant config, logs, etc.]
I think need do bufio.Writer.Flush() in every write case.
Strictly speaking, I think may need do f.Sync() like wal writer.

Thanks for the issue and related PR @huhue!
This is has already been fixed in #9982, and will be part of the 1.6 release.

authors: e-dard huhue

repo: influxdata/influxdb