<commit_before>/*******************************************************************************
 * Copyright (c) 2004 Actuate Corporation.
 * 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
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/

package org.eclipse.birt.report.engine.ir;

import java.util.HashMap;
import java.util.Map;

import org.eclipse.birt.report.model.api.DesignElementHandle;

/**
 * base class of all elements in the report design.
 * 
 * @version $Revision: 1.4 $ $Date: 2005/05/08 06:08:26 $
 */
public abstract class ReportElementDesign
{

	/**
	 * handle of this report element
	 */
	DesignElementHandle handle;
	
	/**
	 * ID of the object.
	 */
	int ID;
	/**
	 * name of this element
	 */
	protected String name;
	/**
	 * parent element's name
	 */
	protected String extend;

	/**
	 * class implement this element.
	 */
	protected String javaClass;

	/**
	 * map used to store the custom properties
	 */
	protected Map customProperties = new HashMap();
	
	/**
	 * @return Returns the extend.
	 */
	public String getExtends( )
	{
		return extend;
	}

	/**
	 * @param extend
	 *            The extend to set.
	 */
	public void setExtends( String extend )
	{
		this.extend = extend;
	}

	/**
	 * @return Returns the name.
	 */
	public String getName( )
	{
		return name;
	}

	/**
	 * @param name
	 *            The name to set.
	 */
	public void setName( String name )
	{
		this.name = name;
	}

	/**
	 * @return Returns the iD.
	 */
	public int getID( )
	{
		return ID;
	}

	/**
	 * @param id
	 *            The iD to set.
	 */
	public void setID( int id )
	{
		ID = id;
	}
	/**
	 * @return Returns the javaClass.
	 */
	public String getJavaClass( )
	{
		return javaClass;
	}
	/**
	 * @param javaClass The javaClass to set.
	 */
	public void setJavaClass( String javaClass )
	{
		this.javaClass = javaClass;
	}	
	
	/* (non-Javadoc)
	 * @see org.eclipse.birt.report.engine.analyzer.IDataSource#getCustomProperties()
	 */
	public Map getCustomProperties( )
	{
		return customProperties;
	}

	/* (non-Javadoc)
	 * @see org.eclipse.birt.report.engine.analyzer.IDataSource#getCustomPropertyValue(java.lang.String)
	 */
	public String getCustomPropertyValue( String name )
	{
		return (String) customProperties.get( name );
	}
	/**
	 * @return Returns the handle.
	 */
	public DesignElementHandle getHandle( )
	{
		return handle;
	}
	/**
	 * @param handle The handle to set.
	 */
	public void setHandle( DesignElementHandle handle )
	{
		this.handle = handle;
	}
}
<commit_msg>MODEL change the element ID from int to long<commit_after>/*******************************************************************************
 * Copyright (c) 2004 Actuate Corporation.
 * 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
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/

package org.eclipse.birt.report.engine.ir;

import java.util.HashMap;
import java.util.Map;

import org.eclipse.birt.report.model.api.DesignElementHandle;

/**
 * base class of all elements in the report design.
 * 
 * @version $Revision: 1.5 $ $Date: 2005/05/08 06:59:45 $
 */
public abstract class ReportElementDesign
{

	/**
	 * handle of this report element
	 */
	DesignElementHandle handle;
	
	/**
	 * ID of the object.
	 */
	long ID;
	/**
	 * name of this element
	 */
	protected String name;
	/**
	 * parent element's name
	 */
	protected String extend;

	/**
	 * class implement this element.
	 */
	protected String javaClass;

	/**
	 * map used to store the custom properties
	 */
	protected Map customProperties = new HashMap();
	
	/**
	 * @return Returns the extend.
	 */
	public String getExtends( )
	{
		return extend;
	}

	/**
	 * @param extend
	 *            The extend to set.
	 */
	public void setExtends( String extend )
	{
		this.extend = extend;
	}

	/**
	 * @return Returns the name.
	 */
	public String getName( )
	{
		return name;
	}

	/**
	 * @param name
	 *            The name to set.
	 */
	public void setName( String name )
	{
		this.name = name;
	}

	/**
	 * @return Returns the iD.
	 */
	public long getID( )
	{
		return ID;
	}

	/**
	 * @param id
	 *            The iD to set.
	 */
	public void setID( long id )
	{
		ID = id;
	}
	/**
	 * @return Returns the javaClass.
	 */
	public String getJavaClass( )
	{
		return javaClass;
	}
	/**
	 * @param javaClass The javaClass to set.
	 */
	public void setJavaClass( String javaClass )
	{
		this.javaClass = javaClass;
	}	
	
	/* (non-Javadoc)
	 * @see org.eclipse.birt.report.engine.analyzer.IDataSource#getCustomProperties()
	 */
	public Map getCustomProperties( )
	{
		return customProperties;
	}

	/* (non-Javadoc)
	 * @see org.eclipse.birt.report.engine.analyzer.IDataSource#getCustomPropertyValue(java.lang.String)
	 */
	public String getCustomPropertyValue( String name )
	{
		return (String) customProperties.get( name );
	}
	/**
	 * @return Returns the handle.
	 */
	public DesignElementHandle getHandle( )
	{
		return handle;
	}
	/**
	 * @param handle The handle to set.
	 */
	public void setHandle( DesignElementHandle handle )
	{
		this.handle = handle;
	}
}

{'fraction_non_alphanumeric': 0.16790912318068868, 'fraction_numerical': 0.008519701810436636, 'mean_word_length': 3.0049751243781095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5278269', 'n_tokens_mistral': 1884, 'n_tokens_neox': 1693, 'n_words': 498}