<commit_before>module.exports =
class Point
  @create: (x, y) ->
    return x if x instanceof Point
    if Array.isArray(x)
      new Point(x[0], x[1])
    else
      new Point(x, y)

  constructor: (x, y) ->
    @set(x, y)
<commit_msg>Point create supports obj with x/y<commit_after>module.exports =
class Point
  @create: (x, y) ->
    return x if x instanceof Point
    if x?.x? and x?.y?
      new Point(x.x, x.y)
    else if Array.isArray(x)
      new Point(x[0], x[1])
    else
      new Point(x, y)

  constructor: (x, y) ->
    @set(x, y)

{'fraction_non_alphanumeric': 0.14990859232175502, 'fraction_numerical': 0.007312614259597806, 'mean_word_length': 2.4037267080745344, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4286385', 'n_tokens_mistral': 212, 'n_tokens_neox': 211, 'n_words': 65}