<commit_before>/*
 *   Copyright 2005 The Apache Software Foundation
 *
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 *
 */
package org.apache.felix.tools.maven.plugin;

import java.util.Map;
import java.util.Hashtable;

/**
 * Created by IntelliJ IDEA.
 * User: tbennett
 * Date: Aug 12, 2005
 * Time: 4:03:29 PM
 * To change this template use File | Settings | File Templates.
 */
public class OsgiManifest {
    private String bundleActivator;
    private String bundleName;
    private String bundleDescription;
    private String bundleVendor;
    //private String bundleVersion;
    //private String bundleClassPath;
    private String bundleDate;
    private String bundleUpdateLocation;
    private String bundleSymbolicName;
    private String exportPackage;
    private String importPackage;
    private String metadataLocation;
    private Hashtable entries = new Hashtable();

    public Map getEntries() {
        if (getBundleActivator() != null) {
            entries.put("Bundle-Activator", getBundleActivator());
        }
        if (getBundleName() != null) {
            entries.put("Bundle-Name", getBundleName());
        }
        if (getBundleDescription() != null) {
            entries.put("Bundle-Description", getBundleDescription());
        }
        if (getBundleVendor() != null) {
            entries.put("Bundle-Vendor", getBundleVendor());
        }
        /*
        if (getBundleVersion() != null) {
            entries.put("Bundle-Version", getBundleVersion());
        }
        */
        if (getExportPackage() != null) {
            entries.put("Export-Package", getExportPackage());
        }
        if (getImportPackage() != null) {
            entries.put("Import-Package", getImportPackage());
        }
        /*
        if (getBundleClassPath() != null) {
            entries.put("Bundle-ClassPath", getBundleClassPath());
        }
        */
        if (getBundleDate() != null) {
            entries.put("Bundle-Date", getBundleDate());
        }
        if (getBundleUpdateLocation() != null) {
            entries.put("Bundle-UpdateLocation", getBundleUpdateLocation());
        }
        if (getBundleSymbolicName() != null) {
            entries.put("Bundle-SymbolicName", getBundleSymbolicName());
        }
        if (getMetadataLocation() != null) {
            entries.put("Metadata-Location", getMetadataLocation());
        }
        return (Map) entries;
    }

    public String getBundleActivator() {
        return bundleActivator;
    }

    public void setBundleActivator(String bundleActivator) {
        this.bundleActivator = bundleActivator;
    }

    public String getBundleName() {
        return bundleName;
    }

    public void setBundleName(String bundleName) {
        this.bundleName = bundleName;
    }

    public String getBundleDescription() {
        return bundleDescription;
    }

    public void setBundleDescription(String bundleDescription) {
        this.bundleDescription = bundleDescription;
    }

    public String getBundleVendor() {
        return bundleVendor;
    }

    public void setBundleVendor(String bundleVendor) {
        this.bundleVendor = bundleVendor;
    }
/*
    public String getBundleVersion() {
        return bundleVersion;
    }

    public void setBundleVersion(String bundleVersion) {
        this.bundleVersion = bundleVersion;
    }
*/
    public String getExportPackage() {
        return exportPackage;
    }

    public void setExportPackage(String exportPackage) {
        this.exportPackage = exportPackage;
    }

    public String getImportPackage() {
        return importPackage;
    }

