<commit_before>package org.framed.orm.ui.command.connectionkinds;

import java.util.ArrayList;

import org.eclipse.draw2d.Bendpoint;
import org.eclipse.draw2d.geometry.Point;
import org.eclipse.gef.commands.Command;
import org.framed.orm.model.Node;
import org.framed.orm.model.Relation;
import org.framed.orm.model.Container;
import org.framed.orm.model.RelationshipConstraint;

/**
 * Through this command all {@link Relation}s except the {@link RelationshipConstraint}s can be
 * deleted(removed from the model tree).
 * 
 * @author <NAME>
 * */
public class ORMRelationDeleteCommand extends Command {

  /** The {@link Relation} to be removed. */
  private Relation relation;
  /** The {@link Container} from which the {@link Relation} should be removed. */
  private Container parent;
  /** The source/start {@link Node} of the {@link Relation} to be created. */
  private Node source;
  /** The target/end {@link Node} of the {@link Relation} to be created. */
  private Node target;
  /**
   * A list, which stores the first part of the {@link Bendpoint}s positions for the case that the<commit_msg>added some more comments to ORMRelationDeleteCommand<commit_after>package org.framed.orm.ui.command.connectionkinds;

import java.util.ArrayList;

import org.eclipse.draw2d.Bendpoint;
import org.eclipse.draw2d.geometry.Point;
import org.eclipse.gef.commands.Command;
import org.framed.orm.model.Node;
import org.framed.orm.model.Relation;
import org.framed.orm.model.Container;
import org.framed.orm.model.Relationship;
import org.framed.orm.model.RelationshipConstraint;
import org.framed.orm.ui.editPart.connectionkinds.ORMRelationshipConstraintEditPart;

/**
 * Through this command all {@link Relation}s except the {@link RelationshipConstraint}s can be
 * deleted(removed from the model tree). The {@link RelationshipConstraint}s need an extra command,
 * because after every deletion of a {@link RelationshipConstraint} the
 * {@link ORMRelationshipConstraintEditPart} of the other {@link RelationshipConstraint}s from the
 * same {@link Relationship} muste be refreshed.
 * 
 * @author <NAME>
 * */
public class ORMRelationDeleteCommand extends Command {

  /** The {@link Relation} to be removed. */
  private Relation relation;
  /** The {@link Container} from which the {@link Relation} should be removed. */
  private Container parent;
  /** The source/start {@link Node} of the {@link Relation} to be created. */
  private Node source;
  /** The target/end {@link Node} of the {@link Relation} to be created. */
  private Node target;
  /**
   * A list, which stores the first part of the {@link Bendpoint}s positions for the case that the
{'fraction_non_alphanumeric': 0.10839292435077155, 'fraction_numerical': 0.0015054572826496049, 'mean_word_length': 4.560669456066946, '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': '5715870', 'n_tokens_mistral': 767, 'n_tokens_neox': 760, 'n_words': 259}