diff --git a/packages/mindplot/package.json b/packages/mindplot/package.json index 1c4a43f4..011ade7d 100644 --- a/packages/mindplot/package.json +++ b/packages/mindplot/package.json @@ -26,7 +26,7 @@ "lint": "eslint src --ext js,ts", "playground": "webpack serve --config webpack.playground.js", "cy:run": "cypress run", - "test:unit": "jest ./test/unit/export/*.ts ./test/unit/import/*.ts ./test/unit/layout/*.js", + "test:unit": "jest ./test/unit/export/*.ts ./test/unit/import/*.ts ./test/unit/layout/*.js --verbose --silent --detectOpenHandles", "test:integration": "start-server-and-test playground http-get://localhost:8083 cy:run", "test": "yarn test:unit && yarn test:integration" }, diff --git a/packages/mindplot/src/components/export/freemind/Map.ts b/packages/mindplot/src/components/export/freemind/Map.ts index fc48f34a..612a9025 100644 --- a/packages/mindplot/src/components/export/freemind/Map.ts +++ b/packages/mindplot/src/components/export/freemind/Map.ts @@ -163,7 +163,10 @@ export default class Freemap { node = new Richcontent(); if (nodeElem.getAttribute('TYPE')) node.setType(nodeElem.getAttribute('TYPE')); - if (nodeElem.lastElementChild) node.setHtml(String(nodeElem.getElementsByTagName('html')[0].outerHTML.trim())); + if (nodeElem.firstChild && nodeElem.getElementsByTagName('html')) { + const content = String(nodeElem.getElementsByTagName('html'))[0]; + node.setHtml(content); + } } return node; diff --git a/packages/mindplot/src/components/import/FreemindImporter.ts b/packages/mindplot/src/components/import/FreemindImporter.ts index 476578eb..7a06767e 100644 --- a/packages/mindplot/src/components/import/FreemindImporter.ts +++ b/packages/mindplot/src/components/import/FreemindImporter.ts @@ -240,6 +240,7 @@ export default class FreemindImporter extends Importer { // Formating text const text = this.html2Text(child.getHtml()); const noteModel: FeatureModel = FeatureModelFactory.createModel('note', { text: text || FreemindConstant.EMPTY_NOTE }); + noteModel.setId(2); currentWiseTopic.addFeature(noteModel); } } diff --git a/packages/mindplot/test/unit/import/Helper.ts b/packages/mindplot/test/unit/import/Helper.ts index 55057c85..3649b4b6 100644 --- a/packages/mindplot/test/unit/import/Helper.ts +++ b/packages/mindplot/test/unit/import/Helper.ts @@ -6,7 +6,34 @@ import { expect } from '@jest/globals'; import { diff } from 'jest-diff'; import Importer from '../../../src/components/import/Importer'; import XMLSerializerFactory from '../../../src/components/persistence/XMLSerializerFactory'; -import { parseXMLFile } from '../export/Helper'; + +export const parseXMLString = (xmlStr: string, mimeType: DOMParserSupportedType) => { + const parser = new DOMParser(); + const xmlDoc = parser.parseFromString(xmlStr, mimeType); + + // Is there any parsing error ?. + /* + if (xmlDoc.getElementsByTagName('parsererror').length > 0) { + const xmmStr = new XMLSerializer().serializeToString(xmlDoc); + console.log(xmmStr); + throw new Error(`Unexpected error parsing: ${xmlStr}. Error: ${xmmStr}`); + } + */ + + return xmlDoc; +}; + +export const parseXMLFile = (filePath: fs.PathOrFileDescriptor, mimeType: DOMParserSupportedType) => { + const stream = fs.readFileSync(filePath, { encoding: 'utf-8' }); + + let content = stream.toString(); + // Hack for SVG exported from the browser ... + if (mimeType === 'image/svg+xml') { + content = content.replace(' { const actualMindmap = await importer.import(testName, ''); @@ -21,6 +48,7 @@ export const exporterAssert = async (testName: string, importer: Importer) => { if (actualMindmap !== mindmapExpect) { const diffResult = diff(actualMindmap, mindmapExpect); console.log(diffResult); - expect(actualMindmap).toEqual(mindmapExpect); + + expect(actualMindmap.toString()).toEqual(mindmapExpect.toString()); } }; diff --git a/packages/mindplot/test/unit/import/TextImporterTestSuite.test.ts b/packages/mindplot/test/unit/import/TextImporterTestSuite.test.ts index 0ade08d5..5d764680 100644 --- a/packages/mindplot/test/unit/import/TextImporterTestSuite.test.ts +++ b/packages/mindplot/test/unit/import/TextImporterTestSuite.test.ts @@ -2,8 +2,7 @@ import path from 'path'; import fs from 'fs'; import { test } from '@jest/globals'; -import { exporterAssert } from './Helper'; -import { parseXMLFile } from '../export/Helper'; +import { exporterAssert, parseXMLFile } from './Helper'; import FreemindMap from '../../../src/components/export/freemind/Map'; import TextImporterFactory from '../../../src/components/import/TextImporterFactory'; diff --git a/packages/mindplot/test/unit/import/expected/bug3.wxml b/packages/mindplot/test/unit/import/expected/bug3.wxml new file mode 100644 index 00000000..257e8977 --- /dev/null +++ b/packages/mindplot/test/unit/import/expected/bug3.wxml @@ -0,0 +1,102 @@ + + + + Identifying new measures or investments that should be implemented. + + + Number of different innovations policy instruments existing in the region as a share of a total number representing a full typology of instruments + + + + + + + + + + + Understanding how to design the details of a particular measure and how to implement them. + + + + + + Firm's turnover from (new to firm) + product innovation (as a pecentage of total turnover) + + + + + Increase in the probability to innovate linked to ICT use + (in product innovation, process innovation, organisational innovaton, marketing innovation) + + + + Scientific articles by type of collaboration (per capita) + (international co-authoriship, domestic co-authoriship, single author) + + + + + Increase in a share of expenditures on technological + innovations in the total amount of regional firms’ expenditures, % + + + + + + + + + + Increase in th number of firms with + international/national collaboration on innovation + + + + + Highly cited scientific articles (as a percentage of + highly cited scientific article in the whole Federation) + + + + + Patents filed by public research organisations + (as a percentafe of patent application filed under PCT) + + + + + + Understanding the level of effort the region needs to take to compete on innovation and where to put this effortThis is what policy makers care about in the endWBGCRGCRper 100 population aged 25-64Amount of university and colleague +students per 10 thousands populationShare of employees with higher education in +the total amount of population at the working ageGCRGCR: the percentage of the workforce employed by foreign companies [%]. : exports as a share of total output in manufacturing and services [%]. Share of high-technology export in the total volume + of production of goods, works and servicesShare of innovation production/serivces that goes for export, +by zones (EU, US, CIS, other countriesGEMGEMGEMUNESCOCISShare of Innovative companies collaborating +with research institutions on innovationNumber of joint projects conducted by the local comapnies + and local consulting/intermediary agenciesGCRShare of expenditures on technological innovations +in the amount of salesInvestments in ICT by asset (IT equipment, + communication equipment, software)Level of energy efficiency of the regional economy +(can be measured by sectors and for the whole region)CIS, BEEPSNumber of new organizations per thousand working age population (WBI)(as a percentage of all registered corporations)Amount of domestically protected intellectual + property per 1 mln. populationNumber of intellectual property exploited by regional +enterprises per 1 mln. populationNumber of advanced ICT introduced in the budgetary organizations +(regional power, municipal bodies, social and educational organizations) Number of management innovations introduced in the budgetary organizations + (regional power, municipal bodies, social and educational organizations) Number of interactions between universities +and large companies by university sizePublications: Academic articles in international peer-reviewed + journals per 1,000 researchers [articles/1,000 researchers].Number of measures offered by the unversity within a preset range (NCET2 survey)Academic licenses: Number of licenses +per 1,000 researchers.[licenses/researcher] Number of spin-offs with external private financing +as a share of the institution's R&D budgetForeign contracts: Number of contracts with foreign industria +l companies at scientific and educational organizations +per 1,000 researchers [contracts/researchers]Revenue raised from industry R&D as a fraction +of total institutional budget (up to a cap) (design firms, IP consultants, etc.)(e.g. accelerators, incubators)Understanding which measures should be strengthened, dropped or improved, and how.WIPO SURVEY OF INTELLECTUAL PROPERTY SERVICES OF +EUROPEAN TECHNOLOGY INCUBATORSGazelle tenant: Share of tenants with +annual revenue growth of more than 20% + for each of the past four years or since formation [%]Globalization of tenants: Median share of tenant +revenues obtained from exports [%]Perception (opinion poll) of business managers + regarding public support programmesPerception of business managers in terms + of level of transparency of support measures in the regionDescription by regional business managers of the way the +select and apply for regional and federal support schemesJL: not sure how this would be measuredAverage leverage of 1rub (there would be +several programs with different leverage)Volume of attracted money per one ruble +of regional budget expenditures on innovation projectsUnderstanding what investments should be made in innovative projects.Growth of the volume of production in the cluster companies + to the volume of state support for the clusterFASIE projects: Number of projects supported +by the FASIE per 1,000 workers [awards/worker] \ No newline at end of file diff --git a/packages/mindplot/test/unit/import/expected/cdata-support.wxml b/packages/mindplot/test/unit/import/expected/cdata-support.wxml new file mode 100644 index 00000000..4d262220 --- /dev/null +++ b/packages/mindplot/test/unit/import/expected/cdata-support.wxml @@ -0,0 +1,53 @@ + + + Always ask + + + + You always check your data to see if it is correct and then you check it and organize the data that you have to make sure that it is right + + + Organize your data when you are doing an experiment + + + Always ask your self a question when analysis the data it is a good idea to do. + + + You make your hypothesis when you are making your observation. + + + Always analysis your data and keep it in order when you are doing an experiment. + + + A major factor that can change the outcome in an experiment. + + + When you change it you the see affect or the aftermath of what happened + + + A test That can be compared + + + Changes the outcome of the other variables + + + Doesnt Change at all maybe once and a while but never that often + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/mindplot/test/unit/import/expected/complex.wxml b/packages/mindplot/test/unit/import/expected/complex.wxml new file mode 100644 index 00000000..c9e716e6 --- /dev/null +++ b/packages/mindplot/test/unit/import/expected/complex.wxml @@ -0,0 +1,352 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/mindplot/test/unit/import/expected/emptyNodes.wxml b/packages/mindplot/test/unit/import/expected/emptyNodes.wxml new file mode 100644 index 00000000..9c08eb07 --- /dev/null +++ b/packages/mindplot/test/unit/import/expected/emptyNodes.wxml @@ -0,0 +1,239 @@ + + + + + + + + + objectifs journée + + "business plan" associatif ? + + + modèle / activités responsabilités + + + articulations / LOG + + + + SWOT + + + + l'entreprise a aujourd'hui un potentiel important + + compétences professionnel + + + citoyen + + + forte chance de réussite + + + + apporter des idées et propsitions à des questions sociétales + + + notre manière d"y répondre avec notamment les technlogies + + + l'opportunité et la demande sont fortes aujourd'hui, avec peu de "concurrence" + + + ensemble de ressources "rares" + + + capacités de recherche et innovation + + + motivation du groupe et sens partagé entre membres + + + professionnellement : expérience collective et partage d'outils en pratique + + + ouverture vers mode de vie attractif perso / pro + + + potentiel humain, humaniste et citoyen + + + assemblage entre atelier et outillage + + + capacité de réponder en local et en global + + + associatif : contxte de crise multimorphologique / positionne référence en réflexion et usages + + + réseau régional et mondial de l'économie de la ,connaisance + + + asso prend pied dans le monde de la recherche + + + labo de l'innovation sociopolitique + + + acteur valable avec pouvoirs et acteurs en place + + + autonomie par prestations et services + + + triptique + + éthique de la discussion + + + pari de la délégation + + + art de la décision + + + + réussir à caler leprojet en adéquation avec le contexte actuel + + + assoc : grouper des personnes qui développent le concept + + + traduire les belles pensées au niveau du citoyen + + compréhension + + + adhésion + + + + ressources contributeurs réfréents + + + reconnaissance et référence exemplaires + + + financeements suffisants pour bien exister + + + notre organisation est claire + + + prendre des "marchés émergent" + + + double stratup avec succes-story + + + engageons une activité présentielle forte, conviviale et exemplaire + + + attirer de nouveaux membres locomotives + + + pratiquons en interne et externe une gouvernance explaire etune citoyennté de rêve + + + + Risques : cauchemars, dangers + + disparition des forces vives, départ de membres actuels + + + opportunités atteignables mais difficile + + + difficultés de travailler ensemble dans la durée + + + risque de rater le train + + + sauter dans le dernier wagon et rester à la traîne + + + manquer de professionnalisme + + perte de crédibilité + + + + s'isoler entre nous et perdre le contact avec les autres acteurs + + + perdre la capacité de réponse au global + + + manque de concret, surdimension des reflexions + + + manque d'utilité socioplolitique + + + manque de nouveaux membres actifs, fidéliser + + + faire du surplace et + + manque innovation + + + + + + + ne pas vivre ce que nous affirmons + + cohérence entre langage gouvernance et la pratique + + + + groupe de base insuffisant + + + non attractifs / nouveaux + + pas ennuyants + + + + pas efficaces en com + + + trop lent, rater l'opportunité actuelle + + + débordés par "concurrences" + + + départs de didier, micvhel, rené, corinne MCD etc + + + conclits de personnes et schisme entre 2 groupes ennemis + + + groupe amicale mais très merdique + + + système autocratique despotique ou sectaire + + + + + + + + diff --git a/packages/mindplot/test/unit/import/expected/enc.wxml b/packages/mindplot/test/unit/import/expected/enc.wxml new file mode 100644 index 00000000..36358ae4 --- /dev/null +++ b/packages/mindplot/test/unit/import/expected/enc.wxml @@ -0,0 +1,188 @@ + + + + + Therecent growth of large functional trait data +bases has been fuelled by standardized protocols forthe +measurement of individual functional traits and intensive +efforts to compile trait data(Cornelissen etal. 2003; Chave etal. 2009). Nonetheless, there remains no consensusfor +the most appropriate sampling design so that traits can be +scaled from the individuals on whom measurements are +made to the community or ecosystem levels at which infer- +ences are drawn (Swenson etal. 2006,2007,Reich,Wright +& Lusk 2007;Kraft,Valencia & Ackerly 2008). + + + However, the fast pace of +development of plant trait meta-analyses also suggests that +trait acquisition in the field is a factor limiting the growth of +plant trait data bases. + + + We measured +traits for every individual tree in nine 1-ha plots in tropical +lowland rainforest (N = 4709). Each plant was sampled for +10 functional traits related to wood and leaf morphology and +ecophysiology. Here, we contrast the trait means and variances +obtained with a full sampling strategy with those of +other sampling designs used in the recent literature, which we +obtain by simulation. We assess the differences in community- +level estimates of functional trait means and variances +among design types and sampling intensities. We then contrast +the relative costs of these designs and discuss the appropriateness +of different sampling designs and intensities for +different questions and systems. + + + + + + With regard to estimating mean trait values, strategies +alternative to BRIDGE were consistently cost-effective. On +the other hand, strategies alternative to BRIDGE clearly +failed to accurately estimate the variance of trait values. This +indicates that in situations where accurate estimation of plotlevel +variance is desired, complete censuses are essential. + + Isso significa que estudos de característica de história de vida compensam? Ver nos m&m. + + + We suggest that, in these studies, +the investment in complete sampling may be worthwhile +for at least some traits. + + Falar que isso corrobora nossa sugestão de utilizar poucas medidas, mas que elas sejam confiáveis. + + + + + Here, we develop a new approach that links functional attributes +of tree species with studies of forest recovery and regional +land-use transitions (Chazdon et al. 2007). Grouping species according +to their functional attributes or demographic rates provides +insight into both applied and theoretical questions, such as selecting +species for reforestation programs, assessing ecosystem services, and +understanding community assembly processes in tropical forests +(Diaz et al. 2007, Kraft et al. 2008). + + + Since we have data on leaf +and wood functional traits for only a subset of the species in our +study sites, we based our functional type classification on information +for a large number of tree species obtained through vegetation +monitoring studies. + + + + Our approach avoided preconceived notions of successional +behavior or shade tolerance of tree species by developing an objective +and independent classification of functional types based on vegetation +monitoring data from permanent sample plots in mature and +secondary forests of northeastern Costa Rica (Finegan et al. 1999, +Chazdon et al. 2007).We apply an independent, prior classification +of 293 tree species from our study region into five functional types, based on two species attributes: canopy strata and diameter growth +rates for individuals Z10 cm dbh (Finegan et al. 1999, Salgado- +Negret 2007). + + + Our results demonstrate strong linkages between functional +types defined by adult height and growth rates of large trees and +colonization groups based on the timing of seedling, sapling, and +tree recruitment in secondary forests. + + + These results allow us to move beyond earlier conceptual +frameworks of tropical forest secondary succession developed +by Finegan (1996) and Chazdon (2008) based on subjective groupings, +such as pioneers and shade-tolerant species (Swaine & +Whitmore 1988). + + + Reproductive traits, such as dispersal mode, pollination mode, +and sexual system, were ultimately not useful in delimiting tree +functional types for the tree species examined here (Salgado-Negret +2007). Thus, although reproductive traits do vary quantitatively in +abundance between secondary and mature forests in our landscape +(Chazdon et al. 2003), they do not seem to be important drivers of +successional dynamics of trees Z10 cm dbh. For seedlings, however, +dispersal mode and seed size are likely to play an important +role in community dynamics during succession (Dalling&Hubbell +2002). + + + Our classification of colonization groups defies the traditional +dichotomy between ‘late successional’ shade-tolerant and ‘early successional’ +pioneer species. Many tree species, classified here as +regenerating pioneers on the basis of their population structure in +secondary forests, are common in both young secondary forest and +mature forests in this region (Guariguata et al. 1997), and many are +important timber species (Vilchez et al. 2008). These generalists are +by far the most abundant species of seedlings and saplings, conferring +a high degree of resilience in the wet tropical forests of NE +Costa Rica (Norden et al. 2009, Letcher & Chazdon 2009). The +high abundance of regenerating pioneers in seedling and sapling +size classes clearly shows that species with shade-tolerant seedlings +can also recruit as trees early in succession. For these species, early +tree colonization enhances seedling and sapling recruitment during +the first 20–30 yr of succession, due to local seed rain. Species +abundance and size distribution depend strongly on chance colonization +events early in succession (Chazdon 2008). Other studies +have shown that mature forest species are able to colonize early in +succession (Finegan 1996, van Breugel et al. 2007, Franklin & Rey +2007, Ochoa-Gaona et al. 2007), emphasizing the importance of +initial floristic composition in the determination of successional +pathways and rates of forest regrowth. On the other hand, significant +numbers of species in our sites (40% overall and the majority +of rare species) colonized only after canopy closure, and these species +may not occur as mature individuals until decades after agricultural +abandonment. + + + Classifying functional types +based on functional traits with low plasticity, such as wood density +and seed size, could potentially serve as robust proxies for demographic +variables (Poorter et al. 2008, Zhang et al. 2008). + + + CONDIT, R., S. P. HUBBELL, AND R. B. FOSTER. 1996. Assessing the response of +plant functional types in tropical forests to climatic change. J. Veg. Sci. +7: 405–416. +DALLING, J. S., AND S. P. HUBBELL. 2002. Seed size, growth rate and gap microsite +conditions as determinants of recruitment success for pioneer species. +J. Ecol. 90: 557–568. +FINEGAN, B. 1996. Pattern and process in neotropical secondary forests: The first +100 years of succession. Trends Ecol. Evol. 11: 119–124. +POORTER, L., S. J. WRIGHT, H. PAZ, D. D. ACKERLY, R. CONDIT, G. +IBARRA-MANRI´QUEZ, K. E. HARMS, J. C. LICONA, M.MARTI´NEZ-RAMOS, +S. J. MAZER, H. C. MULLER-LANDAU, M. PEN˜ A-CLAROS, C. O. WEBB, +AND I. J. WRIGHT. 2008. Are functional traits good predictors of demographic +rates? Evidence from five Neotropical forests. Ecology 89: +1908–1920. +ZHANG, Z. D., R. G. ZANG, AND Y. D. QI. 2008. Spatiotemporal patterns and +dynamics of species richness and abundance of woody plant functional +groups in a tropical forest landscape of Hainan Island, South China. +J. Integr. Plant Biol. 50: 547–558. + + + + + + + + + + \ No newline at end of file diff --git a/packages/mindplot/test/unit/import/expected/i18n.wxml b/packages/mindplot/test/unit/import/expected/i18n.wxml new file mode 100644 index 00000000..678c2c6c --- /dev/null +++ b/packages/mindplot/test/unit/import/expected/i18n.wxml @@ -0,0 +1,15 @@ + + + + i18n + + Este es un é con acento + + + Este es una ñ + + + 這是一個樣本 Japanise。 + + + diff --git a/packages/mindplot/test/unit/import/expected/i18n2.wxml b/packages/mindplot/test/unit/import/expected/i18n2.wxml new file mode 100644 index 00000000..94ce5659 --- /dev/null +++ b/packages/mindplot/test/unit/import/expected/i18n2.wxml @@ -0,0 +1,14 @@ + + + + أَبْجَدِيَّة عَرَبِيَّة + + أَبْجَدِيَّة عَرَبِ + This is a not in languange أَبْجَدِيَّة عَرَبِ + + + Long text node: + أَبْجَدِيَّة عَرَب + + + diff --git a/packages/mindplot/test/unit/import/expected/issue.wxml b/packages/mindplot/test/unit/import/expected/issue.wxml new file mode 100644 index 00000000..e957fa3d --- /dev/null +++ b/packages/mindplot/test/unit/import/expected/issue.wxml @@ -0,0 +1,120 @@ + + + + Hardware +(componentes físicos) + + Entrada de datos + + + Ratón, Teclado, Joystick, +Cámara digital, Micrófono, Escáner. + + + + + Monitor, Impresora, Bocinas, Plóter. + + + + + + Disquete, Disco compacto, DVD, +BD, Disco duro, Memoria flash. + + + + + Software +(Programas y datos con los que funciona la computadora) + + + Software de Sistema:Permite el entendimiento +entre el usuario y la maquina. + + + + + + Software de Aplicación: Permite hacer hojas de +calculo navegar en internet, base de datos, etc. + + + + + + + Software de Desarrollo + + + + + + + PDA + + + + + + + + + + + Memoria RAM + + + + Unidades ópticas + + + + Tarjeta Madre + + + + Microprocesador + + + + Disco Duro + + + + + Máquina electrónica que sirve para: escribir, dibujar, pintar, +escuchar música, ver videos, calcular, comunicarnos con otras personas, etc- + + + + + \ No newline at end of file diff --git a/packages/mindplot/test/unit/import/expected/npe.wxml b/packages/mindplot/test/unit/import/expected/npe.wxml new file mode 100644 index 00000000..359233bb --- /dev/null +++ b/packages/mindplot/test/unit/import/expected/npe.wxml @@ -0,0 +1,51 @@ + + + + + + + Beneficios a los empleados,impuestos a la utilidad, arrendamientos y capitalización de resultado integral . + + + + + + Tratamiento contable de los gastos de registro, colocación, unidades de inversión, aplicación supletoria etc. + + + + + + + + + + + + + + + Agricultura y donativos recibidos u otorgados con propósitos no lucrativos. + + + + + + + + + + + + + + + + + diff --git a/packages/mindplot/test/unit/import/expected/process.wxml b/packages/mindplot/test/unit/import/expected/process.wxml new file mode 100644 index 00000000..b423097e --- /dev/null +++ b/packages/mindplot/test/unit/import/expected/process.wxml @@ -0,0 +1,225 @@ + + + + California + + Northern California + + Oakland/Berkeley + + + San Mateo + + + Other North + + + San Francisco + + + Santa Clara + + + Marin/Napa/Solano + + + + Hawaii + + + Southern California + + Los Angeles + + + Anaheim/Santa Ana + + + Ventura + + + Other South + + + + Policy Bodies + + Advocacy + + AAO + + + ASCRS + + + EBAA + + + + Military + + + United Network for Organ Sharing + + + Kaiser Hospital System + + + University of California System + + + CMS + + Medicare Part A + + + Medicare Part B + + + + + Corneal Tissue OPS + + Transplant Bank International + + Orange County Eye and Transplant Bank + + + Northern California Transplant Bank + + In 2010, 2,500 referrals forwarded to OneLegacy + + + + Doheny Eye and Tissue Transplant Bank + + + + + OneLegacy + + In 2010, 11,828 referrals + + + + San Diego Eye Bank + + In 2010, 2,555 referrals + + + + California Transplant Donor Network + + + California Transplant Services + + In 2010, 0 referrals + + + + Lifesharing + + + DCI Donor Services + + Sierra Eye and Tissue Donor Services + + In 2010, 2.023 referrals + + + + + SightLife + + + + Tools + + Darthmouth Atlas of Health + + + HealthLandscape + + + + QE Medicare + + + CMS Data + + + Ambulatory Payment Classification + + CPT's which don't allow V2785 + + Ocular Reconstruction Transplant + + 65780 (amniotic membrane tranplant + + + 65781 (limbal stem cell allograft) + + + 65782 (limbal conjunctiva autograft) + + + + Endothelial keratoplasty + + 65756 + + + + Epikeratoplasty + + 65767 + + + + + Anterior lamellar keratoplasty + + 65710 + + + + Processing, preserving, and transporting corneal tissue + + V2785 + + + Laser incision in recepient + + 0290T + + + + + Laser incision in donor + + 0289T + + + + Penetrating keratoplasty + + 65730 (in other) + + + 65755 (in pseudoaphakia) + + + 65750 (in aphakia) + + + + + + + diff --git a/packages/mindplot/test/unit/import/expected/sample3.wxml b/packages/mindplot/test/unit/import/expected/sample3.wxml new file mode 100644 index 00000000..251d41cc --- /dev/null +++ b/packages/mindplot/test/unit/import/expected/sample3.wxml @@ -0,0 +1,3 @@ +5 min tutorial video ? +Follow the link !Press "enter" to add a +Sibling \ No newline at end of file diff --git a/packages/mindplot/test/unit/import/expected/sample4.wxml b/packages/mindplot/test/unit/import/expected/sample4.wxml new file mode 100644 index 00000000..15beda65 --- /dev/null +++ b/packages/mindplot/test/unit/import/expected/sample4.wxml @@ -0,0 +1,3 @@ +5 min tutorial video ? +Follow the link !Press "enter" to add a +Sibling \ No newline at end of file diff --git a/packages/mindplot/test/unit/import/expected/welcome.wxml b/packages/mindplot/test/unit/import/expected/welcome.wxml new file mode 100644 index 00000000..b570a101 --- /dev/null +++ b/packages/mindplot/test/unit/import/expected/welcome.wxml @@ -0,0 +1,70 @@ + + + + + 5 min tutorial video ? +Follow the link ! + + + + + + + + Press "enter" to add a +Sibling + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/mindplot/test/unit/import/input/bug3.mm b/packages/mindplot/test/unit/import/input/bug3.mm new file mode 100644 index 00000000..0a19d68b --- /dev/null +++ b/packages/mindplot/test/unit/import/input/bug3.mm @@ -0,0 +1,1030 @@ + + + + + + + + +

Identifying new measures or investments that should be implemented.

+ + +
+ + + + + + + +

Number of different innovations policy instruments existing in the region as a share of a total number representing a full typology of instruments

+ + +
+
+ + + + + + + + + + + + + +

Understanding how to design the details of a particular measure and how to implement them.

+ + +
+ + + + + + + + + + +

Firms turnover from (new to firm)

+

product innovation (as a pecentage of total turnover)

+ + +
+ +
+ + + + + +

Increase in the probability to innovate linked to ICT use

+

(in product innovation, process innovation, organisational innovaton, marketing innovation)

+ + +
+
+ + + + + +

Scientific articles by type of collaboration (per capita)

+

(international co-authoriship, domestic co-authoriship, single author)

+ + +
+ +
+ + + + + +

Increase in a share of expenditures on technological

+

innovations in the total amount of regional firms’ expenditures, %

+ + +
+ +
+ + + + + + + + + + + +

Increase in th number of firms with

+

international/national collaboration on innovation

+ + +
+ +
+ + + + + +

Highly cited scientific articles (as a percentage of

+

highly cited scientific article in the whole Federation)

+ + +
+ +
+ + + + + +

Patents filed by public research organisations

+

(as a percentafe of patent application filed under PCT)

+ + +
+ +
+ + + + + + + + + + + + + + +
+
+ + + + + +

Understanding the level of effort the region needs to take to compete on innovation and where to put this effort

+ + +
+ + + + + + +

This is what policy makers care about in the end

+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

WB

+ + +
+ + + +
+ + + + + +

GCR

+ + +
+
+ + + + + + +

GCR

+ + +
+ + + +
+ + + + + + +

per 100 population aged 25-64

+ + +
+ +
+ + + + + + + + +

Amount of university and colleague

+

students per 10 thousands population

+ + +
+
+ + + + + +

Share of employees with higher education in

+

the total amount of population at the working age

+ + +
+
+ + + + + + + + + + + + + + +

GCR

+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GCR

+ + +
+
+ + + + + + + + + + + + + + + + +

: the percentage of the workforce employed by foreign companies [%].

+ + +
+
+ + + + + + + + + + +

: exports as a share of total output in manufacturing and services [%].

+ + +
+ +
+ + + + + +

Share of high-technology export in the total volume

+

of production of goods, works and services

+ + +
+ +
+ + + + + +

Share of innovation production/serivces that goes for export,

+

by zones (EU, US, CIS, other countries

+ + +
+ +
+
+ + + + + + + + +

GEM

+ + +
+
+ + + + + +

GEM

+ + +
+
+ + + + + +

GEM

+ + +
+
+
+ + + + + + + +

UNESCO

+ + +
+
+ + + + + +

CIS

+ + +
+
+ + + + + +

Share of Innovative companies collaborating

+

with research institutions on innovation

+ + +
+
+ + + + + +

Number of joint projects conducted by the local comapnies

+

and local consulting/intermediary agencies

+ + +
+
+ + + + + + + + +

GCR

+ + +
+
+ + + + + +

Share of expenditures on technological innovations

+

in the amount of sales

+ + +
+
+ + + + + + + + +

Investments in ICT by asset (IT equipment,

+

communication equipment, software)

+ + +
+
+ + + + + + + +

Level of energy efficiency of the regional economy

+

(can be measured by sectors and for the whole region)

+ + +
+ +
+ + + +
+ + + + + + + + +

CIS, BEEPS

+ + +
+
+ + + + + + + + + + + + + + + + + + + + +

Number of new organizations per thousand working age population (WBI)

+ + +
+
+ + + + + +

(as a percentage of all registered corporations)

+ + +
+
+ + + + + + + + + +

Amount of domestically protected intellectual

+

property per 1 mln. population

+ + +
+
+ + + + + + + +

Number of intellectual property exploited by regional

+

enterprises per 1 mln. population

+ + +
+ +
+ + + + + + + + + + + + + +

Number of advanced ICT introduced in the budgetary organizations

+

(regional power, municipal bodies, social and educational organizations)

+ + +
+
+ + + + + + +

Number of management innovations introduced in the budgetary organizations

+

(regional power, municipal bodies, social and educational organizations)

+ + +
+
+
+
+ + + + + + + + +

Number of interactions between universities

+

and large companies by university size

+ + +
+ +
+
+ + + + + + + + + + + + + + +

Publications: Academic articles in international peer-reviewed

+

journals per 1,000 researchers [articles/1,000 researchers].

+ + +
+
+
+ + + + + + + + +

Number of measures offered by the unversity within a preset range (NCET2 survey)

+ + +
+
+
+ + + + + + + +

Academic licenses: Number of licenses

+

per 1,000 researchers.[licenses/researcher]

+ + +
+
+
+ + + + 1:146: unclosed tag: p + + + + + + + + + + +

Foreign contracts: Number of contracts with foreign industria

+

l companies at scientific and educational organizations

+

per 1,000 researchers [contracts/researchers]

+ + +
+
+ + + + 1:142: unclosed tag: p + + + + + +
+ + + + + + +

(design firms, IP consultants, etc.)

+ + +
+
+ + + + + +

(e.g. accelerators, incubators)

+ + +
+
+ + + + + + + + + + + + + + + + + + + + + +

Understanding which measures should be strengthened, dropped or improved, and how.

+ + +
+ + + + + + + + + + +

WIPO SURVEY OF INTELLECTUAL PROPERTY SERVICES OF

+

EUROPEAN TECHNOLOGY INCUBATORS

+ + +
+
+ + + + + + +

Gazelle tenant: Share of tenants with

+

annual revenue growth of more than 20%

+

for each of the past four years or since formation [%]

+ + +
+
+ + + + + +

Globalization of tenants: Median share of tenant

+

revenues obtained from exports [%]

+ + +
+
+
+ + + + + + + + + + + + + +

Perception (opinion poll) of business managers

+

regarding public support programmes

+ + +
+
+
+ + + + + + +

Perception of business managers in terms

+

of level of transparency of support measures in the region

+ + +
+ +
+
+ + + + + +

Description by regional business managers of the way the

+

select and apply for regional and federal support schemes

+ + +
+ +
+
+ + + + + + + + + + + + + +

JL: not sure how this would be measured

+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Average leverage of 1rub (there would be

+

several programs with different leverage)

+ + +
+ +
+ + + + + +

Volume of attracted money per one ruble

+

of regional budget expenditures on innovation projects

+ + +
+ +
+
+ +
+ + + + + +

Understanding what investments should be made in innovative projects.

+ + +
+ + + + + + + + + + + + + + + +

Growth of the volume of production in the cluster companies

+

to the volume of state support for the cluster

+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

FASIE projects: Number of projects supported

+

by the FASIE per 1,000 workers [awards/worker]

+ + +
+
+
+
+
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/mindplot/test/unit/import/input/cdata-support.mm b/packages/mindplot/test/unit/import/input/cdata-support.mm new file mode 100644 index 00000000..99cdd7d4 --- /dev/null +++ b/packages/mindplot/test/unit/import/input/cdata-support.mm @@ -0,0 +1,12 @@ + + + + + + +

Always ask

+ + +
+
+
\ No newline at end of file diff --git a/packages/mindplot/test/unit/import/input/complex.mm b/packages/mindplot/test/unit/import/input/complex.mm new file mode 100644 index 00000000..952ac68b --- /dev/null +++ b/packages/mindplot/test/unit/import/input/complex.mm @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

HR Vision: Freeform Solutions is successful at its mission, sustainable as an organization AND is a great place to work.

+

HR Mission: To provide a positive HR service experience for applicants and employees, and collaborate with departments to recruit, develop, support, and retain diverse and talented employees who are the key to Freeform’s reputation and success.

+ + +
+ +
+ + + + + + + + + + + + + + + +
\ No newline at end of file diff --git a/packages/mindplot/test/unit/import/input/emptyNodes.mm b/packages/mindplot/test/unit/import/input/emptyNodes.mm new file mode 100644 index 00000000..0a685dc2 --- /dev/null +++ b/packages/mindplot/test/unit/import/input/emptyNodes.mm @@ -0,0 +1,116 @@ + + + + + + +

+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
\ No newline at end of file diff --git a/packages/mindplot/test/unit/import/input/enc.mm b/packages/mindplot/test/unit/import/input/enc.mm new file mode 100644 index 00000000..48f63d6a --- /dev/null +++ b/packages/mindplot/test/unit/import/input/enc.mm @@ -0,0 +1,216 @@ + + + + + + + 1:590: disallowed character in entity name. + + + + + + + +

However, the fast pace of

+

development of plant trait meta-analyses also suggests that

+

trait acquisition in the field is a factor limiting the growth of

+

plant trait data bases.

+ + +
+
+ + + + + +

We measured

+

traits for every individual tree in nine 1-ha plots in tropical

+

lowland rainforest (N = 4709). Each plant was sampled for

+

10 functional traits related to wood and leaf morphology and

+

ecophysiology. Here, we contrast the trait means and variances

+

obtained with a full sampling strategy with those of

+

other sampling designs used in the recent literature, which we

+

obtain by simulation. We assess the differences in community-

+

level estimates of functional trait means and variances

+

among design types and sampling intensities. We then contrast

+

the relative costs of these designs and discuss the appropriateness

+

of different sampling designs and intensities for

+

different questions and systems.

+ + +
+
+ + + + + + + + +

With regard to estimating mean trait values, strategies

+

alternative to BRIDGE were consistently cost-effective. On

+

the other hand, strategies alternative to BRIDGE clearly

+

failed to accurately estimate the variance of trait values. This

+

indicates that in situations where accurate estimation of plotlevel

+

variance is desired, complete censuses are essential.

+ + +
+ + 1:134: unclosed tag: p + +
+ + + + + +

We suggest that, in these studies,

+

the investment in complete sampling may be worthwhile

+

for at least some traits.

+ + +
+ + + + +

Falar que isso corrobora nossa sugestão de utilizar poucas medidas, mas que elas sejam confiáveis.

+ + +
+
+
+ + + + + + + +

Here, we develop a new approach that links functional attributes

+

of tree species with studies of forest recovery and regional

+

land-use transitions (Chazdon et al. 2007). Grouping species according

+

to their functional attributes or demographic rates provides

+

insight into both applied and theoretical questions, such as selecting

+

species for reforestation programs, assessing ecosystem services, and

+

understanding community assembly processes in tropical forests

+

(Diaz et al. 2007, Kraft et al. 2008).

+ + +
+
+ + + + + +

Since we have data on leaf

+

and wood functional traits for only a subset of the species in our

+

study sites, we based our functional type classification on information

+

for a large number of tree species obtained through vegetation

+

monitoring studies.

+ + +
+
+ + + + + + +

Our approach avoided preconceived notions of successional

+

behavior or shade tolerance of tree species by developing an objective

+

and independent classification of functional types based on vegetation

+

monitoring data from permanent sample plots in mature and

+

secondary forests of northeastern Costa Rica (Finegan et al. 1999,

+

Chazdon et al. 2007).We apply an independent, prior classification

+

of 293 tree species from our study region into five functional types, based on two species attributes: canopy strata and diameter growth

+

rates for individuals Z10 cm dbh (Finegan et al. 1999, Salgado-

+

Negret 2007).

+ + +
+
+ + + + + +

Our results demonstrate strong linkages between functional

+

types defined by adult height and growth rates of large trees and

+

colonization groups based on the timing of seedling, sapling, and

+

tree recruitment in secondary forests.

+ + +
+
+ + + 1:325: unclosed tag: p + + + + + 1:691: unclosed tag: p + + + + + 1:1875: unclosed tag: p + + + + + + + +

Classifying functional types

+

based on functional traits with low plasticity, such as wood density

+

and seed size, could potentially serve as robust proxies for demographic

+

variables (Poorter et al. 2008, Zhang et al. 2008).

+ + +
+
+ + + + + +

CONDIT, R., S. P. HUBBELL, AND R. B. FOSTER. 1996. Assessing the response of

+

plant functional types in tropical forests to climatic change. J. Veg. Sci.

+

7: 405–416.

+

DALLING, J. S., AND S. P. HUBBELL. 2002. Seed size, growth rate and gap microsite

+

conditions as determinants of recruitment success for pioneer species.

+

J. Ecol. 90: 557–568.

+

FINEGAN, B. 1996. Pattern and process in neotropical secondary forests: The first

+

100 years of succession. Trends Ecol. Evol. 11: 119–124.

+

POORTER, L., S. J. WRIGHT, H. PAZ, D. D. ACKERLY, R. CONDIT, G.

+

IBARRA-MANRI´QUEZ, K. E. HARMS, J. C. LICONA, M.MARTI´NEZ-RAMOS,

+

S. J. MAZER, H. C. MULLER-LANDAU, M. PEN˜ A-CLAROS, C. O. WEBB,

+

AND I. J. WRIGHT. 2008. Are functional traits good predictors of demographic

+

rates? Evidence from five Neotropical forests. Ecology 89:

+

1908–1920.

+

ZHANG, Z. D., R. G. ZANG, AND Y. D. QI. 2008. Spatiotemporal patterns and

+

dynamics of species richness and abundance of woody plant functional

+

groups in a tropical forest landscape of Hainan Island, South China.

+

J. Integr. Plant Biol. 50: 547–558.

+

+ + +
+
+
+ + + + + + + +
\ No newline at end of file diff --git a/packages/mindplot/test/unit/import/input/i18n.mm b/packages/mindplot/test/unit/import/input/i18n.mm new file mode 100644 index 00000000..29b35329 --- /dev/null +++ b/packages/mindplot/test/unit/import/input/i18n.mm @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/packages/mindplot/test/unit/import/input/i18n2.mm b/packages/mindplot/test/unit/import/input/i18n2.mm new file mode 100644 index 00000000..40e022e5 --- /dev/null +++ b/packages/mindplot/test/unit/import/input/i18n2.mm @@ -0,0 +1,25 @@ + + + + + + + +

This is a not in languange أَبْجَدِيَّة عَرَبِ

+ + +
+
+ + + + + +

Long text node:

+

أَبْجَدِيَّة عَرَب

+ + +
+
+
+
\ No newline at end of file diff --git a/packages/mindplot/test/unit/import/input/issue.mm b/packages/mindplot/test/unit/import/input/issue.mm new file mode 100644 index 00000000..1586b623 --- /dev/null +++ b/packages/mindplot/test/unit/import/input/issue.mm @@ -0,0 +1,187 @@ + + + + + + + + + +

Hardware

+

(componentes físicos)

+ + +
+ + + + + + + +

Entrada de datos

+

+ + +
+ + + + + + + +

Ratón, Teclado, Joystick,

+

Cámara digital, Micrófono, Escáner.

+ + +
+ + +
+
+ + + + + + + + +

Monitor, Impresora, Bocinas, Plóter.

+

+ + +
+ + +
+
+ + + + + + + + +

Disquete, Disco compacto, DVD,

+

BD, Disco duro, Memoria flash.

+ + +
+ + +
+
+
+ + + + + +

Software

+

(Programas y datos con los que funciona la computadora)

+

+ + +
+ + + + + + + +

Software de Sistema:Permite el entendimiento

+

entre el usuario y la maquina.

+ + +
+ + + + + + + + + + + + + + +
+ + + + + +

Software de Aplicación: Permite hacer hojas de

+

calculo navegar en internet, base de datos, etc.

+ + +
+ + + + + + + + + + + + + + + + + + +
+ + + + + +

Software de Desarrollo

+

+ + +
+ + +
+
+ + + + + + + + + + +

PDA

+

+ + +
+ +
+ + + + + + + + + +
+
+
\ No newline at end of file diff --git a/packages/mindplot/test/unit/import/input/npe.mm b/packages/mindplot/test/unit/import/input/npe.mm new file mode 100644 index 00000000..1bc47622 --- /dev/null +++ b/packages/mindplot/test/unit/import/input/npe.mm @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/packages/mindplot/test/unit/import/input/process.mm b/packages/mindplot/test/unit/import/input/process.mm new file mode 100644 index 00000000..376f942a --- /dev/null +++ b/packages/mindplot/test/unit/import/input/process.mm @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/mindplot/test/unit/import/input/sample3.mm b/packages/mindplot/test/unit/import/input/sample3.mm new file mode 100644 index 00000000..a91075fc --- /dev/null +++ b/packages/mindplot/test/unit/import/input/sample3.mm @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/packages/mindplot/test/unit/import/input/sample4.mm b/packages/mindplot/test/unit/import/input/sample4.mm new file mode 100644 index 00000000..a91075fc --- /dev/null +++ b/packages/mindplot/test/unit/import/input/sample4.mm @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/packages/mindplot/test/unit/import/input/welcome.mm b/packages/mindplot/test/unit/import/input/welcome.mm new file mode 100644 index 00000000..d4497d04 --- /dev/null +++ b/packages/mindplot/test/unit/import/input/welcome.mm @@ -0,0 +1,81 @@ + + + + + + + + +

5 min tutorial video ?

+

Follow the link !

+ + +
+ + +
+ + + + + + + + + +

Press "enter" to add a

+

Sibling

+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
\ No newline at end of file