<commit_before>package com.fet.ice.simpleETL.extract.saxhandler;

import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Stack;

import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;

import org.apache.logging.log4j.Logger;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;

import com.fet.ice.simpleETL.entity.CODETABLE_VALUEITEM;
import com.fet.ice.simpleETL.entity.CODE_TABLE;
import com.fet.ice.simpleETL.entity.COMMON_ENTITY;
import com.fet.ice.simpleETL.entity.PRODUCT_DATA;
import com.fet.ice.simpleETL.entity.PROMOTION_DATA;
import com.fet.ice.simpleETL.entity.COMMON_RELATIONITEM;
import com.fet.ice.simpleETL.entity.COMMON_ATTRIBUTE;

/**

 */
public class SAXHandler_PRODUCTDATA extends DefaultHandler {

	private static final int CURRENT_SUB = 1;
	private static final int CURRENT_L3PG = 2;
	private static final int CURRENT_L4PG = 3;
	private static final int CURRENT_PRODUCTOFFER = 4;
	private static final int CURRENT_BFS = 5;
	private static final int CURRENT_CFS = 6;
	private static final int CURRENT_SERVICE = 7;
	private static final int CURRENT_RFS = 8;
	private static final int CURRENT_RELATION_ITEM = 9;
	private static final int CURRENT_ATTRIBUTE = 10;

	private int iCurrentObject;
	private int iCurrentSubObject;

	private int iCount = 0;

	private Logger logger;

	private HashMap<String, List<COMMON_ENTITY>> hmProducts;
	private PRODUCT_DATA oProductData;

	private COMMON_ENTITY oProductData_SUB;
	private List<COMMON_ENTITY> lsSUBs;

	private COMMON_ENTITY oProductData_L3PG;
	private List<COMMON_ENTITY> lsL3PGs;

	private COMMON_ENTITY oProductData_L4PG;
	private List<COMMON_ENTITY> lsL4PGs;

	private COMMON_ENTITY oProductData_PRODUCTOFFER;
	private List<COMMON_ENTITY> lsPRODUCTOFFERs;

	private COMMON_ENTITY oProductData_BFS;
	private List<COMMON_ENTITY> lsBFSs;

	private COMMON_ENTITY oProductData_CFS;
	private List<COMMON_ENTITY> lsCFSs;

	private COMMON_ENTITY oProductData_SERVICE;
	private List<COMMON_ENTITY> lsSERVICEs;

	private COMMON_ENTITY oProductData_RFS;
	private List<COMMON_ENTITY> lsRFSs;

	private List<COMMON_RELATIONITEM> lsRelationItems;
	private COMMON_RELATIONITEM oRelationItem;
	private List<COMMON_ATTRIBUTE> lsAttributes;
	private COMMON_ATTRIBUTE oAttribute;

	private String sObjVal;

	public SAXHandler_PRODUCTDATA(Logger logger) {
		super();
		this.logger = logger;
		iCurrentObject = 0;
		iCurrentSubObject = 0;
	}

	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
		sObjVal = "";
<commit_msg>remove not used import lib<commit_after>package com.fet.ice.simpleETL.extract.saxhandler;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;


import org.apache.logging.log4j.Logger;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;


import com.fet.ice.simpleETL.entity.COMMON_ENTITY;
import com.fet.ice.simpleETL.entity.PRODUCT_DATA;
import com.fet.ice.simpleETL.entity.COMMON_RELATIONITEM;
import com.fet.ice.simpleETL.entity.COMMON_ATTRIBUTE;

/**

 */
public class SAXHandler_PRODUCTDATA extends DefaultHandler {

	private static final int CURRENT_SUB = 1;
	private static final int CURRENT_L3PG = 2;
	private static final int CURRENT_L4PG = 3;
	private static final int CURRENT_PRODUCTOFFER = 4;
	private static final int CURRENT_BFS = 5;
	private static final int CURRENT_CFS = 6;
	private static final int CURRENT_SERVICE = 7;
	private static final int CURRENT_RFS = 8;
	private static final int CURRENT_RELATION_ITEM = 9;
	private static final int CURRENT_ATTRIBUTE = 10;

	private int iCurrentObject;
	private int iCurrentSubObject;

	private int iCount = 0;

	private Logger logger;

	private HashMap<String, List<COMMON_ENTITY>> hmProducts;
	private PRODUCT_DATA oProductData;

	private COMMON_ENTITY oProductData_SUB;
	private List<COMMON_ENTITY> lsSUBs;

	private COMMON_ENTITY oProductData_L3PG;
	private List<COMMON_ENTITY> lsL3PGs;

	private COMMON_ENTITY oProductData_L4PG;
	private List<COMMON_ENTITY> lsL4PGs;

	private COMMON_ENTITY oProductData_PRODUCTOFFER;
	private List<COMMON_ENTITY> lsPRODUCTOFFERs;

	private COMMON_ENTITY oProductData_BFS;
	private List<COMMON_ENTITY> lsBFSs;

	private COMMON_ENTITY oProductData_CFS;
	private List<COMMON_ENTITY> lsCFSs;

	private COMMON_ENTITY oProductData_SERVICE;
	private List<COMMON_ENTITY> lsSERVICEs;

	private COMMON_ENTITY oProductData_RFS;
	private List<COMMON_ENTITY> lsRFSs;

	private List<COMMON_RELATIONITEM> lsRelationItems;
	private COMMON_RELATIONITEM oRelationItem;
	private List<COMMON_ATTRIBUTE> lsAttributes;
	private COMMON_ATTRIBUTE oAttribute;

	private String sObjVal;

	public SAXHandler_PRODUCTDATA(Logger logger) {
		super();
		this.logger = logger;
		iCurrentObject = 0;
		iCurrentSubObject = 0;
	}

	@Override
	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
		sObjVal = "";

{'fraction_non_alphanumeric': 0.07068366164542295, 'fraction_numerical': 0.008111239860950173, 'mean_word_length': 6.055858310626703, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 9}, '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': '6001815', 'n_tokens_mistral': 1878, 'n_tokens_neox': 1765, 'n_words': 413}