<commit_before>package org.eclipse.birt.report.engine.util;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;

public class ExportManifestUtils
{

	static final String[] API_JAR_PATTERNS = new String[]{
		"chartengineapi.jar",
		"com.ibm.icu.*.jar",
		"commons-codec-.*.jar", 
		"coreapi.jar", 
		"dataadapterapi.jar",
		"dteapi.jar", 
		"engineapi.jar", 
		"flute.jar", 
		"js.jar",
		"modelapi.jar", 
		"org.eclipse.emf.common_.*.jar",
		"org.eclipse.emf.ecore.xmi_.*.jar", 
		"org.eclipse.emf.ecore_.*.jar",
		"sac.jar", 
		"scriptapi.jar",
		"modelodaapi.jar",
		"javax.servlet*jar"
	};

	static public void main( String[] args ) throws IOException
	{
		String jarFolder = ".";
		if ( args.length > 0 )
		{
			jarFolder = args[0];
		}
		File[] jarFiles = new File( jarFolder ).listFiles( );
		for ( int i = 0; i < jarFiles.length; i++ )
		{
			if ( isApiJar( jarFiles[i] ) )
			{
				exportPackages( jarFiles[i] );
			}
		}
	}

	static boolean isApiJar( File jarFile )
	{
		String name = jarFile.getName( );
		for ( int i = 0; i < API_JAR_PATTERNS.length; i++ )
		{
			if ( name.matches( API_JAR_PATTERNS[i] ) )
			{
				return true;
			}
		}
		return false;<commit_msg>Add javax package in ExportManifestUtils export definition<commit_after>package org.eclipse.birt.report.engine.util;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;

public class ExportManifestUtils
{

	static final String[] API_JAR_PATTERNS = new String[]{
		"chartengineapi.jar",
		"com.ibm.icu.*.jar",
		"commons-codec-.*.jar", 
		"coreapi.jar", 
		"dataadapterapi.jar",
		"dteapi.jar", 
		"engineapi.jar", 
		"flute.jar", 
		"js.jar",
		"modelapi.jar", 
		"org.eclipse.emf.common_.*.jar",
		"org.eclipse.emf.ecore.xmi_.*.jar", 
		"org.eclipse.emf.ecore_.*.jar",
		"sac.jar", 
		"scriptapi.jar",
		"modelodaapi.jar",
		"javax.servlet_.*.jar",
		"javax.servlet.jsp_.*.jar"
	};

	static public void main( String[] args ) throws IOException
	{
		String jarFolder = ".";
		if ( args.length > 0 )
		{
			jarFolder = args[0];
		}
		File[] jarFiles = new File( jarFolder ).listFiles( );
		for ( int i = 0; i < jarFiles.length; i++ )
		{
			if ( isApiJar( jarFiles[i] ) )
			{
				exportPackages( jarFiles[i] );
			}
		}
	}

	static boolean isApiJar( File jarFile )
	{
		String name = jarFile.getName( );
		for ( int i = 0; i < API_JAR_PATTERNS.length; i++ )
		{
			if ( name.matches( API_JAR_PATTERNS[i] ) )
			{
				return true;
			}
		}
		return false;
{'fraction_non_alphanumeric': 0.16441441441441443, 'fraction_numerical': 0.003003003003003003, 'mean_word_length': 3.2167721518987342, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '3529019', 'n_tokens_mistral': 1174, 'n_tokens_neox': 1038, 'n_words': 196}