    public void setImportPackage(String importPackage) {
        this.importPackage = importPackage;
    }

/*
    public String getBundleClassPath() {
        return bundleClassPath;
    }

    public void setBundleClassPath(String bundleClassPath) {
        this.bundleClassPath = bundleClassPath;
    }
*/
    public String getBundleDate() {
        return bundleDate;<commit_msg>Added support Export-Service<commit_after>/*
 *   Copyright 2005 The Apache Software Foundation
 *
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 *
 */
package org.apache.felix.tools.maven.plugin;

import java.util.Map;
import java.util.Hashtable;

/**
 * Created by IntelliJ IDEA.
 * User: tbennett
 * Date: Aug 12, 2005
 * Time: 4:03:29 PM
 * To change this template use File | Settings | File Templates.
 */
public class OsgiManifest {
    private String bundleActivator;
    private String bundleName;
    private String bundleDescription;
    private String bundleVendor;
    //private String bundleVersion;
    //private String bundleClassPath;
    private String bundleDate;
    private String bundleUpdateLocation;
    private String bundleSymbolicName;
	private String exportService;
    private String exportPackage;
    private String importPackage;
    private String metadataLocation;
    private Hashtable entries = new Hashtable();

    public Map getEntries() {
        if (getBundleActivator() != null) {
            entries.put("Bundle-Activator", getBundleActivator());
        }
        if (getBundleName() != null) {
            entries.put("Bundle-Name", getBundleName());
        }
        if (getBundleDescription() != null) {
            entries.put("Bundle-Description", getBundleDescription());
        }
        if (getBundleVendor() != null) {
            entries.put("Bundle-Vendor", getBundleVendor());
        }
        /*
        if (getBundleVersion() != null) {
            entries.put("Bundle-Version", getBundleVersion());
        }
        */
        if (getExportService() != null) {
            entries.put("Export-Service", getExportService());
        }
        if (getExportPackage() != null) {
            entries.put("Export-Package", getExportPackage());
        }
        if (getImportPackage() != null) {
            entries.put("Import-Package", getImportPackage());
        }
        /*
        if (getBundleClassPath() != null) {
            entries.put("Bundle-ClassPath", getBundleClassPath());
        }
        */
        if (getBundleDate() != null) {
            entries.put("Bundle-Date", getBundleDate());
        }
        if (getBundleUpdateLocation() != null) {
            entries.put("Bundle-UpdateLocation", getBundleUpdateLocation());
        }
        if (getBundleSymbolicName() != null) {
            entries.put("Bundle-SymbolicName", getBundleSymbolicName());
        }
        if (getMetadataLocation() != null) {
            entries.put("Metadata-Location", getMetadataLocation());
        }
        return (Map) entries;
    }

    public String getBundleActivator() {
        return bundleActivator;
    }

    public void setBundleActivator(String bundleActivator) {
        this.bundleActivator = bundleActivator;
    }

    public String getBundleName() {
        return bundleName;
    }

    public void setBundleName(String bundleName) {
        this.bundleName = bundleName;
    }

    public String getBundleDescription() {
        return bundleDescription;
    }

    public void setBundleDescription(String bundleDescription) {
        this.bundleDescription = bundleDescription;
    }

    public String getBundleVendor() {
        return bundleVendor;
    }

    public void setBundleVendor(String bundleVendor) {
        this.bundleVendor = bundleVendor;
    }
/*
    public String getBundleVersion() {
        return bundleVersion;
    }

    public void setBundleVersion(String bundleVersion) {
        this.bundleVersion = bundleVersion;
    }
*/
    public String getExportService() {
        return exportService;
    }

    public void setExportService(String exportService) {
        this.exportService = exportService;
    }

    public String getExportPackage() {
        return exportPackage;
    }

    public void setExportPackage(String exportPackage) {
        this.exportPackage = exportPackage;
    }

    public String getImportPackage() {
        return importPackage;
    }

    public void setImportPackage(String importPackage) {
        this.importPackage = importPackage;
    }

/*
    public String getBundleClassPath() {
        return bundleClassPath;
    }

    public void setBundleClassPath(String bundleClassPath) {
        this.bundleClassPath = bundleClassPath;
    }
*/
    public String getBundleDate() {
        return bundleDate;
{'fraction_non_alphanumeric': 0.09622942113648433, 'fraction_numerical': 0.00403611258629846, 'mean_word_length': 2.5843167110772747, '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': '2021290', 'n_tokens_mistral': 2456, 'n_tokens_neox': 2405, 'n_words': 652}