<commit_before>/*
 * Copyright 2014 <NAME>
 *
 * 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 com.restfiddle.entity;

import java.util.List;

import org.springframework.data.mongodb.core.mapping.DBRef;

public class BaseNode extends NamedEntity {
    private static final long serialVersionUID = 1L;

    private String nodeType;// PROJECT/FOLDER/REQUEST/ENTITY/SOCKET etc.

    private String parentId;

    private String projectId;

    private Long position;// location in the parent node

    private Boolean starred;
    
    //API method type - GET/POST/PUT/DELETE etc.
    private String method;

    @DBRef
    private List<Tag> tags;

    @DBRef
    private Conversation conversation;

    @DBRef
    private GenericEntity genericEntity;

    public String getNodeType() {
	return nodeType;
    }

    public void setNodeType(String nodeType) {
	this.nodeType = nodeType;
    }

    public String getParentId() {
	return parentId;
    }

    public void setParentId(String parentId) {
	this.parentId = parentId;
    }

    public Long getPosition() {
	return position;
    }

    public void setPosition(Long position) {
	this.position = position;
    }

    public Conversation getConversation() {
	return conversation;
    }

    public void setConversation(Conversation conversation) {
	this.conversation = conversation;
    }

    public Boolean getStarred() {
	return starred;
    }

    public void setStarred(Boolean starred) {
	this.starred = starred;
    }

    public List<Tag> getTags() {
	return tags;
    }

    public void setTags(List<Tag> tags) {
	this.tags = tags;
    }

    public GenericEntity getGenericEntity() {
	return genericEntity;
    }

    public void setGenericEntity(GenericEntity genericEntity) {
	this.genericEntity = genericEntity;
    }

    public String getProjectId() {
	return projectId;
    }

    public void setProjectId(String projectId) {
	this.projectId = projectId;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }
}<commit_msg>#420 in progress<commit_after>/*
 * Copyright 2014 <NAME>
 *
 * 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 com.restfiddle.entity;

import java.util.List;

import org.springframework.data.mongodb.core.mapping.DBRef;

public class BaseNode extends NamedEntity {
    private static final long serialVersionUID = 1L;

    private String nodeType;// PROJECT/FOLDER/REQUEST/ENTITY/SOCKET etc.

    private String parentId;

    private String projectId;

    private Long position;// location in the parent node

    private Boolean starred;
    
    //API method type - GET/POST/PUT/DELETE etc.
    private String method;

    private String workspaceId;
    
    @DBRef
    private List<Tag> tags;

    @DBRef
    private Conversation conversation;

    @DBRef
    private GenericEntity genericEntity;

    public String getNodeType() {
	return nodeType;
    }

    public void setNodeType(String nodeType) {
	this.nodeType = nodeType;
    }

    public String getParentId() {
	return parentId;
    }

    public void setParentId(String parentId) {
	this.parentId = parentId;
    }

    public Long getPosition() {
	return position;
    }

    public void setPosition(Long position) {
	this.position = position;
    }

    public Conversation getConversation() {
	return conversation;
    }

    public void setConversation(Conversation conversation) {
	this.conversation = conversation;
    }

    public Boolean getStarred() {
	return starred;
    }

    public void setStarred(Boolean starred) {
	this.starred = starred;
    }

    public List<Tag> getTags() {
	return tags;
    }

    public void setTags(List<Tag> tags) {
	this.tags = tags;
    }

    public GenericEntity getGenericEntity() {
	return genericEntity;
    }

    public void setGenericEntity(GenericEntity genericEntity) {
	this.genericEntity = genericEntity;
    }

    public String getProjectId() {
	return projectId;
    }

    public void setProjectId(String projectId) {
	this.projectId = projectId;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getWorkspaceId() {
        return workspaceId;
    }

    public void setWorkspaceId(String workspaceId) {
        this.workspaceId = workspaceId;
    }
}
{'fraction_non_alphanumeric': 0.07825765965300849, 'fraction_numerical': 0.003875968992248062, 'mean_word_length': 3.0500747384155455, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '2134751', 'n_tokens_mistral': 1564, 'n_tokens_neox': 1484, 'n_words': 496}