<commit_before>/**
 *  Copyright 2014 Universite Paris Ouest and Sorbonne Universites, Univ. Paris 06 - CNRS UMR 7606 (LIP6)
 *
 *  All rights reserved.   This program and the accompanying materials
 *  are made available under the terms of the Eclipse Public License v1.0
 *  which accompanies this distribution, and is available at
 *  http://www.eclipse.org/legal/epl-v10.html
 *
 *  Project leader / Initial Contributor:
 *    <NAME> - <<EMAIL>>
 *
 *  Contributors:
 *    ${ocontributors} - <$oemails}>
 *
 *  Mailing list:
 *    <EMAIL>
 */
package fr.lip6.move.pnml2bpn.export.impl;

/**
 * A set of in-memory XPATH queries used to parsing PNML.
 * @author lom
 *
 */
public final class PNMLPaths {

	private PNMLPaths() {
		super();
	}

	public static final String PTNET_TYPE = "ptnet";
	
	public static final String ID_ATTR = "id";
	
	public static final String SRC_ATTR = "source";
	
	public static final String TRG_ATTR = "target";
	
	public static final String TYPE_ATTR = "type";
	
	public static final String NETS_PATH = "/pnml/net";
	
	public static final String PAGES_PATH = NETS_PATH + "/page";
	
	public static final String PLACES_PATH = PAGES_PATH + "/place";
	
	public static final String PLACES_MARKING = PLACES_PATH + "/initialMarking[text > 0]";
	
	public static final String PLACES_PATH_EXCEPT_MKG = PAGES_PATH + "/child::place[not(child::initialMarking)]" 
			+ " | " + PLACES_PATH + "/initialMarking[text <= 0]";
	
	
	public static final String TRANSITIONS_PATH = PAGES_PATH + "/transition";
	
	public static final String ARCS_PATH = PAGES_PATH + "/arc";

	public static final String COUNT_PLACES_PATH = "count(" + PLACES_PATH + ")";

	public static final String COUNT_TRANSITIONS_PATH = "count(" + TRANSITIONS_PATH + ")";

}<commit_msg>debugged path expr to count marked places<commit_after>/**
 *  Copyright 2014 Universite Paris Ouest and Sorbonne Universites, Univ. Paris 06 - CNRS UMR 7606 (LIP6)
 *
 *  All rights reserved.   This program and the accompanying materials
 *  are made available under the terms of the Eclipse Public License v1.0
 *  which accompanies this distribution, and is available at
 *  http://www.eclipse.org/legal/epl-v10.html
 *
 *  Project leader / Initial Contributor:
 *    <NAME> - <<EMAIL>>
 *
 *  Contributors:
 *    ${ocontributors} - <$oemails}>
 *
 *  Mailing list:
 *    <EMAIL>
 */
package fr.lip6.move.pnml2bpn.export.impl;

/**
 * A set of in-memory XPATH queries used to parsing PNML.
 * @author lom
 *
 */
public final class PNMLPaths {

	private PNMLPaths() {
		super();
	}

	public static final String PTNET_TYPE = "ptnet";
	
	public static final String ID_ATTR = "id";
	
	public static final String SRC_ATTR = "source";
	
	public static final String TRG_ATTR = "target";
	
	public static final String TYPE_ATTR = "type";
	
	public static final String NETS_PATH = "/pnml/net";
	
	public static final String PAGES_PATH = NETS_PATH + "/page";
	
	public static final String PLACES_PATH = PAGES_PATH + "/place";
	
	public static final String MARKED_PLACES = PLACES_PATH + "/initialMarking[text > 0]";
	
	public static final String COUNT_MARKED_PLACES = "count(" + MARKED_PLACES + ")";
	
	public static final String PLACES_PATH_EXCEPT_MKG = PAGES_PATH + "/child::place[not(child::initialMarking)]" 
			+ " | " + PAGES_PATH  + "/child::place[child::initialMarking[text <= 0]]";
	
	
	public static final String TRANSITIONS_PATH = PAGES_PATH + "/transition";
	
	public static final String ARCS_PATH = PAGES_PATH + "/arc";

	public static final String COUNT_PLACES_PATH = "count(" + PLACES_PATH + ")";

	public static final String COUNT_TRANSITIONS_PATH = "count(" + TRANSITIONS_PATH + ")";

}
{'fraction_non_alphanumeric': 0.10989611809732094, 'fraction_numerical': 0.01038819026790596, 'mean_word_length': 3.891711229946524, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5219473', 'n_tokens_mistral': 1284, 'n_tokens_neox': 1152, 'n_words': 363}