<commit_before>/*
 * Copyright (c) 2015 University of Ulm
 *
 * See the NOTICE file distributed with this work for additional information
 * regarding copyright ownership.  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.uniulm.omi.cloudiator.colosseum.client.entities;

import de.uniulm.omi.cloudiator.colosseum.client.entities.enums.OperatingSystemVendorType;
import de.uniulm.omi.cloudiator.colosseum.client.entities.internal.Link;
import de.uniulm.omi.cloudiator.colosseum.client.entities.internal.NamedEntity;
import de.uniulm.omi.cloudiator.colosseum.client.entities.internal.Path;

import javax.annotation.Nullable;
import java.util.List;

/**
 * Created by frank on 21.01.15.
 */
@Path("osVendor")
public class OperatingSystemVendor extends NamedEntity {

    private OperatingSystemVendorType operatingSystemVendorType;

    public OperatingSystemVendor(@Nullable List<Link> links, String name, OperatingSystemVendorType operatingSystemVendorType) {
        super(links, name);
        this.operatingSystemVendorType = operatingSystemVendorType;
    }

    public OperatingSystemVendor(String name, OperatingSystemVendorType operatingSystemVendorType) {
        this(null, name, operatingSystemVendorType);
    }

    protected OperatingSystemVendor() {
    }

    public OperatingSystemVendorType getOperatingSystemVendorType() {
        return operatingSystemVendorType;
    }

    public void setOperatingSystemVendorType(OperatingSystemVendorType operatingSystemVendorType) {
        this.operatingSystemVendorType = operatingSystemVendorType;
    }

    @Override public boolean equals(Object o) {
        if (this == o)
            return true;
        if (o == null || getClass() != o.getClass())
            return false;
        if (!super.equals(o))
            return false;

        OperatingSystemVendor that = (OperatingSystemVendor) o;

        if (operatingSystemVendorType != that.operatingSystemVendorType)
            return false;

        return true;
    }

    @Override public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + (operatingSystemVendorType != null ?
            operatingSystemVendorType.hashCode() :
            0);
        return result;
    }
}<commit_msg>added missing fields in operatingsystemvendor<commit_after>/*
 * Copyright (c) 2015 University of Ulm
 *
 * See the NOTICE file distributed with this work for additional information
 * regarding copyright ownership.  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.uniulm.omi.cloudiator.colosseum.client.entities;

import de.uniulm.omi.cloudiator.colosseum.client.entities.enums.OperatingSystemVendorType;
import de.uniulm.omi.cloudiator.colosseum.client.entities.internal.Link;
import de.uniulm.omi.cloudiator.colosseum.client.entities.internal.NamedEntity;
import de.uniulm.omi.cloudiator.colosseum.client.entities.internal.Path;

import javax.annotation.Nullable;
import java.util.List;

/**
 * Created by frank on 21.01.15.
 */
@Path("osVendor")
public class OperatingSystemVendor extends NamedEntity {

    private OperatingSystemVendorType operatingSystemVendorType;
    private String defaultUserName;
    private String defaultPassword;

    public OperatingSystemVendor(@Nullable List<Link> links, String name, OperatingSystemVendorType operatingSystemVendorType,
                                 String defaultUserName, String defaultPassword) {
        super(links, name);
        this.operatingSystemVendorType = operatingSystemVendorType;
        this.defaultUserName = defaultUserName;
        this.defaultPassword = <PASSWORD>;
    }

    public OperatingSystemVendor(String name, OperatingSystemVendorType operatingSystemVendorType,
                                 String defaultUserName, String defaultPassword) {
        this(null, name, operatingSystemVendorType, defaultUserName, defaultPassword);
    }

    protected OperatingSystemVendor() {
    }

    public OperatingSystemVendorType getOperatingSystemVendorType() {
        return operatingSystemVendorType;
    }

    public void setOperatingSystemVendorType(OperatingSystemVendorType operatingSystemVendorType) {
        this.operatingSystemVendorType = operatingSystemVendorType;
    }

    public String getDefaultUserName() {
        return defaultUserName;
    }

    public void setDefaultUserName(String defaultUserName) {
        this.defaultUserName = defaultUserName;
    }

    public String getDefaultPassword() {
        return <PASSWORD>Password;
    }

    public void setDefaultPassword(String defaultPassword) {
        this.defaultPassword = <PASSWORD>;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof OperatingSystemVendor)) return false;
        if (!super.equals(o)) return false;

        OperatingSystemVendor that = (OperatingSystemVendor) o;

        if (operatingSystemVendorType != that.operatingSystemVendorType) return false;
        if (defaultUserName != null ? !defaultUserName.equals(that.defaultUserName) : that.defaultUserName != null)
            return false;
        return !(defaultPassword != null ? !defaultPassword.equals(that.defaultPassword) : that.defaultPassword != null);

    }

    @Override
    public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + (operatingSystemVendorType != null ? operatingSystemVendorType.hashCode() : 0);
        result = 31 * result + (defaultUserName != null ? defaultUserName.hashCode() : 0);
        result = 31 * result + (defaultPassword != null ? defaultPassword.hashCode() : 0);
        return result;
    }
}
{'fraction_non_alphanumeric': 0.08068386322735453, 'fraction_numerical': 0.00599880023995201, 'mean_word_length': 3.5866574965612106, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, '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': '2566610', 'n_tokens_mistral': 1827, 'n_tokens_neox': 1748, 'n_words': 487}