<commit_before>#!/usr/bin/python3

# secp256k1
__a = 0; __b = 7
__prime = 2**256 - 2**32 -977
__gx = 0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798
__gy = 0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8
__G = (__gx, __gy)
__order = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141

from EllipticCurve import EllipticCurve
ec = EllipticCurve(__a, __b, __prime, __G, __order)

def main():
  print(ec)
  
  i = 0
  P = (None, None)
  ec.scrub_point(P)
  print(i, P)
  assert P == ec.pointMultiply(i)

  i = 1
  P = __G
  ec.scrub_point(P)
  print(i, P)
  assert P == ec.pointMultiply(i)

  i = 2
  P = ec.pointDouble(P)
  ec.scrub_point(P)
  print(i, P)
  assert P == ec.pointMultiply(i)

  P = ec.pointMultiply(__order-1)
  for i in range(__order, __order+1):
    P = ec.pointAdd(P, __G)
    ec.scrub_point(P)
    print(i % __order, P)
    assert P == ec.pointMultiply(i)

if __name__ == "__main__":
  # execute only if run as a script
  main()
<commit_msg>added space<commit_after>#!/usr/bin/python3

# secp256k1
__a = 0; __b = 7
__prime = 2**256 - 2**32 - 977
__gx = 0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798
__gy = 0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8
__G = (__gx, __gy)
__order = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141

from EllipticCurve import EllipticCurve
ec = EllipticCurve(__a, __b, __prime, __G, __order)

def main():
  print(ec)
  
  i = 0
  P = (None, None)
  ec.scrub_point(P)
  print(i, P)
  assert P == ec.pointMultiply(i)

  i = 1
  P = __G
  ec.scrub_point(P)
  print(i, P)
  assert P == ec.pointMultiply(i)

  i = 2
  P = ec.pointDouble(P)
  ec.scrub_point(P)
  print(i, P)
  assert P == ec.pointMultiply(i)

  P = ec.pointMultiply(__order-1)
  for i in range(__order, __order+1):
    P = ec.pointAdd(P, __G)
    ec.scrub_point(P)
    print(i % __order, P)
    assert P == ec.pointMultiply(i)

if __name__ == "__main__":
  # execute only if run as a script
  main()

{'fraction_non_alphanumeric': 0.1166584280771132, 'fraction_numerical': 0.1166584280771132, 'mean_word_length': 4.047381546134663, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '1965601', 'n_tokens_mistral': 1075, 'n_tokens_neox': 923, 'n_words': 183}