<commit_before>package ru.stqa.pft.sandbox;

/**
 * Created by Дарья on 21-Aug-16.
 */
public class Point {

  public double x;
  public double y;
}<commit_msg>Метод перенесен в класс, добавлен конструктор<commit_after>package ru.stqa.pft.sandbox;

/**
 * Created by Дарья on 21-Aug-16.
 */
public class Point {

  public double x;
  public double y;

  public Point(double x,double y) {
    this.x = x;
    this.y = y;
  }

  public static void main(String args[]) {
    Point p1 = new Point(0.5, 7.32);
    Point p2 = new Point(8.9, 4);
    System.out.println("p1 = " + p1.x + ", " + p1.y);
    System.out.println("p2 = " + p2.x + ", " + p2.y);

  }
  public double distance(Point p) {
    double dx = this.x - p.x;
    double dy = this.y - p.y;
    return Math.sqrt(dx*dx + dy*dy);

  }

  public double distance(Point p) {
    return distance(p.x, p.y);
  }
}

//class PointDist {
{'fraction_non_alphanumeric': 0.15497737556561086, 'fraction_numerical': 0.027149321266968326, 'mean_word_length': 2.5542168674698793, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5521817', 'n_tokens_mistral': 367, 'n_tokens_neox': 353, 'n_words': 90}