<commit_before>package org.framed.orm.ui.factory;

import org.eclipse.gef.requests.CreationFactory;

import org.framed.orm.model.OrmFactory;
import org.framed.orm.model.Relationship;

/**
 * @author <NAME>
 * */
public class ORMRelationshipFactory implements CreationFactory{
	
	@Override public Object getNewObject() {
	    return OrmFactory.eINSTANCE.createRelationship();
	  }
	 
	  @Override public Object getObjectType() {
	    return Relationship.class;
	  }
}<commit_msg>relationship factory does now generate a relationship without missing labels respective bug #55<commit_after>package org.framed.orm.ui.factory;

import org.eclipse.gef.requests.CreationFactory;
import org.framed.orm.model.OrmFactory;
import org.framed.orm.model.RelationLabel;
import org.framed.orm.model.Relationship;

/**
 * @author <NAME>
 * */
public class ORMRelationshipFactory implements CreationFactory {

  @Override
  public Object getNewObject() {
    Relationship relationship = OrmFactory.eINSTANCE.createRelationship();
    RelationLabel targetLabel = OrmFactory.eINSTANCE.createRelationLabel();
    RelationLabel sourceLabel = OrmFactory.eINSTANCE.createRelationLabel();
    targetLabel.setIsRelationEnd(true);
    sourceLabel.setIsRelationEnd(false);
    relationship.setTargetLabel(targetLabel);
    relationship.setSourceLabel(sourceLabel);
    return relationship;
  }

  @Override
  public Object getObjectType() {
    return Relationship.class;
  }
}
{'fraction_non_alphanumeric': 0.0966183574879227, 'fraction_numerical': 0.0013802622498274672, 'mean_word_length': 5.041666666666667, 'pattern_counts': {'":': 0, '<': 5, '<?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': '142631', 'n_tokens_mistral': 428, 'n_tokens_neox': 415, 'n_words': 81}