ASPL Manual v 1.00
© 2024 by SetSphere.COM
10. 5f*D gets the shallow elements symmetric difference
f*D a1 a2 [a3 .. aN] where a1 a2 [a3 .. aN] are set variables
f*D`mtm~ a1 a2 [a3 .. aN]
f*D/mtm~ a1 a2 [a3 .. aN]
f*D
When specified by itself then the operation is performed on the object on top of the stack and the one that is one below it, then the result is pushed on the stack
tsetop asetoid 2** notcommu ins:H_H_H ous:H_H_AH
Use the operator f*D to get the symmetric difference of elements in datasets by shallow matching their names. Shallow matching is a match between two strings based on some intermediate function that takes as input both strings and returns true or false based on the function internal processing. ASPL provides shallow matching through an internal module that the user can edit and make changes to it. The shallow module functions are selectable, the ASPL command shallowed displays the current shallow function being used by ASPL, and the command ~shallowed edits the shallowed module.
f*D EXAMPLEIn this example we will do a shallow set operation on Java Jar archives to locate the Java transaction classes. We will load the sample JMXJAR workspace then we will issue shallow set operations on the datasets. We will locate the files in JMX Jar files where the word transaction occurs. In particular we will match the elements that contain the word "transac" and then we will get the shallow symmetric difference of these elements (classes) found in these datasets (representing the JMX Jar files).
f*D OPERATION# aspl JMXJAR
(start ASPL loading JMXJAR)
① aspl>
v
(display the variables.)
② aspl>
shallowed
(display the shallow processors table.)
③ aspl>
setshallowed prcrelem
(set the shallow processor to prcrelem.)
④ aspl>
setprcr transac
(set the shallow preprocessor to transac.)
⑤ aspl>
shallowed
(display the shallow processors table. notice the change, now the processor is prcrelem, and its preprocessor is transac.)
⑥ aspl>
f*D tx1 tx2
(do a shallow set symmetric difference on the elements (or files) between tx1 and tx2)
⑦ aspl>
f*D tx1 tx2 tx3
(do a shallow set symmetric difference on the elements (or files) between tx1 tx2 and tx3)
● Tickable Predicates for f*D
This f*D is tickable with predicates that are shown in the following table:
a yellow note
f*D`_ gets the shallow elements symmetric difference with one to many matching regex relations f*D`c= gets the shallow elements symmetric difference with one to many matching regex relations such that they have the same checksum f*D`c~ gets the shallow elements symmetric difference with one to many matching regex relations such that they have different checksums f*D`c~~ gets the shallow elements symmetric difference with one to many matching regex relations such that they have all over different checksums f*D`h= gets the shallow elements symmetric difference with one to many matching regex relations such that they have the same entropy f*D`h~ gets the shallow elements symmetric difference with one to many matching regex relations such that they have different entropies f*D`h~~ gets the shallow elements symmetric difference with one to many matching regex relations such that they have all over different entropies f*D`mtm= gets the shallow elements symmetric difference with one to many matching regex relations such that they have the same make time f*D`mtm~ gets the shallow elements symmetric difference with one to many matching regex relations such that they have different make times f*D`mtm~~ gets the shallow elements symmetric difference with one to many matching regex relations such that they have all over different make times f*D`ks= gets the shallow elements symmetric difference with one to many matching regex relations such that they have the same ksum f*D`ks~ gets the shallow elements symmetric difference with one to many matching regex relations such that they have different ksums f*D`ks~~ gets the shallow elements symmetric difference with one to many matching regex relations such that they have all over different ksums