<commit_before>/*
 * DownloadClient Geodateninfrastruktur Bayern
 *
 * (c) 2016 GSt. GDI-BY (gdi.bayern.de)
 *
 * 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 de.bayern.gdi.services;

import com.vividsolutions.jts.geom.Envelope;

import de.bayern.gdi.utils.StringUtils;

import java.io.IOException;
import java.io.InputStream;

import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

import java.util.logging.Level;
import java.util.logging.Logger;

import javax.net.ssl.HttpsURLConnection;

import javax.xml.parsers.ParserConfigurationException;

import net.opengis.ows11.OperationType;
import net.opengis.ows11.OperationsMetadataType;

import net.opengis.wfs20.DescribeStoredQueriesResponseType;
import net.opengis.wfs20.ParameterExpressionType;
import net.opengis.wfs20.StoredQueryDescriptionType;
import net.opengis.wfs20.WFSCapabilitiesType;

import org.eclipse.emf.common.util.EList;

import org.geotools.geometry.jts.ReferencedEnvelope;

import org.geotools.xml.Parser;

import org.xml.sax.InputSource;
import org.xml.sax.SAXException;

/**
 * @author <NAME> (<EMAIL>)
 */
public class WFSTwo extends WebService {

    private String serviceURL;
    private static final Logger log
            = Logger.getLogger(WFSTwo.class.getName());
    private ArrayList<String> requestMethods;
    private WFSOne wfsOne;
    private String password;
    private String userName;

    /**
     * Constructor.
     *
     * @param serviceURL URL to Service
     * @param userName userName if auth is needed else null
     * @param password pw if auth is needed else null
     */
    public WFSTwo(String serviceURL, String userName, String password) {
        this.serviceURL = serviceURL;
        this.userName = userName;
        this.password = password;
        this.requestMethods = new ArrayList();
        org.geotools.wfs.v2_0.WFSCapabilitiesConfiguration configuration =
                new org.geotools.wfs.v2_0.WFSCapabilitiesConfiguration();
        Parser parser = new Parser(configuration);
        URLConnection conn = null;
        try {
            URL url = new URL(this.serviceURL);
            if (url.toString().toLowerCase().startsWith("https")) {
                HttpsURLConnection con<commit_msg>Cosmetics. Move logger instance to front of members.<commit_after>/*
 * DownloadClient Geodateninfrastruktur Bayern
 *
 * (c) 2016 GSt. GDI-BY (gdi.bayern.de)
 *
 * 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 de.bayern.gdi.services;

import com.vividsolutions.jts.geom.Envelope;

import de.bayern.gdi.utils.StringUtils;

import java.io.IOException;
import java.io.InputStream;

import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

import java.util.logging.Level;
import java.util.logging.Logger;

import javax.net.ssl.HttpsURLConnection;

import javax.xml.parsers.ParserConfigurationException;

import net.opengis.ows11.OperationType;
import net.opengis.ows11.OperationsMetadataType;

import net.opengis.wfs20.DescribeStoredQueriesResponseType;
import net.opengis.wfs20.ParameterExpressionType;
import net.opengis.wfs20.StoredQueryDescriptionType;
import net.opengis.wfs20.WFSCapabilitiesType;

import org.eclipse.emf.common.util.EList;

import org.geotools.geometry.jts.ReferencedEnvelope;

import org.geotools.xml.Parser;

import org.xml.sax.InputSource;
import org.xml.sax.SAXException;

/**
 * @author <NAME> (<EMAIL>)
 */
public class WFSTwo extends WebService {

    private static final Logger log
            = Logger.getLogger(WFSTwo.class.getName());

    private String serviceURL;
    private ArrayList<String> requestMethods;
    private WFSOne wfsOne;
    private String password;
    private String userName;

    /**
     * Constructor.
     *
     * @param serviceURL URL to Service
     * @param userName userName if auth is needed else null
     * @param password pw if auth is needed else null
     */
    public WFSTwo(String serviceURL, String userName, String password) {
        this.serviceURL = serviceURL;
        this.userName = userName;
        this.password = password;
        this.requestMethods = new ArrayList();
        org.geotools.wfs.v2_0.WFSCapabilitiesConfiguration configuration =
                new org.geotools.wfs.v2_0.WFSCapabilitiesConfiguration();
        Parser parser = new Parser(configuration);
        URLConnection conn = null;
        try {
            URL url = new URL(this.serviceURL);
            if (url.toString().toLowerCase().startsWith("https")) {
                HttpsURLConnection con
{'fraction_non_alphanumeric': 0.08977900552486189, 'fraction_numerical': 0.008287292817679558, 'mean_word_length': 3.6159362549800798, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5893511', 'n_tokens_mistral': 1739, 'n_tokens_neox': 1707, 'n_words': 466}