<commit_before>| Template Method               | RESTful Method   |
|-------------------------------+------------------|
| reallocate                    | NET - Reallocate |
| network modification - remove | NET - Delete     |
| reassign simple - new         | NET - Reassign   |
| reassign simple - remove      | NET - Delete     |

* call sequences

** reallocate
   1. Net - Get
   2. POC - Create (POC payload)
   3. Net - Create Recipient Org (Org payload with POC admin/tech/abuse)
   4. Net - Reallocate (Net payload)
   5. Delegation - Get
   6. Delegation - Modify

** delete reallocation
   1. Net - Get
   2. Net - Delete
   3. Org - Delete
   4. POC - Delete
   5. Delegation - Get
   6. Delegation - Modify

** reassign
   1. Net - Get
   2. Net - Create Recipient Customer (Customer payload)
   3. Net - Reassign (Net payload)
   4. Delegation - Get
   5. Delegation - Modify

** delete reassignment
   1. Net - Get
   2. Net - Delete
   3. Customer - Delete
   4. Delegation - Get
   5. Delegation - Modify

* payloads
  - Customer
  - Net
  - Delegation
  - POC
  - Org
  - Error
  - Ticket
  - Ticketed Request

* generate w3c xml schema from relax ng compact schema
  1. modify rnc files that refer to dateTime but don't define it (ApiKeyPayload.rnc)
     : dateTime = \string
  2. simplify schema to remove externalRefs
     : for i in *.rnc; do java -jar ~/Downloads/jing-20090818/bin/jing.jar -sc $i > $(basename $i .rnc).rng; echo $? $i; done
  3. convert rng files to xsd
     : for i in *.rng; do java -jar ~/Downloads/trang-20091111/trang.jar $i $(basename $i .rng).xsd; done

* generate PyXB binding classes
  for each payload needed:
  : pyxbgen -u OrgPayload.xsd -m OrgPayload

* generate generateDS files
  : for f in CustomerPayload.xsd NetPayload.xsd DelegationPayload.xsd PocPayload.xsd OrgPayload.xsd ErrorPayload.xsd TicketedRequestPayload.xsd; do generateDS.py -a '' --namespacedef='xmlns="http://www.arin.net/regrws/core/v1"' -o $(basename $f xsd)py -s my$(basename $f xsd)py $f; done

* rws advantages over e-mail templates
  1. rDNS delegation
  2. direct, automatic error detection

* testing & evaluation issues
  - net get reallocated
  - reassign/reallocate

* README
  - generateDS module names
  - HTTPS caveat (with source address)
  - dependencies
    + python 2.7 (argparse, HTTPConnection)
  - not python 3.x
  - can't include early commits because of api key

* agenda
  - [ ] argparse
    - description
  - [ ] merge each set of resource programs into one
  - [X] check for apikey.py
  - [X] input from template
    + source ip :: -s
    + api key :: -k
    + handle :: positional arg (get, delete)<commit_msg>remote misleading note about PyXB, which wasn't eventually used<commit_after>| Template Method               | RESTful Method   |
|-------------------------------+------------------|
| reallocate                    | NET - Reallocate |
| network modification - remove | NET - Delete     |
| reassign simple - new         | NET - Reassign   |
| reassign simple - remove      | NET - Delete     |

* call sequences

** reallocate
   1. Net - Get
   2. POC - Create (POC payload)
   3. Net - Create Recipient Org (Org payload with POC admin/tech/abuse)
   4. Net - Reallocate (Net payload)
   5. Delegation - Get
   6. Delegation - Modify

** delete reallocation
   1. Net - Get
   2. Net - Delete
   3. Org - Delete
   4. POC - Delete
   5. Delegation - Get
   6. Delegation - Modify

** reassign
   1. Net - Get
   2. Net - Create Recipient Customer (Customer payload)
   3. Net - Reassign (Net payload)
   4. Delegation - Get
   5. Delegation - Modify

** delete reassignment
   1. Net - Get
   2. Net - Delete
   3. Customer - Delete
   4. Delegation - Get
   5. Delegation - Modify

* payloads
  - Customer
  - Net
  - Delegation
  - POC
  - Org
  - Error
  - Ticket
  - Ticketed Request

* generate w3c xml schema from relax ng compact schema
  1. modify rnc files that refer to dateTime but don't define it (ApiKeyPayload.rnc)
     : dateTime = \string
  2. simplify schema to remove externalRefs
     : for i in *.rnc; do java -jar ~/Downloads/jing-20090818/bin/jing.jar -sc $i > $(basename $i .rnc).rng; echo $? $i; done
  3. convert rng files to xsd
     : for i in *.rng; do java -jar ~/Downloads/trang-20091111/trang.jar $i $(basename $i .rng).xsd; done

* generate generateDS files
  : for f in CustomerPayload.xsd NetPayload.xsd DelegationPayload.xsd PocPayload.xsd OrgPayload.xsd ErrorPayload.xsd TicketedRequestPayload.xsd; do generateDS.py -a '' --namespacedef='xmlns="http://www.arin.net/regrws/core/v1"' -o $(basename $f xsd)py -s my$(basename $f xsd)py $f; done

* rws advantages over e-mail templates
  1. rDNS delegation
  2. direct, automatic error detection

* testing & evaluation issues
  - net get reallocated
  - reassign/reallocate

* README
  - generateDS module names
  - HTTPS caveat (with source address)
  - dependencies
    + python 2.7 (argparse, HTTPConnection)
  - not python 3.x
  - can't include early commits because of api key

* agenda
  - [ ] argparse
    - description
  - [ ] merge each set of resource programs into one
  - [X] check for apikey.py
  - [X] input from template
    + source ip :: -s
    + api key :: -k
    + handle :: positional arg (get, delete)
{'fraction_non_alphanumeric': 0.11659703759969617, 'fraction_numerical': 0.018230155715913406, 'mean_word_length': 2.2959949937421777, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6141888', 'n_tokens_mistral': 1796, 'n_tokens_neox': 1711, 'n_words': 602}