text:
* [Installation on AWS](https://github.com/cloudstax/firecamp/tree/master/docs/installation#installation-on-aws)
  * [Install the FireCamp Cluster](https://github.com/cloudstax/firecamp/tree/master/docs/installation#install-the-firecamp-cluster)
  * [Install the Application Cluster](https://github.com/cloudstax/firecamp/tree/master/docs/installation#install-the-application-cluster)
  * [Delete the FireCamp Cluster](https://github.com/cloudstax/firecamp/tree/master/docs/installation#delete-the-firecamp-cluster)
* [The FireCamp Service CLI](https://github.com/cloudstax/firecamp/tree/master/docs/installation#the-firecamp-service-cli)
  * [Create the Stateful Service](https://github.com/cloudstax/firecamp/tree/master/docs/installation#create-the-stateful-service)
  * [Delete the Stateful Service](https://github.com/cloudstax/firecamp/tree/master/docs/installation#delete-the-stateful-service)

# Installation on AWS

## Install the FireCamp Cluster
The FireCamp cluster can be easily installed via [AWS FireCamp QuickStart](https://aws.amazon.com/quickstart/architecture/cloudstax-firecamp/). It will create an ECS or Docker Swarm cluster across 3 AvailabilityZones. So the stateful services such as MongoDB could have 3 replicas on 3 AvailabilityZones, to tolerate the single availability zone failure.

AWS FireCamp QuickStart does not install the latest developing build. If you want to test/develop the latest build, please use the "cloudstax" bucket or create your own bucket. The "cloudstax" bucket has the [master template](https://s3.amazonaws.com/cloudstax/firecamp/releases/latest/templates/firecamp-master.template) and [existingvpc template](https://s3.amazonaws.com/cloudstax/firecamp/releases/latest/templates/firecamp.template). If you use your own bucket, please remember to update the "QSS3BucketName" and "QSS3KeyPrefix" accordingly.

1. Go to [AWS FireCamp QuickStart](https://aws.amazon.com/quickstart/architecture/cloudstax-firecamp/), click "Deploy on AWS into a new VPC", then click "Next".

2. "Specify Details": specify below fields, then click "Next".
* Specify the "Stack name", such as "t1".

  ![](https://s3.amazonaws.com/cloudstax/firecamp/docs/install/cfstack+StackName.png)

* Select 3 "AvailabilityZones".

![](https://s3.amazonaws.com/cloudstax/firecamp/docs/install/cfstack+AvailabilityZones.png)

* Specify the "ClusterName", such as "t1".

![](https://s3.amazonaws.com/cloudstax/firecamp/docs/install/cf+clustername.png)

* Select the "ContainerPlatform", "ecs" or "swarm".

![](https://s3.amazonaws.com/cloudstax/firecamp/docs/install/cf+platform.png)

* Select the "KeyPairName" for SSH to the Bastion and cluster nodes.

  ![](https://s3.amazonaws.com/cloudstax/firecamp/docs/install/cf+stack+KeyPairName.png)

* Select the cluster node Instance Type. For the simple function tests, you may select t2.micro type.

  ![](https://s3.amazonaws.com/cloudstax/firecamp/docs/install/cfstack+NodeInstanceType.png)

* Modify the "RemoteAccessCIDR" that could SSH to the Bastion nodes.

  ![](https://s3.amazonaws.com/cloudstax/firecamp/docs/install/cfstack+RemoteAccessCIDR.png)

3. "Options": click "Next".
4. "Review": check the acknowledge for IAM, and click "Create".

![](https://s3.amazonaws.com/cloudstax/firecamp/docs/install/cfstack+AckIAM.png)

You could also use AWS CLI to create a cluster:
1. Create the parameters json file, such as stack-master.json. This json config file is for AWS region us-east-1. To create a Docker Swarm cluster, simply change the "ContainerPlatform" from "ecs" to "swarm".
Currently the template supports 2 and 3 AZs. It is recommended to use 3 AZs for the production environment.
```
[
  {
    "ParameterKey": "ClusterName",
    "ParameterValue": "t1"
  },
  {
    "ParameterKey": "AvailabilityZones",
    "ParameterValue": "us-east-1a,us-east-1b,us-east-1c"
  },
  {
    "ParameterKey": "ContainerPlatform",
    "ParameterValue": "ecs"
  },
  {
    "ParameterKey": "KeyPairName",
    "ParameterValue": "mykeyfile"
  },
  {
    "ParameterKey": "RemoteAccessCIDR",
    "ParameterValue": "0.0.0.0/0"
  }
]
```

2. Run AWS CLI to create the cluster.
```
#!/bin/sh

aws cloudformation create-stack --stack-name t1 --disable-rollback --capabilities CAPABILITY_IAM --template-url https://s3.amazonaws.com/quickstart-reference/cloudstax/firecamp/latest/templates/firecamp-master.template --parameters file://stack-master.json
```

## Install the Application Cluster
The application could be run on a separate cluster or the FireCamp cluster. The nodes in the FireCamp Cluster could access the stateful services. The CloudFormation template also creates the AppAccessSecurityGroup to protect the outside access to the stateful services running on the FireCamp cluster. You could create the application nodes on the AppAccessSecurityGroup and the same VPC with the FireCamp cluster.

The AppAccessSecurityGroup and VPCID could be found in the CloudFormation Stack output.

![](https://s3.amazonaws.com/cloudstax/firecamp/docs/install/cf+outputs.png)

## Delete the FireCamp Cluster
Use firecamp-service-cli to delete all stateful services created on the cluster. **If any stateful service is not deleted, the cloudformation stack deletion will fail.** There is no need to delete the manage service, CloudFormation will automatically clean up it at deletion.

After all stateful services are deleted, delete the CloudFormation stack, which will delete all resources created by the stack.

# The FireCamp Service CLI
A Bastion AutoScaleGroup is created and is the only one that could SSH to the cluster nodes, and access the FireCamp manage server. The nodes in the FireCamp Cluster could also access the manage server.

After the stack is created, could ssh to the Bastion node, get the FireCamp service cli of the current release such as 0.9.x, `wget https://s3.amazonaws.com/cloudstax/firecamp/releases/0.9.x/packages/firecamp-service-cli.tgz`

## Create the Stateful Service
The MongoDB or PostgreSQL cluster could be simply created using the firecamp-service-cli. In case the service creation command fails, could simply retry it. **It is recommended that you should change the root user's password after the service is created.**

For example, the cluster "t1" is created at region us-east-1. To create a 3 replias MongoDB cluster on 3 availability zones, with 100GB data volume and 10GB journal volume for each replica. The default DB user/password is dbadmin/changeme. Run:
```
firecamp-service-cli -op=create-service -service-type=mongodb -region=us-east-1 -cluster=t1 -service-name=mymongo -mongo-shards=1 -mongo-replicas-pershard=3 -mongo-replicaset-only=true -volume-size=100 -journal-volume-size=10 -admin=admin -password=changeme
```

To create a 3 nodes PostgreSQL cluster on 3 availability zones, with 100GB data volume and 10GB journal volume for each replica. The default DB user/password is postgres/changeme, and the PostgreSQL replication user/password is repluser/replpassword. Run:
```
firecamp-service-cli -op=create-service -service-type=postgresql -region=us-east-1 -cluster=t1 -service-name=mypg -replicas=3 -journal-volume-size=10 -volume-size=100 -passwd=changeme -replication-user=repluser -replication-passwd=replpassword
```

To encrypt the data and/or journal volumes add **-volume-encrypted=true** and/or **-journal-volume-encrypted=true** to the **firecamp-service-cli** command line. It works in AWS environments only.

For more details, please refer to each service's tutorials in the service's readme, such as [MongoDB](https://github.com/cloudstax/firecamp/tree/master/catalog/mongodb).

The general service creation steps:
1. Create the Volumes and persist the metadata to the FireCamp DB. This is usually very fast. But if AWS is slow at creating the Volume, this step will be slow as well.
2. Create the service on the container orchestration framework, such as AWS ECS, and wait for all service containers running. The speed depends on how fast the container orchestration framework could start all containers.
3. Wait some time (10 seconds) for the service containers to stabilize.
4. If the service, such as MongoDB, requires the additional initialization work, start the service initialization task. The speed also depends on how fast the container orchestration framework schedules the task.
5. The initialization task will initialize the service. For example, the MongoDB initialization task does:
  * Initialize the MongoDB replication.
  * Wait some time (10 seconds) for MongoDB to stabilize.
  * Create the admin user.
  * Notify the manage server to do the post initialization work.
  * The manage server will do the post initialization works: Update the mongod.conf of every replica to enable MongoDB Authentication and restart all MongoDB containers.

In case the service creation fails, please simply retry it.

## Delete the Stateful Service
The service could be deleted by one command. For example, to delete the MongoDB or PostgreSQL cluster, run:
```
firecamp-service-cli -op=delete-service -service-type=mongodb -region=us-east-1 -cluster=t1 -service-name=mymongo
```
```
firecamp-service-cli -op=delete-service -service-type=postgresql -region=us-east-1 -cluster=t1 -service-name=mypg
```

**The service deletion will NOT delete the service volumes. Instead, it returns the volumes. You would need to delete the volumes by yourself.** This is to avoid the potential service deletion by mistake.

The service deletion is usually fast. While, occassionally, some AWS operations such as detaching the EBS volume, deleting Route53 record, may take around 100 seconds.


text:
```

Hide the modal window and remove the content.  We remove any event listeners on the contents.

```

##Example

```
 $.ui.hideModal("");

```

##Parameters

```

```

##Returns

```
undefined
```

##Detail

redpajama_set_name: RedPajamaGithub


text:
namespace color
 {
  namespace constant
   {

    namespace _internal
     {
      namespace w3c
       {
        struct olive_t{};
       }
     }

    namespace w3c
     {
      typedef  ::color::constant::base< ::color::constant::_internal::w3c::olive_t > olive_t;
     }

    // Primary value is w3c
    typedef ::color::constant::w3c::olive_t olive_t;

   }
 }

#endif


text:
package org.apache.flex.compiler.internal.codegen.as;

import org.apache.flex.compiler.internal.test.ASTestBase;
import org.apache.flex.compiler.tree.as.IFunctionCallNode;
import org.apache.flex.compiler.tree.as.IVariableNode;
import org.junit.Test;

/**
 * @author Erik de Bruin
 */
public class TestGlobalFunctions extends ASTestBase
{
    @Test
    public void testArray()
    {
        IVariableNode node = getVariable("var a:Array = Array(1);");
        asBlockWalker.visitVariable(node);
        assertOut("var a:Array = Array(1)");
    }

    @Test
    public void testBoolean()
    {
        IVariableNode node = getVariable("var a:Boolean = Boolean(1);");
        asBlockWalker.visitVariable(node);
        assertOut("var a:Boolean = Boolean(1)");
    }

    @Test
    public void testDecodeURI()
    {
        IVariableNode node = getVariable("var a:String = decodeURI('http://whatever.com');");
        asBlockWalker.visitVariable(node);
        assertOut("var a:String = decodeURI('http://whatever.com')");
    }

    @Test
    public void testDecodeURIComponent()
    {
        IVariableNode node = getVariable("var a:String = decodeURIComponent('http://whatever.com');");
        asBlockWalker.visitVariable(node);
        assertOut("var a:String = decodeURIComponent('http://whatever.com')");
    }

    @Test
    public void testEncodeURI()
    {
        IVariableNode node = getVariable("var a:String = encodeURI('http://whatever.com');");
        asBlockWalker.visitVariable(node);
        assertOut("var a:String = encodeURI('http://whatever.com')");
    }

    @Test
    public void testEncodeURIComponent()
    {
        IVariableNode node = getVariable("var a:String = encodeURIComponent('http://whatever.com');");
        asBlockWalker.visitVariable(node);
        assertOut("var a:String = encodeURIComponent('http://whatever.com')");
    }

    @Test
    public void testEscape()
    {
        IVariableNode node = getVariable("var a:String = escape('http://whatever.com');");
        asBlockWalker.visitVariable(node);
        assertOut("var a:String = escape('http://whatever.com')");
    }

    @Test
    public void testInt()
    {
        IVariableNode node = getVariable("var a:int = int(1.8);");
        asBlockWalker.visitVariable(node);
        assertOut("var a:int = int(1.8)");
    }

    @Test
    public void testIsFinite()
    {
        IVariableNode node = getVariable("var a:Boolean = isFinite(1000000.9);");
        asBlockWalker.visitVariable(node);
        assertOut("var a:Boolean = isFinite(1000000.9)");
    }

    @Test
    public void testIsNaN()
    {
        IVariableNode node = getVariable("var a:Boolean = isNaN(NaN);");
        asBlockWalker.visitVariable(node);
        assertOut("var a:Boolean = isNaN(NaN)");
    }

    @Test
    public void testIsXMLName()
    {
        IVariableNode node = getVariable("var a:Boolean = isXMLName(\"?\");");
        asBlockWalker.visitVariable(node);
        assertOut("var a:Boolean = isXMLName(\"?\")");
    }

    @Test
    public void testNumber()
    {
        IVariableNode node = getVariable("var a:Number = Number(\"1\");");
        asBlockWalker.visitVariable(node);
        assertOut("var a:Number = Number(\"1\")");
    }

    @Test
    public void testObject()
    {
        IVariableNode node = getVariable("var a:Object = Object(\"1\");");
        asBlockWalker.visitVariable(node);
        assertOut("var a:Object = Object(\"1\")");
    }

    @Test
    public void testParseFloat()
    {
        IVariableNode node = getVariable("var a:Number = parseFloat(\"1.8\");");
        asBlockWalker.visitVariable(node);
        assertOut("var a:Number = parseFloat(\"1.8\")");
    }

    @Test
    public void testParseInt()
    {
        IVariableNode node = getVariable("var a:Number = parseInt(\"666\", 10);");
        asBlockWalker.visitVariable(node);
        assertOut("var a:Number = parseInt(\"666\", 10)");
    }

    @Test
    public void testString()
    {
        IVariableNode node = getVariable("var a:String = String(100);");
        asBlockWalker.visitVariable(node);
        assertOut("var a:String = String(100)");
    }

    @Test
    public void testTrace()
    {
        IFunctionCallNode node = (IFunctionCallNode) getNode(
                "trace('Hello World');", IFunctionCallNode.class);
        asBlockWalker.visitFunctionCall(node);
        assertOut("trace('Hello World')");
    }

    @Test
    public void testUint()
    {
        IVariableNode node = getVariable("var a:uint = uint(-100);");
        asBlockWalker.visitVariable(node);
        assertOut("var a:uint = uint(-100)");
    }

    @Test
    public void testUnescape()
    {
        IVariableNode node = getVariable("var a:String = unescape('%25');");
        asBlockWalker.visitVariable(node);
        assertOut("var a:String = unescape('%25')");
    }

    @Test
    public void testVector()
    {
        IVariableNode node = getVariable("var a:Vector.<String> = Vector.<String>(['Hello', 'World']);");
        asBlockWalker.visitVariable(node);
        assertOut("var a:Vector.<String> = Vector.<String>(['Hello', 'World'])");
    }

    @Test
    public void testXML()
    {
        IVariableNode node = getVariable("var a:XML = XML('@');");
        asBlockWalker.visitVariable(node);
        assertOut("var a:XML = XML('@')");
    }

    @Test
    public void testXMLList()
    {
        IVariableNode node = getVariable("var a:XMLList = XMLList('<!-- comment -->');");
        asBlockWalker.visitVariable(node);
        assertOut("var a:XMLList = XMLList('<!-- comment -->')");
    }
}


text:
package org.bouncycastle.jcajce.provider.asymmetric;

import java.util.HashMap;
import java.util.Map;

import org.bouncycastle.asn1.ASN1ObjectIdentifier;
import org.bouncycastle.asn1.nist.NISTObjectIdentifiers;
import org.bouncycastle.asn1.oiw.OIWObjectIdentifiers;
import org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers;
import org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers;
import org.bouncycastle.asn1.x509.X509ObjectIdentifiers;
import org.bouncycastle.internal.asn1.cms.CMSObjectIdentifiers;
import org.bouncycastle.jcajce.provider.asymmetric.rsa.KeyFactorySpi;
import org.bouncycastle.jcajce.provider.config.ConfigurableProvider;
import org.bouncycastle.jcajce.provider.util.AsymmetricAlgorithmProvider;
import org.bouncycastle.jcajce.provider.util.AsymmetricKeyInfoConverter;

public class RSA
{
    private static final String PREFIX = "org.bouncycastle.jcajce.provider.asymmetric" + ".rsa.";

    private static final Map<String, String> generalRsaAttributes = new HashMap<String, String>();

    static
    {
        generalRsaAttributes.put("SupportedKeyClasses", "java.security.interfaces.RSAPublicKey|java.security.interfaces.RSAPrivateKey");
        generalRsaAttributes.put("SupportedKeyFormats", "PKCS#8|X.509");
    }

    public static class Mappings
        extends AsymmetricAlgorithmProvider
    {
        public Mappings()
        {
        }

        public void configure(ConfigurableProvider provider)
        {
            provider.addAlgorithm("AlgorithmParameters.OAEP", PREFIX + "AlgorithmParametersSpi$OAEP");
            provider.addAlgorithm("AlgorithmParameters.PSS", PREFIX + "AlgorithmParametersSpi$PSS");

            provider.addAlgorithm("Alg.Alias.AlgorithmParameters.RSAPSS", "PSS");
            provider.addAlgorithm("Alg.Alias.AlgorithmParameters.RSASSA-PSS", "PSS");

            provider.addAlgorithm("Alg.Alias.AlgorithmParameters.SHA224withRSA/PSS", "PSS");
            provider.addAlgorithm("Alg.Alias.AlgorithmParameters.SHA256withRSA/PSS", "PSS");
            provider.addAlgorithm("Alg.Alias.AlgorithmParameters.SHA384withRSA/PSS", "PSS");
            provider.addAlgorithm("Alg.Alias.AlgorithmParameters.SHA512withRSA/PSS", "PSS");

            provider.addAlgorithm("Alg.Alias.AlgorithmParameters.SHA224WITHRSAANDMGF1", "PSS");
            provider.addAlgorithm("Alg.Alias.AlgorithmParameters.SHA256WITHRSAANDMGF1", "PSS");
            provider.addAlgorithm("Alg.Alias.AlgorithmParameters.SHA384WITHRSAANDMGF1", "PSS");
            provider.addAlgorithm("Alg.Alias.AlgorithmParameters.SHA512WITHRSAANDMGF1", "PSS");
            provider.addAlgorithm("Alg.Alias.AlgorithmParameters.SHA3-224WITHRSAANDMGF1", "PSS");
            provider.addAlgorithm("Alg.Alias.AlgorithmParameters.SHA3-256WITHRSAANDMGF1", "PSS");
            provider.addAlgorithm("Alg.Alias.AlgorithmParameters.SHA3-384WITHRSAANDMGF1", "PSS");
            provider.addAlgorithm("Alg.Alias.AlgorithmParameters.SHA3-512WITHRSAANDMGF1", "PSS");

            provider.addAlgorithm("Alg.Alias.AlgorithmParameters.RAWRSAPSS", "PSS");
            provider.addAlgorithm("Alg.Alias.AlgorithmParameters.NONEWITHRSAPSS", "PSS");
            provider.addAlgorithm("Alg.Alias.AlgorithmParameters.NONEWITHRSASSA-PSS", "PSS");
            provider.addAlgorithm("Alg.Alias.AlgorithmParameters.NONEWITHRSAANDMGF1", "PSS");

            provider.addAttributes("Cipher.RSA", generalRsaAttributes);
            provider.addAlgorithm("Cipher.RSA", PREFIX + "CipherSpi$NoPadding");
            provider.addAlgorithm("Cipher.RSA/RAW", PREFIX + "CipherSpi$NoPadding");
            provider.addAlgorithm("Cipher.RSA/PKCS1", PREFIX + "CipherSpi$PKCS1v1_5Padding");
            provider.addAlgorithm("Cipher", PKCSObjectIdentifiers.rsaEncryption, PREFIX + "CipherSpi$PKCS1v1_5Padding", generalRsaAttributes);
            provider.addAlgorithm("Cipher", X509ObjectIdentifiers.id_ea_rsa, PREFIX + "CipherSpi$PKCS1v1_5Padding", generalRsaAttributes);
            provider.addAlgorithm("Cipher.RSA/1", PREFIX + "CipherSpi$PKCS1v1_5Padding_PrivateOnly");
            provider.addAlgorithm("Cipher.RSA/2", PREFIX + "CipherSpi$PKCS1v1_5Padding_PublicOnly");
            provider.addAlgorithm("Cipher.RSA/OAEP", PREFIX + "CipherSpi$OAEPPadding", generalRsaAttributes);
            provider.addAlgorithm("Cipher", PKCSObjectIdentifiers.id_RSAES_OAEP, PREFIX + "CipherSpi$OAEPPadding", generalRsaAttributes);
            provider.addAlgorithm("Cipher.RSA/ISO9796-1", PREFIX + "CipherSpi$ISO9796d1Padding", generalRsaAttributes);

            provider.addAlgorithm("Alg.Alias.Cipher.RSA//RAW", "RSA");
            provider.addAlgorithm("Alg.Alias.Cipher.RSA//NOPADDING", "RSA");
            provider.addAlgorithm("Alg.Alias.Cipher.RSA//PKCS1PADDING", "RSA/PKCS1");
            provider.addAlgorithm("Alg.Alias.Cipher.RSA//OAEPPADDING", "RSA/OAEP");
            provider.addAlgorithm("Alg.Alias.Cipher.RSA//ISO9796-1PADDING", "RSA/ISO9796-1");

            provider.addAlgorithm("KeyFactory.RSA", PREFIX + "KeyFactorySpi");
            provider.addAlgorithm("KeyPairGenerator.RSA", PREFIX + "KeyPairGeneratorSpi");

            provider.addAlgorithm("KeyFactory.RSASSA-PSS", PREFIX + "KeyFactorySpi");
            provider.addAlgorithm("KeyPairGenerator.RSASSA-PSS", PREFIX + "KeyPairGeneratorSpi$PSS");

            AsymmetricKeyInfoConverter keyFact = new KeyFactorySpi();

            registerOid(provider, PKCSObjectIdentifiers.rsaEncryption, "RSA", keyFact);
            registerOid(provider, X509ObjectIdentifiers.id_ea_rsa, "RSA", keyFact);
            registerOid(provider, PKCSObjectIdentifiers.id_RSAES_OAEP, "RSA", keyFact);
            registerOid(provider, PKCSObjectIdentifiers.id_RSASSA_PSS, "RSA", keyFact);

            registerOidAlgorithmParameters(provider, PKCSObjectIdentifiers.rsaEncryption, "RSA");
            registerOidAlgorithmParameters(provider, X509ObjectIdentifiers.id_ea_rsa, "RSA");
            registerOidAlgorithmParameters(provider, PKCSObjectIdentifiers.id_RSAES_OAEP, "OAEP");
            registerOidAlgorithmParameters(provider, PKCSObjectIdentifiers.id_RSASSA_PSS, "PSS");

            provider.addAlgorithm("Signature.RSASSA-PSS", PREFIX + "PSSSignatureSpi$PSSwithRSA", generalRsaAttributes);
            provider.addAlgorithm("Alg.Alias.Signature." + PKCSObjectIdentifiers.id_RSASSA_PSS, "RSASSA-PSS");
            provider.addAlgorithm("Alg.Alias.Signature.OID." + PKCSObjectIdentifiers.id_RSASSA_PSS, "RSASSA-PSS");

            provider.addAlgorithm("Signature.RSA", PREFIX + "DigestSignatureSpi$noneRSA", generalRsaAttributes);
            provider.addAlgorithm("Signature.RAWRSASSA-PSS", PREFIX + "PSSSignatureSpi$nonePSS", generalRsaAttributes);

            provider.addAlgorithm("Alg.Alias.Signature.RAWRSA", "RSA");
            provider.addAlgorithm("Alg.Alias.Signature.NONEWITHRSA", "RSA");
            provider.addAlgorithm("Alg.Alias.Signature.RAWRSAPSS", "RAWRSASSA-PSS");
            provider.addAlgorithm("Alg.Alias.Signature.NONEWITHRSAPSS", "RAWRSASSA-PSS");
            provider.addAlgorithm("Alg.Alias.Signature.NONEWITHRSASSA-PSS", "RAWRSASSA-PSS");
            provider.addAlgorithm("Alg.Alias.Signature.NONEWITHRSAANDMGF1", "RAWRSASSA-PSS");
            provider.addAlgorithm("Alg.Alias.Signature.RSAPSS", "RSASSA-PSS");

            addPSSSignature(provider, "SHA224", "MGF1", PREFIX + "PSSSignatureSpi$SHA224withRSA");
            addPSSSignature(provider, "SHA256", "MGF1", PREFIX + "PSSSignatureSpi$SHA256withRSA");
            addPSSSignature(provider, "SHA384", "MGF1", PREFIX + "PSSSignatureSpi$SHA384withRSA");
            addPSSSignature(provider, "SHA512", "MGF1", PREFIX + "PSSSignatureSpi$SHA512withRSA");
            addPSSSignature(provider, "SHA512(224)", "MGF1", PREFIX + "PSSSignatureSpi$SHA512_224withRSA");
            addPSSSignature(provider, "SHA512(256)", "MGF1", PREFIX + "PSSSignatureSpi$SHA512_256withRSA");

            addPSSSignature(provider, "SHA3-224", "MGF1", PREFIX + "PSSSignatureSpi$SHA3_224withRSA");
            addPSSSignature(provider, "SHA3-256", "MGF1", PREFIX + "PSSSignatureSpi$SHA3_256withRSA");
            addPSSSignature(provider, "SHA3-384", "MGF1", PREFIX + "PSSSignatureSpi$SHA3_384withRSA");
            addPSSSignature(provider, "SHA3-512", "MGF1", PREFIX + "PSSSignatureSpi$SHA3_512withRSA");
            addPSSSignature(provider, "SHAKE128", PREFIX + "PSSSignatureSpi$SHAKE128WithRSAPSS", CMSObjectIdentifiers.id_RSASSA_PSS_SHAKE128);
            addPSSSignature(provider, "SHAKE256", PREFIX + "PSSSignatureSpi$SHAKE256WithRSAPSS", CMSObjectIdentifiers.id_RSASSA_PSS_SHAKE256);

            addPSSSignature(provider, "SHA224", "SHAKE128", PREFIX + "PSSSignatureSpi$SHA224withRSAandSHAKE128");
            addPSSSignature(provider, "SHA256", "SHAKE128", PREFIX + "PSSSignatureSpi$SHA256withRSAandSHAKE128");
            addPSSSignature(provider, "SHA384", "SHAKE128", PREFIX + "PSSSignatureSpi$SHA384withRSAandSHAKE128");
            addPSSSignature(provider, "SHA512", "SHAKE128", PREFIX + "PSSSignatureSpi$SHA512withRSAandSHAKE128");
            addPSSSignature(provider, "SHA512(224)", "SHAKE128", PREFIX + "PSSSignatureSpi$SHA512_224withRSAandSHAKE128");
            addPSSSignature(provider, "SHA512(256)", "SHAKE128", PREFIX + "PSSSignatureSpi$SHA512_256withRSAandSHAKE128");

            addPSSSignature(provider, "SHA224", "SHAKE256", PREFIX + "PSSSignatureSpi$SHA224withRSAandSHAKE256");
            addPSSSignature(provider, "SHA256", "SHAKE256", PREFIX + "PSSSignatureSpi$SHA256withRSAandSHAKE256");
            addPSSSignature(provider, "SHA384", "SHAKE256", PREFIX + "PSSSignatureSpi$SHA384withRSAandSHAKE256");
            addPSSSignature(provider, "SHA512", "SHAKE256", PREFIX + "PSSSignatureSpi$SHA512withRSAandSHAKE256");
            addPSSSignature(provider, "SHA512(224)", "SHAKE256", PREFIX + "PSSSignatureSpi$SHA512_224withRSAandSHAKE256");
            addPSSSignature(provider, "SHA512(256)", "SHAKE256", PREFIX + "PSSSignatureSpi$SHA512_256withRSAandSHAKE256");

            addPSSSignature(provider, "SHA3-224", "SHAKE128", PREFIX + "PSSSignatureSpi$SHA3_224withRSAandSHAKE128");
            addPSSSignature(provider, "SHA3-256", "SHAKE128", PREFIX + "PSSSignatureSpi$SHA3_256withRSAandSHAKE128");
            addPSSSignature(provider, "SHA3-384", "SHAKE128", PREFIX + "PSSSignatureSpi$SHA3_384withRSAandSHAKE128");
            addPSSSignature(provider, "SHA3-512", "SHAKE128", PREFIX + "PSSSignatureSpi$SHA3_512withRSAandSHAKE128");

            addPSSSignature(provider, "SHA3-224", "SHAKE256", PREFIX + "PSSSignatureSpi$SHA3_224withRSAandSHAKE256");
            addPSSSignature(provider, "SHA3-256", "SHAKE256", PREFIX + "PSSSignatureSpi$SHA3_256withRSAandSHAKE256");
            addPSSSignature(provider, "SHA3-384", "SHAKE256", PREFIX + "PSSSignatureSpi$SHA3_384withRSAandSHAKE256");
            addPSSSignature(provider, "SHA3-512", "SHAKE256", PREFIX + "PSSSignatureSpi$SHA3_512withRSAandSHAKE256");

            if (provider.hasAlgorithm("MessageDigest", "MD2"))
            {
                addDigestSignature(provider, "MD2", PREFIX + "DigestSignatureSpi$MD2", PKCSObjectIdentifiers.md2WithRSAEncryption);
            }

            if (provider.hasAlgorithm("MessageDigest", "MD4"))
            {
                addDigestSignature(provider, "MD4", PREFIX + "DigestSignatureSpi$MD4", PKCSObjectIdentifiers.md4WithRSAEncryption);
            }

            if (provider.hasAlgorithm("MessageDigest", "MD5"))
            {
                addDigestSignature(provider, "MD5", PREFIX + "DigestSignatureSpi$MD5", PKCSObjectIdentifiers.md5WithRSAEncryption);
                addISO9796Signature(provider, "MD5", PREFIX + "ISOSignatureSpi$MD5WithRSAEncryption");
            }

            if (provider.hasAlgorithm("MessageDigest", "SHA1"))
            {
                provider.addAlgorithm("Alg.Alias.AlgorithmParameters.SHA1withRSA/PSS", "PSS");
                provider.addAlgorithm("Alg.Alias.AlgorithmParameters.SHA1WITHRSAANDMGF1", "PSS");

                addPSSSignature(provider, "SHA1", "MGF1", PREFIX + "PSSSignatureSpi$SHA1withRSA");
                addPSSSignature(provider, "SHA1", "SHAKE128", PREFIX + "PSSSignatureSpi$SHA1withRSAandSHAKE128");
                addPSSSignature(provider, "SHA1", "SHAKE256", PREFIX + "PSSSignatureSpi$SHA1withRSAandSHAKE256");
                addDigestSignature(provider, "SHA1", PREFIX + "DigestSignatureSpi$SHA1", PKCSObjectIdentifiers.sha1WithRSAEncryption);
                addISO9796Signature(provider, "SHA1", PREFIX + "ISOSignatureSpi$SHA1WithRSAEncryption");

                provider.addAlgorithm("Alg.Alias.Signature." + OIWObjectIdentifiers.sha1WithRSA, "SHA1WITHRSA");
                provider.addAlgorithm("Alg.Alias.Signature.OID." + OIWObjectIdentifiers.sha1WithRSA, "SHA1WITHRSA");

                addX931Signature(provider, "SHA1", PREFIX + "X931SignatureSpi$SHA1WithRSAEncryption");
            }

            addDigestSignature(provider, "SHA224", PREFIX + "DigestSignatureSpi$SHA224", PKCSObjectIdentifiers.sha224WithRSAEncryption);
            addDigestSignature(provider, "SHA256", PREFIX + "DigestSignatureSpi$SHA256", PKCSObjectIdentifiers.sha256WithRSAEncryption);
            addDigestSignature(provider, "SHA384", PREFIX + "DigestSignatureSpi$SHA384", PKCSObjectIdentifiers.sha384WithRSAEncryption);
            addDigestSignature(provider, "SHA512", PREFIX + "DigestSignatureSpi$SHA512", PKCSObjectIdentifiers.sha512WithRSAEncryption);
            addDigestSignature(provider, "SHA512(224)", PREFIX + "DigestSignatureSpi$SHA512_224", PKCSObjectIdentifiers.sha512_224WithRSAEncryption);
            addDigestSignature(provider, "SHA512(256)", PREFIX + "DigestSignatureSpi$SHA512_256", PKCSObjectIdentifiers.sha512_256WithRSAEncryption);

            addDigestSignature(provider, "SHA3-224", PREFIX + "DigestSignatureSpi$SHA3_224", NISTObjectIdentifiers.id_rsassa_pkcs1_v1_5_with_sha3_224);
            addDigestSignature(provider, "SHA3-256", PREFIX + "DigestSignatureSpi$SHA3_256", NISTObjectIdentifiers.id_rsassa_pkcs1_v1_5_with_sha3_256);
            addDigestSignature(provider, "SHA3-384", PREFIX + "DigestSignatureSpi$SHA3_384", NISTObjectIdentifiers.id_rsassa_pkcs1_v1_5_with_sha3_384);
            addDigestSignature(provider, "SHA3-512", PREFIX + "DigestSignatureSpi$SHA3_512", NISTObjectIdentifiers.id_rsassa_pkcs1_v1_5_with_sha3_512);

            addISO9796Signature(provider, "SHA224", PREFIX + "ISOSignatureSpi$SHA224WithRSAEncryption");
            addISO9796Signature(provider, "SHA256", PREFIX + "ISOSignatureSpi$SHA256WithRSAEncryption");
            addISO9796Signature(provider, "SHA384", PREFIX + "ISOSignatureSpi$SHA384WithRSAEncryption");
            addISO9796Signature(provider, "SHA512", PREFIX + "ISOSignatureSpi$SHA512WithRSAEncryption");
            addISO9796Signature(provider, "SHA512(224)", PREFIX + "ISOSignatureSpi$SHA512_224WithRSAEncryption");
            addISO9796Signature(provider, "SHA512(256)", PREFIX + "ISOSignatureSpi$SHA512_256WithRSAEncryption");

            addX931Signature(provider, "SHA224", PREFIX + "X931SignatureSpi$SHA224WithRSAEncryption");
            addX931Signature(provider, "SHA256", PREFIX + "X931SignatureSpi$SHA256WithRSAEncryption");
            addX931Signature(provider, "SHA384", PREFIX + "X931SignatureSpi$SHA384WithRSAEncryption");
            addX931Signature(provider, "SHA512", PREFIX + "X931SignatureSpi$SHA512WithRSAEncryption");
            addX931Signature(provider, "SHA512(224)", PREFIX + "X931SignatureSpi$SHA512_224WithRSAEncryption");
            addX931Signature(provider, "SHA512(256)", PREFIX + "X931SignatureSpi$SHA512_256WithRSAEncryption");

            if (provider.hasAlgorithm("MessageDigest", "RIPEMD128"))
            {
                addDigestSignature(provider, "RIPEMD128", PREFIX + "DigestSignatureSpi$RIPEMD128", TeleTrusTObjectIdentifiers.rsaSignatureWithripemd128);
                addDigestSignature(provider, "RMD128", PREFIX + "DigestSignatureSpi$RIPEMD128", null);

                addX931Signature(provider, "RMD128", PREFIX + "X931SignatureSpi$RIPEMD128WithRSAEncryption");
                addX931Signature(provider, "RIPEMD128", PREFIX + "X931SignatureSpi$RIPEMD128WithRSAEncryption");
            }

            if (provider.hasAlgorithm("MessageDigest", "RIPEMD160"))
            {
                addDigestSignature(provider, "RIPEMD160", PREFIX + "DigestSignatureSpi$RIPEMD160", TeleTrusTObjectIdentifiers.rsaSignatureWithripemd160);
                addDigestSignature(provider, "RMD160", PREFIX + "DigestSignatureSpi$RIPEMD160", null);
                provider.addAlgorithm("Alg.Alias.Signature.RIPEMD160WithRSA/ISO9796-2", "RIPEMD160withRSA/ISO9796-2");
                provider.addAlgorithm("Signature.RIPEMD160withRSA/ISO9796-2", PREFIX + "ISOSignatureSpi$RIPEMD160WithRSAEncryption");

                addX931Signature(provider, "RMD160", PREFIX + "X931SignatureSpi$RIPEMD160WithRSAEncryption");
                addX931Signature(provider, "RIPEMD160", PREFIX + "X931SignatureSpi$RIPEMD160WithRSAEncryption");
            }

            if (provider.hasAlgorithm("MessageDigest", "RIPEMD256"))
            {
                addDigestSignature(provider, "RIPEMD256", PREFIX + "DigestSignatureSpi$RIPEMD256", TeleTrusTObjectIdentifiers.rsaSignatureWithripemd256);
                addDigestSignature(provider, "RMD256", PREFIX + "DigestSignatureSpi$RIPEMD256", null);
            }

            if (provider.hasAlgorithm("MessageDigest", "WHIRLPOOL"))
            {
                addISO9796Signature(provider, "Whirlpool", PREFIX + "ISOSignatureSpi$WhirlpoolWithRSAEncryption");
                addISO9796Signature(provider, "WHIRLPOOL", PREFIX + "ISOSignatureSpi$WhirlpoolWithRSAEncryption");
                addX931Signature(provider, "Whirlpool", PREFIX + "X931SignatureSpi$WhirlpoolWithRSAEncryption");
                addX931Signature(provider, "WHIRLPOOL", PREFIX + "X931SignatureSpi$WhirlpoolWithRSAEncryption");
            }
        }

        private void addDigestSignature(
            ConfigurableProvider provider,
            String digest,
            String className,
            ASN1ObjectIdentifier oid)
        {
            String mainName = digest + "WITHRSA";
            String jdk11Variation1 = digest + "withRSA";
            String jdk11Variation2 = digest + "WithRSA";
            String alias = digest + "/" + "RSA";
            String longName = digest + "WITHRSAENCRYPTION";
            String longJdk11Variation1 = digest + "withRSAEncryption";
            String longJdk11Variation2 = digest + "WithRSAEncryption";

            provider.addAlgorithm("Signature." + mainName, className);
            provider.addAlgorithm("Alg.Alias.Signature." + jdk11Variation1, mainName);
            provider.addAlgorithm("Alg.Alias.Signature." + jdk11Variation2, mainName);
            provider.addAlgorithm("Alg.Alias.Signature." + longName, mainName);
            provider.addAlgorithm("Alg.Alias.Signature." + longJdk11Variation1, mainName);
            provider.addAlgorithm("Alg.Alias.Signature." + longJdk11Variation2, mainName);
            provider.addAlgorithm("Alg.Alias.Signature." + alias, mainName);

            if (oid != null)
            {
                provider.addAlgorithm("Alg.Alias.Signature." + oid, mainName);
                provider.addAlgorithm("Alg.Alias.Signature.OID." + oid, mainName);
            }
            provider.addAttributes("Signature." + mainName, generalRsaAttributes);
        }

        private void addISO9796Signature(
            ConfigurableProvider provider,
            String digest,
            String className)
        {
            provider.addAlgorithm("Alg.Alias.Signature." + digest + "withRSA/ISO9796-2", digest + "WITHRSA/ISO9796-2");
            provider.addAlgorithm("Alg.Alias.Signature." + digest + "WithRSA/ISO9796-2", digest + "WITHRSA/ISO9796-2");
            provider.addAlgorithm("Signature." + digest + "WITHRSA/ISO9796-2", className);
            provider.addAttributes("Signature." + digest + "WITHRSA/ISO9796-2", generalRsaAttributes);
        }

        private void addPSSSignature(
            ConfigurableProvider provider,
            String digest, String mgf,
            String className)
        {
            String stem = "WITHRSAAND" + mgf;
            if (mgf.equals("MGF1"))
            {
                provider.addAlgorithm("Alg.Alias.Signature." + digest + "withRSA/PSS", digest + stem);
                provider.addAlgorithm("Alg.Alias.Signature." + digest + "WithRSA/PSS", digest + stem);
                provider.addAlgorithm("Alg.Alias.Signature." + digest + "WITHRSA/PSS", digest + stem);
                provider.addAlgorithm("Alg.Alias.Signature." + digest + "withRSASSA-PSS", digest + stem);
                provider.addAlgorithm("Alg.Alias.Signature." + digest + "WithRSASSA-PSS", digest + stem);
                provider.addAlgorithm("Alg.Alias.Signature." + digest + "WITHRSASSA-PSS", digest + stem);
            }

            provider.addAlgorithm("Alg.Alias.Signature." + digest + "withRSAand" + mgf, digest + stem);
            provider.addAlgorithm("Alg.Alias.Signature." + digest + "WithRSAAnd" + mgf, digest + stem);

            provider.addAlgorithm("Signature." + digest + "WITHRSAAND" + mgf, className);
            provider.addAttributes("Signature." + digest + "WITHRSAAND" + mgf, generalRsaAttributes);
        }

        private void addPSSSignature(
            ConfigurableProvider provider,
            String digest,
            String className,
            ASN1ObjectIdentifier sigOid)
        {
            provider.addAlgorithm("Alg.Alias.Signature." + digest + "withRSA/PSS", digest + "WITHRSAPSS");
            provider.addAlgorithm("Alg.Alias.Signature." + digest + "WithRSA/PSS", digest + "WITHRSAPSS");
            provider.addAlgorithm("Alg.Alias.Signature." + digest + "withRSASSA-PSS", digest + "WITHRSAPSS");
            provider.addAlgorithm("Alg.Alias.Signature." + digest + "WithRSASSA-PSS", digest + "WITHRSAPSS");
            provider.addAlgorithm("Alg.Alias.Signature." + digest + "WITHRSASSA-PSS", digest + "WITHRSAPSS");

            provider.addAlgorithm("Signature", sigOid, className);
            provider.addAlgorithm("Signature." + digest + "WITHRSAPSS", className);
            provider.addAttributes("Signature." + digest + "WITHRSAPSS", generalRsaAttributes);
        }

        private void addX931Signature(
            ConfigurableProvider provider,
            String digest,
            String className)
        {
            provider.addAlgorithm("Alg.Alias.Signature." + digest + "withRSA/X9.31", digest + "WITHRSA/X9.31");
            provider.addAlgorithm("Alg.Alias.Signature." + digest + "WithRSA/X9.31", digest + "WITHRSA/X9.31");
            provider.addAlgorithm("Signature." + digest + "WITHRSA/X9.31", className);
            provider.addAttributes("Signature." + digest + "WITHRSA/X9.31", generalRsaAttributes);
        }
    }
}


text:
var Validation = require('../Validation');

/**
 * Builds a schema validator.
 *
 * @param {FormValidatorFactory} validatorFactory - Validator factory to use in built schema validator.
 */
function buildSchemaValidator(validatorFactory) {
  /**
  * Evaluates if field data matches a validation
  *
  * @param {Object} fieldName - Name of field to evaluate.
  * @param {Object} formData - Form data against which to evaluate field.
  * @param {Object} config - Rule configuration.
  * @param {function} next - Validation callback.
  */
  return function schema(fieldName, formData, config, next) {
    var fieldData = formData[fieldName];

    var validator = validatorFactory(config);

    var validation = validator.validate(fieldData);

    if (!validation.succeeded()) {
      validation = prefixValidationErrorFields(
        validation,
        Object.keys(config),
        fieldName + '.'
      );

      next(validation);
    } else {
      next();
    }
  };
}

function prefixValidationErrorFields(validation, fieldNames, prefix) {
  var renamedValidation = new Validation();

  fieldNames.forEach(function (fieldName) {
    validation.errors(fieldName).forEach(function (err) {
      renamedValidation.addError(prefix + fieldName, err);
    });
  });

  return renamedValidation;
}

module.exports = buildSchemaValidator;


text:
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">

	<link rel="stylesheet" href="css/style.css">
	<link rel="stylesheet" href="js/alert/themes/alertify.core.css">
	<link rel="stylesheet" href="js/alert/themes/alertify.default.css">

	<script type="text/javascript" src="js/jquery-1.10.2.js"></script
	<script type="text/javascript" src="js/alertify.js"></script>
	<script type="text/javascript" src="js/munin_change.js"></script>
	<script src="js/alert/lib/alertify.js"></script>
</head>
<body>
	<form name="form" method="POST" action="">
<?php
	include_once('backend/create_table.php');
	include_once('backend/cmd_exe.php');
	create_table();
?>
	</form>
	<div class="change_submit">
	<input type="submit" id="change" value="submit">
	</div>
</body>
</html>


text:
[![Build Status](https://travis-ci.org/spree-contrib/spree_volume_pricing.svg?branch=3-0-stable)](https://travis-ci.org/spree-contrib/spree_volume_pricing)
[![Code Climate](https://codeclimate.com/github/spree-contrib/spree_volume_pricing/badges/gpa.svg)](https://codeclimate.com/github/spree-contrib/spree_volume_pricing)

Volume Pricing is an extension to Spree (a complete open source commerce solution for Ruby on Rails) that uses predefined ranges of quantities to determine the price for a particular product variant.  For instance, this allows you to set a price for quantities between 1-10, another price for quantities between (10-100) and another for quantities of 100 or more.  If no volume price is defined for a variant, then the standard price is used.

Each VolumePrice contains the following values:

1. **Variant:** Each VolumePrice is associated with a _Variant_, which is used to link products to particular prices.
1. **Name:** The human readable representation of the quantity range (Ex. 10-100).  (Optional)
1. **Discount Type** The type of discount to apply.  **Price:** sets price to the amount specified. **Dollar:** subtracts specified amount from the Variant price.  **Percent:** subtracts the specified amounts percentage from the Variant price.
1. **Range:** The quantity range for which the price is valid (See Below for Examples of Valid Ranges.)
1. **Amount:** The price of the product if the line item quantity falls within the specified range.
1. **Position:** Integer value for `acts_as_list` (Helps keep the volume prices in a defined order.)

---

## Install

The extension contains a rails generator that will add the necessary migrations and give you the option to run the migrations, or run them later, perhaps after installing other extensions. Once you have bundled the extension, run the install generator and its ready to use.

      rails generate spree_volume_pricing:install

Easily add volume pricing display to your product page:

      <%= render partial: 'spree/products/volume_pricing', locals: { product: @product } %>

---

## Ranges

Ranges are expressed as Strings and are similar to the format of a Range object in Ruby.  The lower number of the range is always inclusive.  If the range is defined with '..' then it also includes the upper end of the range.  If the range is defined with '...' then the upper end of the range is not inclusive.

Ranges can also be defined as "open ended."  Open ended ranges are defined with an integer followed by a '+' character.  These ranges are inclusive of the integer and any value higher then the integer.

All ranges need to be expressed as Strings and can include or exclude parentheses.  "(1..10)" and "1..10" are considered to be a valid range.

---

## Examples

Consider the following examples of volume prices:

       Variant                Name               Range        Amount         Position
       -------------------------------------------------------------------------------
       Rails T-Shirt          1-5                (1..5)       19.99          1
       Rails T-Shirt          6-9                (6...10)     18.99          2
       Rails T-Shirt          10 or more         (10+)        17.99          3

### Example 1

Cart Contents:

       Product                Quantity       Price       Total
       ----------------------------------------------------------------
       Rails T-Shirt          1              19.99       19.99

### Example 2

Cart Contents:

       Product                Quantity       Price       Total
       ----------------------------------------------------------------
       Rails T-Shirt          5              19.99       99.95

### Example 3

Cart Contents:

      Product                Quantity       Price       Total
      ----------------------------------------------------------------
      Rails T-Shirt          6              18.99       113.94

### Example 4

Cart Contents:

      Product                Quantity       Price       Total
      ----------------------------------------------------------------
      Rails T-Shirt          10             17.99       179.90

### Example 5

Cart Contents:

      Product                Quantity       Price       Total
      ----------------------------------------------------------------
      Rails T-Shirt          20             17.99       359.80

---

## Additional Notes

* The volume price is applied based on the total quantity ordered for a particular variant.  It does not apply different prices for the portion of the quantity that falls within a particular range. Only the one price is used (although this would be an interesting configurable option if someone wanted to write a patch.)

---

## Contributing

See corresponding [contributing guidelines][1].

---

## License

Copyright (c) 2009-2015 [Spree Commerce][2] and [contributors][3], released under the [New BSD License][4]

[1]: https://github.com/spree-contrib/spree_volume_pricing/blob/master/CONTRIBUTING.md
[2]: https://github.com/spree
[3]: https://github.com/spree-contrib/spree_volume_pricing/graphs/contributors
[4]: https://github.com/spree-contrib/spree_volume_pricing/blob/master/LICENSE.md


text:
// Copyright (c) 2003-present, Jodd Team (http://jodd.org)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.

package jodd.joy.madvoc;

import jodd.joy.vtor.VtorUtil;
import jodd.madvoc.ActionRequest;
import jodd.madvoc.component.MadvocEncoding;
import jodd.madvoc.meta.In;
import jodd.madvoc.meta.scope.MadvocContext;
import jodd.madvoc.result.ActionResult;
import jodd.net.MimeTypes;
import jodd.util.CharUtil;
import jodd.vtor.Violation;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.OutputStream;
import java.nio.charset.Charset;
import java.util.List;

/**
 * VTor validation result as JSON string.
 */
public class VtorJsonActionResult implements ActionResult<String> {

	/**
	 * Defines response content type of returned json string.
	 * By default it is set to application/json.
	 * If set to null response will be not set.
	 *

	 * Some form plugins (as jquery form plugin) submits multipart form
	 * using hidden iframe, not using ajax. Therefore, Accept header
	 * does not contains application/json (since it is regular post and ajax).
	 * In this case change response content type to "text/html". Or disable
	 * iframe posting if possible.
	 */
	public static String jsonResponseContentType = MimeTypes.MIME_APPLICATION_JSON;

	@In @MadvocContext
	protected MadvocEncoding madvocEncoding;

	@Override
	public void render(final ActionRequest actionRequest, final String resultValue) throws Exception {
		final HttpServletRequest request = actionRequest.getHttpServletRequest();
		final HttpServletResponse response = actionRequest.getHttpServletResponse();

		final Object action = actionRequest.getAction();
		final AppAction appAction = (AppAction) action;

		final List<Violation> list = appAction.violations();

		final String result = VtorUtil.createViolationsJsonString(request, list);

		if (jsonResponseContentType != null) {
			response.setContentType(jsonResponseContentType);
		}

		final char[] chars = result.toCharArray();
		final byte[] data = CharUtil.toByteArray(chars, Charset.forName(madvocEncoding.getEncoding()));

		final OutputStream os = response.getOutputStream();
		os.write(data);
		os.flush();
	}

}


text:
<?php

namespace Lollypop\GearBundle\Event;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of GCMCCSResponseInterface
 *
 * @author seshachalam
 */
interface GCMCCSResponseInterface
{

    public function getGCMCCSResponseMessage();

}


text:
namespace RDumont.NugetContentGenerator.Runtime
{
    using System;
    using System.Collections.Generic;
    using System.Collections.Specialized;
    using System.IO;
    using System.Linq;
    using System.Text.RegularExpressions;
    using Microsoft.Build.Framework;
    using Microsoft.Build.Utilities;

    public class NuGetContent : Task
    {
        [Required]
        public string[] Files { get; set; }

        public override bool Execute()
        {
            var generator = new Generator();
            var root = Environment.CurrentDirectory;

            foreach (var file in Files.Where(f => f.EndsWith(".cs")))
            {
                var fullPath = Path.Combine(root, file);
                var contents = File.ReadAllText(fullPath);

                var output = generator.Generate(fullPath, contents);
                var targetPath = file + ".pp";

                File.WriteAllText(Path.Combine(root, targetPath), output);
            }

            return true;
        }
    }
}


text:
#pragma once

#include <map>
#include <set>
#include <vector>
#include "IProcessor.h"
#include "Utility.h"

class SummaryProcessor : public IProcessor
{
private:
	/**
	*	@brief target is x64 or not
	*/
	const bool isTarget64_;

	/**
	*	@brief gflag
	*/
	const ULONG32 ntGlobalFlag_;

	struct UstRecord {
		ULONG64 ustAddress;
		ULONG64 count;
		ULONG64 totalSize;
		ULONG64 maxSize;
		ULONG64 largestEntry;
		bool operator< (const SummaryProcessor::UstRecord& rhs) const
		{
			return totalSize < rhs.totalSize;
		}
	};

	/**
	*	@brief ustAddress to UstRecord map
	*/
	std::map<ULONG64, UstRecord> records_;

	/**
	*	@brief operator (disabled)
	*	@note to avoid C4512 warning
	*/
	SummaryProcessor& operator=(const SummaryProcessor&);

	/**
	*	@brief print set of UstRecord
	*/
	void PrintUstRecords(std::set<UstRecord>& records);

	/**
	*	@brief get caller module base address
	*/
	ULONG64 GetCallerModule(ULONG64 ustAddress, std::vector<ModuleInfo> &loadedModules);

	/**
	*	@brief test ust has matched frame
	*	@param key [in] prefix search key
	*/
	BOOL HasMatchedFrame(ULONG64 ustAddress, const char *key);

	/**
	*	@brief print stack trace
	*	@param ustAddress [in] address of entry in user mode stack trace database
	*/
	void PrintStackTrace(ULONG64 ustAddress);

public:
	/**
	*	@brief constructor
	*/
	SummaryProcessor();

	/**
	*	@copydoc IProcessor::StartHeap()
	*/
	void StartHeap(ULONG64 /*heapAddress*/) {}

	/**
	*	@copydoc IProcessor::Register()
	*/
	void Register(ULONG64 ustAddress,
		ULONG64 size, ULONG64 address,
		ULONG64 userSize, ULONG64 userAddress);

	/**
	*	@copydoc IProcessor::FinishHeap()
	*/
	void FinishHeap(ULONG64 /*heapAddress*/) {}

	/**
	*	@brief print summary of heap usage
	*/
	void Print();

	/**
	*	@brief print summary of matched heap usage
	*	@param key [in] prefix search key
	*/
	void Print(const char *key);
};


text:
This generator is made based on [generator-webapp](https://github.com/yeoman/generator-webapp)

## Additional function

Following functions will be added.

- jade task
- easymock task

## Build

### command

for local

  grunt serve

for stg

  comming soon

for prod

  comming soon

## Settings

### Script

  settings/scripts.json

### network

  settings/network.json


text:
History
-------

0.1.0
++++++

* Configuration System (new ``settings`` command)
* New Git Transparency Mode
    * Black Foreground Option
    * Disable Colors Option
* Update Available Alerts (via GitHub)
* New Harvest command
* New Install command

0.0.9 (?)
+++++++++

* Initial Release


text:
from galois_tables import LOG_TABLE, EXP_TABLE

class Galois256(object):

    def __init__(self):
        pass

    @staticmethod
    def exp(a, n):
        """
        Computes a**n

        :param a: A member of the field
        :param n: A plain old integer
        :return: The result of multiplying a by itself n times
        """
        if n == 0: return 1
        elif a == 0: return 0
        else:
            log_result = (LOG_TABLE[a] * n) % 255
            return EXP_TABLE[log_result]


text:
Module Name: AzureRM.Cdn
Module Guid: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
Download Help Link: https://docs.microsoft.com/en-us/powershell/module/azurerm.cdn
Help Version: 4.2.2.0
Locale: en-US
---

# AzureRM.Cdn Module
## Description
The topics in this section document the Azure PowerShell cmdlets for Azure Content Delivery Network (CDN) in the Azure Resource Manager (ARM) framework. The cmdlets exist in the Microsoft.Azure.Commands.Cdn namespace.

## AzureRM.Cdn Cmdlets
### [Confirm-AzureRmCdnEndpointProbeURL](Confirm-AzureRmCdnEndpointProbeURL.md)
Validates a probe URL.

### [Disable-AzureRmCdnCustomDomain](Disable-AzureRmCdnCustomDomain.md)
Disables custom HTTPS.

### [Enable-AzureRmCdnCustomDomain](Enable-AzureRmCdnCustomDomain.md)
Enables custom HTTPS.

### [Get-AzureRmCdnCustomDomain](Get-AzureRmCdnCustomDomain.md)
Gets a CDN custom domain.

### [Get-AzureRmCdnEdgeNodes](Get-AzureRmCdnEdgeNodes.md)
Gets Azure CDN edgenodes.

### [Get-AzureRmCdnEndpoint](Get-AzureRmCdnEndpoint.md)
Gets a CDN endpoint.

### [Get-AzureRmCdnEndpointNameAvailability](Get-AzureRmCdnEndpointNameAvailability.md)
Gets availability status of the CDN endpoint.

### [Get-AzureRmCdnEndpointResourceUsage](Get-AzureRmCdnEndpointResourceUsage.md)
Gets the resource usage of a CDN endpoint.

### [Get-AzureRmCdnOrigin](Get-AzureRmCdnOrigin.md)
Gets a CDN origin server.

### [Get-AzureRmCdnProfile](Get-AzureRmCdnProfile.md)
Gets a CDN profile.

### [Get-AzureRmCdnProfileResourceUsage](Get-AzureRmCdnProfileResourceUsage.md)
Gets the resource usage of a CDN profile.

### [Get-AzureRmCdnProfileSsoUrl](Get-AzureRmCdnProfileSsoUrl.md)
Gets the single sign-on URL of a CDN profile.

### [Get-AzureRmCdnProfileSupportedOptimizationType](Get-AzureRmCdnProfileSupportedOptimizationType.md)
Gets the supported optimization types for a CDN profile.

### [Get-AzureRmCdnSubscriptionResourceUsage](Get-AzureRmCdnSubscriptionResourceUsage.md)
Gets the resource usage for a susbscription.

### [New-AzureRmCdnCustomDomain](New-AzureRmCdnCustomDomain.md)
Creates a custom domain for a CDN endpoint.

### [New-AzureRmCdnEndpoint](New-AzureRmCdnEndpoint.md)
Creates a CDN endpoint.

### [New-AzureRmCdnProfile](New-AzureRmCdnProfile.md)
Creates a CDN profile.

### [Publish-AzureRmCdnEndpointContent](Publish-AzureRmCdnEndpointContent.md)
Loads content to an endpoint.

### [Remove-AzureRmCdnCustomDomain](Remove-AzureRmCdnCustomDomain.md)
Removes a custom domain.

### [Remove-AzureRmCdnEndpoint](Remove-AzureRmCdnEndpoint.md)
Removes a CDN endpoint.

### [Remove-AzureRmCdnProfile](Remove-AzureRmCdnProfile.md)
Removes a CDN profile.

### [Set-AzureRmCdnEndpoint](Set-AzureRmCdnEndpoint.md)
Updates a CDN endpoint.

### [Set-AzureRmCdnOrigin](Set-AzureRmCdnOrigin.md)
Updates a CDN origin server.

### [Set-AzureRmCdnProfile](Set-AzureRmCdnProfile.md)
Updates a CDN profile.

### [Start-AzureRmCdnEndpoint](Start-AzureRmCdnEndpoint.md)
Starts a CDN endpoint.

### [Stop-AzureRmCdnEndpoint](Stop-AzureRmCdnEndpoint.md)
Stops the CDN endpoint.

### [Test-AzureRmCdnCustomDomain](Test-AzureRmCdnCustomDomain.md)
Checks whether a custom domain can be added to an endpoint.

### [Unpublish-AzureRmCdnEndpointContent](Unpublish-AzureRmCdnEndpointContent.md)
Purges a CDN endpoint.


text:
.. spelling::

    binaryen
    Binaryen

.. index::
  single: compiler ; binaryen

.. _pkg.binaryen:

Binaryen
========

-  `Official <https://github.com/WebAssembly/binaryen/>`__
-  `Hunterized <https://github.com/warchant/binaryen/>`__
-  `Example <https://github.com/cpp-pm/hunter/blob/master/examples/binaryen/CMakeLists.txt>`__
-  Added by `Warchant <https://github.com/Warchant>`__ (`pr-1751 <https://github.com/ruslo/hunter/pull/1751>`__)

.. literalinclude:: /../examples/binaryen/CMakeLists.txt
  :language: cmake
  :start-after: # DOCUMENTATION_START {
  :end-before: # DOCUMENTATION_END }


text:
package mathtools;

import hashtools.Key;

import java.util.HashMap;
import java.util.HashSet;

public class Poset_old2<V> extends Order_old<V> {

	public Poset_old2(){
		super();
	}

	public Poset_old2(HashSet<Key<V, V>> relations, boolean check){
		super(relations);
		if (check)
			System.out.println("poset check: "+checkPosetRules());
	}

	public Poset_old2(HashSet<V> elements, HashSet<Key<V, V>> relations, boolean check){
		super(elements, relations);
		if (check)
			System.out.println("poset check: "+checkPosetRules());
	}

	/**
	 * Checks whether or not this Poset satisfies the definition of a Poset:
	 * Reflexive - p <= p for all p \in P
	 * (translates to [p, p] is in trans for all p in elements)
	 * Transitive - p <= q and q <= r implies p <= r for all p, q, r \in P
	 * (translates to [p,q] and [q,r] in trans implies [p,r] is in trans)
	 * Antisymmetric - if p <= q and q <= p then p = q
	 * @return true if these criteria are satisfied, false otherwise
	 */
	protected boolean checkPosetRules(){
		if (trans == null){
			System.err.println("Trans has not been ititialized yet, don't know.");
			return false;
		} else {
			// reflexive
			for (V p : elements){
				if (!trans.contains(new Key<V, V>(p,p))){
					System.err.println("Poset is not fully reflexive. Missing "+p.toString()+"<"+p.toString());
					return false;
				}
			}

			// transitive
			for (V p : elements){
				HashSet<V> pUp = greaterThanSet(p);
				for (V q : pUp){
					HashSet<V> qUp = greaterThanSet(q);
					for (V r : qUp){
						if (!trans.contains(new Key<V, V>(p, r))){
							System.err.println("Poset is not fully transitive.");
							System.err.println("\tHave <"+p.toString()+", "+q.toString()+"> and <"+q.toString()+", "+r.toString()+">, but not <"+p.toString()+", "+r.toString()+">.");
							return false;
						}
					}
				}
			}

			// antisymmetric
			for (Key<V, V> pair : trans){
				if (trans.contains(new Key<V, V>(pair.getSecond(), pair.getFirst()))){
					if (!pair.getFirst().equals(pair.getSecond())){
						System.err.println("Poset is not fully antisymmetric.");
						System.err.println("\tHave both "+pair.toString()+" and "+pair.swap().toString());
						return false;
					}
				}
			}
		}

		return true;
	}

	/**
	 * @return The poset formed by the interval ranks of the given poset.
	 * The ordering relation on the intervals is weak order.
	 */
	public Poset_old2<Interval>	intRankPoset(){
		HashMap<V, Interval> stdIntRanks = stdIntRank();
		HashSet<Interval> ranks = new HashSet<Interval>();
		for (V e : stdIntRanks.keySet()){
			Interval r = stdIntRanks.get(e);
			boolean add = true;
			for (Interval r2 : ranks){
				if (r.equals(r2)){
					add = false;
					break;
				}
			}
			if (add)
				ranks.add(r);
		}

		HashSet<Key<Interval, Interval>> sirRelations = new HashSet<Key<Interval, Interval>>();
		for (Interval rank1 : ranks){
			for (Interval rank2 : ranks){
				if (Interval.iWeakLess(rank1, rank2))
					sirRelations.add(new Key<Interval, Interval>(rank2, rank1));
			}
		}
		return new Poset_old2<Interval>(sirRelations, true);
	}

	/**
	 * @return The number of applications of standard interval rank before
	 * the final poset is a chain
	 */
	public Key<Integer, Integer> itersToChainAndHeight(){
		int numIters = 0;
		int height = height();

		if (!isChain()){
			Poset_old2<Interval> Rplus = intRankPoset();
			Key<Integer, Integer> iters_height = Rplus.itersToChainAndHeight();
			numIters = iters_height.getFirst()+1;
			height = iters_height.getSecond();
		}

		return new Key<Integer, Integer>(numIters, height);
	}
}


text:
<feed xmlns="http://www.w3.org/2005/Atom">
   <title/>
   <id/>
   <entry>
      <id>cid:smsm_01</id>
      <content type="text/xml">
         <Medication xmlns="http://hl7.org/fhir">
            <name value="Bayer Aspirin 81 mg"/>

               <text value="81 mg Bayer Aspirin"/>

            <isBrand value="true"/>
            <kind value="product"/>
            <product>
               <form>
                  <coding>
                     <system value="http://snomed.info/sct"/>

                     <display value="Tablet"/>
                  </coding>
               </form>
            </product>
         </Medication>
      </content>
   </entry>
   <entry>
      <id>cid:smsm_02</id>
      <content type="text/xml">
         <Medication xmlns="http://hl7.org/fhir">
            <name value="Bayer Aspirin 81 mg"/>

               <coding>
                  <system value="http://www.nlm.nih.gov/research/umls/rxnorm"/>

               </coding>
               <text value="81 mg Bayer Aspirin"/>

            <isBrand value="true"/>
            <kind value="product"/>
            <product>
               <form>
                  <coding>
                     <system value="http://snomed.info/sct"/>

                     <display value="Tablet"/>
                  </coding>
               </form>
            </product>
         </Medication>
      </content>
   </entry>
   <entry>
      <id>cid:smsm_03</id>
      <content type="text/xml">
         <Medication xmlns="http://hl7.org/fhir">
            <name value="Bayer Aspirin 81 mg"/>

               <coding>
                  <system value="http://www.nlm.nih.gov/research/umls/rxnorm"/>

                  <display value="Aspirin 81 MG Oral Tablet [Bayer Aspirin]"/>
               </coding>
               <text value="81 mg Bayer Aspirin"/>

            <isBrand value="true"/>
            <kind value="product"/>
            <product>
               <form>
                  <coding>
                     <system value="http://snomed.info/sct"/>

                     <display value="Tablet"/>
                  </coding>
               </form>
            </product>
         </Medication>
      </content>
   </entry>
   <entry>
      <id>cid:smsm_04</id>
      <content type="text/xml">
         <Medication xmlns="http://hl7.org/fhir">
            <name value="Bayer Aspirin 81 mg"/>

               <coding>
                  <system value="http://www.nlm.nih.gov/research/umls/rxnorm"/>

               </coding>

            <isBrand value="true"/>
            <kind value="product"/>
            <product>
               <form>
                  <coding>
                     <system value="http://snomed.info/sct"/>

                     <display value="Tablet"/>
                  </coding>
               </form>
            </product>
         </Medication>
      </content>
   </entry>
   <entry>
      <id>cid:smsm_05</id>
      <content type="text/xml">
         <Medication xmlns="http://hl7.org/fhir">

               <coding>
                  <system value="http://www.nlm.nih.gov/research/umls/rxnorm"/>

               </coding>

            <isBrand value="true"/>
            <kind value="product"/>
            <product>
               <form>
                  <coding>
                     <system value="http://snomed.info/sct"/>

                     <display value="Tablet"/>
                  </coding>
               </form>
            </product>
         </Medication>
      </content>
   </entry>
   <entry>
      <id>cid:smsm_06</id>
      <content type="text/xml">
         <Medication xmlns="http://hl7.org/fhir">
            <name value="Bayer Aspirin 81 mg"/>

               <coding>
                  <system value="http://www.nlm.nih.gov/research/umls/rxnorm"/>

               </coding>
               <text value="81 mg Bayer Aspirin"/>

            <isBrand value="true"/>
            <kind value="product"/>
            <product>
               <form>
                  <coding>
                     <system value="http://snomed.info/sct"/>

                     <display value="Tablet"/>
                  </coding>
               </form>
            </product>
         </Medication>
      </content>
   </entry>
   <entry>
      <id>cid:smsm_07</id>
      <content type="text/xml">
         <Medication xmlns="http://hl7.org/fhir">
            <name value="Bayer Aspirin 81 mg"/>

               <coding>
                  <system value="http://snomed.info/sct"/>

               </coding>
               <text value="81 mg Bayer Aspirin"/>

            <isBrand value="true"/>
            <kind value="product"/>
            <product>
               <form>
                  <coding>
                     <system value="http://snomed.info/sct"/>

                     <display value="Tablet"/>
                  </coding>
               </form>
            </product>
         </Medication>
      </content>
   </entry>
   <entry>
      <id>cid:smsm_08</id>
      <content type="text/xml">
         <Medication xmlns="http://hl7.org/fhir">
            <name value="Bayer Aspirin 81 mg"/>

               <coding>
                  <system value="http://snomed.info/sct"/>

                  <primary value="true"/>
               </coding>
               <coding>
                  <system value="http://www.fda.gov/Drugs/InformationOnDrugs/ucm142438.htm"/>

               </coding>
               <text value="81 mg Bayer Aspirin"/>

            <isBrand value="true"/>
            <kind value="product"/>
            <product>
               <form>
                  <coding>
                     <system value="http://snomed.info/sct"/>

                     <display value="Tablet"/>
                  </coding>
               </form>
            </product>
         </Medication>
      </content>
   </entry>
   <entry>
      <id>cid:smsm_09</id>
      <content type="text/xml">
         <Medication xmlns="http://hl7.org/fhir">
            <name value="Bayer Aspirin 81 mg"/>

               <coding>
                  <system value="http://snomed.info/sct"/>

                  <primary value="true"/>
               </coding>
               <coding>
                  <system value="http://www.nlm.nih.gov/research/umls/rxnorm"/>

               </coding>
               <text value="81 mg Bayer Aspirin"/>

            <isBrand value="true"/>
            <kind value="product"/>
            <product>
               <form>
                  <coding>
                     <system value="http://snomed.info/sct"/>

                     <display value="Tablet"/>
                  </coding>
               </form>
            </product>
         </Medication>
      </content>
   </entry>
   <entry>
      <id>cid:smsm_10</id>
      <content type="text/xml">
         <Medication xmlns="http://hl7.org/fhir">
            <name value="Bayer Aspirin 81 mg"/>

               <coding>
                  <system value="http://snomed.info/sct"/>

               </coding>
               <coding>
                  <system value="http://www.fda.gov/Drugs/InformationOnDrugs/ucm142438.htm"/>

               </coding>
               <text value="81 mg Bayer Aspirin"/>

            <isBrand value="true"/>
            <kind value="product"/>
            <product>
               <form>
                  <coding>
                     <system value="http://snomed.info/sct"/>

                     <display value="Tablet"/>
                  </coding>
               </form>
            </product>
         </Medication>
      </content>
   </entry>
   <entry>
      <id>cid:smsm_11</id>
      <content type="text/xml">
         <Medication xmlns="http://hl7.org/fhir">
            <name value="Bayer Aspirin 81 mg"/>

               <coding>
                  <system value="http://snomed.info/sct"/>

               </coding>
               <coding>
                  <system value="http://www.fda.gov/Drugs/InformationOnDrugs/ucm142438.htm"/>

                  <primary value="true"/>
               </coding>
               <text value="81 mg Bayer Aspirin"/>

            <isBrand value="true"/>
            <kind value="product"/>
            <product>
               <form>
                  <coding>
                     <system value="http://snomed.info/sct"/>

                     <display value="Tablet"/>
                  </coding>
               </form>
            </product>
         </Medication>
      </content>
   </entry>
   <entry>
      <id>cid:smsm_12</id>
      <content type="text/xml">
         <Medication xmlns="http://hl7.org/fhir">
            <name value="Bayer Aspirin 81 mg"/>

               <coding>
                  <system value="http://snomed.info/sct"/>

               </coding>
               <coding>
                  <system value="http://www.nlm.nih.gov/research/umls/rxnorm"/>

               </coding>
               <text value="81 mg Bayer Aspirin"/>

            <isBrand value="true"/>
            <kind value="product"/>
            <product>
               <form>
                  <coding>
                     <system value="http://snomed.info/sct"/>

                     <display value="Tablet"/>
                  </coding>
               </form>
            </product>
         </Medication>
      </content>
   </entry>
   <entry>
      <id>cid:smsm_13</id>
      <content type="text/xml">
         <Medication xmlns="http://hl7.org/fhir">
            <name value="Bayer Aspirin 81 mg"/>

               <coding>
                  <system value="http://snomed.info/sct"/>

               </coding>
               <coding>
                  <system value="http://www.nlm.nih.gov/research/umls/rxnorm"/>

                  <primary value="true"/>
               </coding>
               <text value="81 mg Bayer Aspirin"/>

            <isBrand value="true"/>
            <kind value="product"/>
            <product>
               <form>
                  <coding>
                     <system value="http://snomed.info/sct"/>

                     <display value="Tablet"/>
                  </coding>
               </form>
            </product>
         </Medication>
      </content>
   </entry>
   <entry>
      <id>cid:smsm_14</id>
      <content type="text/xml">
         <Medication xmlns="http://hl7.org/fhir">
            <name value="Bayer Aspirin 81 mg"/>

               <coding>
                  <system value="http://snomed.info/sct"/>

                  <primary value="true"/>
               </coding>
               <coding>
                  <system value="http://www.nlm.nih.gov/research/umls/rxnorm"/>

               </coding>
               <coding>
                  <system value="http://www.fda.gov/Drugs/InformationOnDrugs/ucm142438.htm"/>

               </coding>
               <text value="81 mg Bayer Aspirin"/>

            <isBrand value="true"/>
            <kind value="product"/>
            <product>
               <form>
                  <coding>
                     <system value="http://snomed.info/sct"/>

                     <display value="Tablet"/>
                  </coding>
               </form>
            </product>
         </Medication>
      </content>
   </entry>
   <entry>
      <id>cid:smsm_15</id>
      <content type="text/xml">
         <Medication xmlns="http://hl7.org/fhir">
            <name value="Bayer Aspirin 81 mg"/>

               <coding>
                  <system value="http://snomed.info/sct"/>

               </coding>
               <coding>
                  <system value="http://www.nlm.nih.gov/research/umls/rxnorm"/>

               </coding>
               <coding>
                  <system value="http://www.fda.gov/Drugs/InformationOnDrugs/ucm142438.htm"/>

               </coding>
               <text value="81 mg Bayer Aspirin"/>

            <isBrand value="true"/>
            <kind value="product"/>
            <product>
               <form>
                  <coding>
                     <system value="http://snomed.info/sct"/>

                     <display value="Tablet"/>
                  </coding>
               </form>
            </product>
         </Medication>
      </content>
   </entry>
   <entry>
      <id>cid:smsm_16</id>
      <content type="text/xml">
         <Medication xmlns="http://hl7.org/fhir">
            <name value="Bayer Aspirin 81 mg"/>

               <coding>
                  <system value="http://www.nlm.nih.gov/research/umls/rxnorm"/>

               </coding>

            <isBrand value="true"/>
            <kind value="product"/>
            <product>
               <form>
                  <coding>
                     <system value="http://snomed.info/sct"/>

                     <display value="Tablet"/>
                  </coding>
               </form>
            </product>
         </Medication>
      </content>
   </entry>
   <entry>
      <id>cid:smsm_17</id>
      <content type="text/xml">
         <Medication xmlns="http://hl7.org/fhir">
            <name value="Bayer Aspirin 81 mg"/>
            <isBrand value="true"/>
            <kind value="product"/>
            <product>
               <form>
                  <coding>
                     <system value="http://snomed.info/sct"/>

                     <display value="Tablet"/>
                  </coding>
               </form>
            </product>
         </Medication>
      </content>
   </entry>
   <entry>
      <id>cid:smsm_18</id>
      <content type="text/xml">
         <Medication xmlns="http://hl7.org/fhir">
            <isBrand value="true"/>
            <kind value="product"/>
            <product>
               <form>
                  <coding>
                     <system value="http://snomed.info/sct"/>

                     <display value="Tablet"/>
                  </coding>
               </form>
            </product>
         </Medication>
      </content>
   </entry>
   <entry>
      <id>cid:smsmp_01</id>
      <content type="text/xml">
         <MedicationPrescription xmlns="http://hl7.org/fhir">
            <dateWritten value="2015-03-01"/>
            <status value="active"/>
            <patient>
               <reference value="cid:smsp_01"/>
               <display value="Davidson, Harley"/>
            </patient>
            <medication>
               <reference value="Medication/cid:smsm_01"/>
            </medication>
            <dosageInstruction>
               <text value="Take 1 to 2 tablets by mouth every four hours as needed for pain"/>
               <route>
                  <text value="Oral"/>
               </route>
               <doseQuantity>
                  <value value="1.0"/>
                  <units value="tablet"/>
               </doseQuantity>
            </dosageInstruction>
            <dispense>
               <numberOfRepeatsAllowed value="0"/>
            </dispense>
         </MedicationPrescription>
      </content>
   </entry>
   <entry>
      <id>cid:smsmp_02</id>
      <content type="text/xml">
         <MedicationPrescription xmlns="http://hl7.org/fhir">
            <dateWritten value="2015-03-01"/>
            <status value="active"/>
            <patient>
               <reference value="cid:smsp_01"/>
               <display value="Davidson, Harley"/>
            </patient>
            <medication>
               <reference value="Medication/cid:smsm_02"/>
            </medication>
            <dosageInstruction>
               <text value="Take 1 to 2 tablets by mouth every four hours as needed for pain"/>
               <route>
                  <text value="Oral"/>
               </route>
               <doseQuantity>
                  <value value="1.0"/>
                  <units value="tablet"/>
               </doseQuantity>
            </dosageInstruction>
            <dispense>
               <numberOfRepeatsAllowed value="0"/>
            </dispense>
         </MedicationPrescription>
      </content>
   </entry>
   <entry>
      <id>cid:smsmp_03</id>
      <content type="text/xml">
         <MedicationPrescription xmlns="http://hl7.org/fhir">
            <dateWritten value="2015-03-01"/>
            <status value="active"/>
            <patient>
               <reference value="cid:smsp_01"/>
               <display value="Davidson, Harley"/>
            </patient>
            <medication>
               <reference value="Medication/cid:smsm_03"/>
            </medication>
            <dosageInstruction>
               <text value="Take 1 to 2 tablets by mouth every four hours as needed for pain"/>
               <route>
                  <text value="Oral"/>
               </route>
               <doseQuantity>
                  <value value="1.0"/>
                  <units value="tablet"/>
               </doseQuantity>
            </dosageInstruction>
            <dispense>
               <numberOfRepeatsAllowed value="0"/>
            </dispense>
         </MedicationPrescription>
      </content>
   </entry>
   <entry>
      <id>cid:smsmp_04</id>
      <content type="text/xml">
         <MedicationPrescription xmlns="http://hl7.org/fhir">
            <dateWritten value="2015-03-01"/>
            <status value="active"/>
            <patient>
               <reference value="cid:smsp_01"/>
               <display value="Davidson, Harley"/>
            </patient>
            <medication>
               <reference value="Medication/cid:smsm_04"/>
            </medication>
            <dosageInstruction>
               <text value="Take 1 to 2 tablets by mouth every four hours as needed for pain"/>
               <route>
                  <text value="Oral"/>
               </route>
               <doseQuantity>
                  <value value="1.0"/>
                  <units value="tablet"/>
               </doseQuantity>
            </dosageInstruction>
            <dispense>
               <numberOfRepeatsAllowed value="0"/>
            </dispense>
         </MedicationPrescription>
      </content>
   </entry>
   <entry>
      <id>cid:smsmp_05</id>
      <content type="text/xml">
         <MedicationPrescription xmlns="http://hl7.org/fhir">
            <dateWritten value="2015-03-01"/>
            <status value="active"/>
            <patient>
               <reference value="cid:smsp_01"/>
               <display value="Davidson, Harley"/>
            </patient>
            <medication>
               <reference value="Medication/cid:smsm_05"/>
            </medication>
            <dosageInstruction>
               <text value="Take 1 to 2 tablets by mouth every four hours as needed for pain"/>
               <route>
                  <text value="Oral"/>
               </route>
               <doseQuantity>
                  <value value="1.0"/>
                  <units value="tablet"/>
               </doseQuantity>
            </dosageInstruction>
            <dispense>
               <numberOfRepeatsAllowed value="0"/>
            </dispense>
         </MedicationPrescription>
      </content>
   </entry>
   <entry>
      <id>cid:smsmp_06</id>
      <content type="text/xml">
         <MedicationPrescription xmlns="http://hl7.org/fhir">
            <dateWritten value="2015-03-01"/>
            <status value="active"/>
            <patient>
               <reference value="cid:smsp_01"/>
               <display value="Davidson, Harley"/>
            </patient>
            <medication>
               <reference value="Medication/cid:smsm_06"/>
            </medication>
            <dosageInstruction>
               <text value="Take 1 to 2 tablets by mouth every four hours as needed for pain"/>
               <route>
                  <text value="Oral"/>
               </route>
               <doseQuantity>
                  <value value="1.0"/>
                  <units value="tablet"/>
               </doseQuantity>
            </dosageInstruction>
            <dispense>
               <numberOfRepeatsAllowed value="0"/>
            </dispense>
         </MedicationPrescription>
      </content>
   </entry>
   <entry>
      <id>cid:smsmp_07</id>
      <content type="text/xml">
         <MedicationPrescription xmlns="http://hl7.org/fhir">
            <dateWritten value="2015-03-01"/>
            <status value="active"/>
            <patient>
               <reference value="cid:smsp_01"/>
               <display value="Davidson, Harley"/>
            </patient>
            <medication>
               <reference value="Medication/cid:smsm_07"/>
            </medication>
            <dosageInstruction>
               <text value="Take 1 to 2 tablets by mouth every four hours as needed for pain"/>
               <route>
                  <text value="Oral"/>
               </route>
               <doseQuantity>
                  <value value="1.0"/>
                  <units value="tablet"/>
               </doseQuantity>
            </dosageInstruction>
            <dispense>
               <numberOfRepeatsAllowed value="0"/>
            </dispense>
         </MedicationPrescription>
      </content>
   </entry>
   <entry>
      <id>cid:smsmp_08</id>
      <content type="text/xml">
         <MedicationPrescription xmlns="http://hl7.org/fhir">
            <dateWritten value="2015-03-01"/>
            <status value="active"/>
            <patient>
               <reference value="cid:smsp_01"/>
               <display value="Davidson, Harley"/>
            </patient>
            <medication>
               <reference value="Medication/cid:smsm_08"/>
            </medication>
            <dosageInstruction>
               <text value="Take 1 to 2 tablets by mouth every four hours as needed for pain"/>
               <route>
                  <text value="Oral"/>
               </route>
               <doseQuantity>
                  <value value="1.0"/>
                  <units value="tablet"/>
               </doseQuantity>
            </dosageInstruction>
            <dispense>
               <numberOfRepeatsAllowed value="0"/>
            </dispense>
         </MedicationPrescription>
      </content>
   </entry>
   <entry>
      <id>cid:smsmp_09</id>
      <content type="text/xml">
         <MedicationPrescription xmlns="http://hl7.org/fhir">
            <dateWritten value="2015-03-01"/>
            <status value="active"/>
            <patient>
               <reference value="cid:smsp_01"/>
               <display value="Davidson, Harley"/>
            </patient>
            <medication>
               <reference value="Medication/cid:smsm_09"/>
            </medication>
            <dosageInstruction>
               <text value="Take 1 to 2 tablets by mouth every four hours as needed for pain"/>
               <route>
                  <text value="Oral"/>
               </route>
               <doseQuantity>
                  <value value="1.0"/>
                  <units value="tablet"/>
               </doseQuantity>
            </dosageInstruction>
            <dispense>
               <numberOfRepeatsAllowed value="0"/>
            </dispense>
         </MedicationPrescription>
      </content>
   </entry>
   <entry>
      <id>cid:smsmp_10</id>
      <content type="text/xml">
         <MedicationPrescription xmlns="http://hl7.org/fhir">
            <dateWritten value="2015-03-01"/>
            <status value="active"/>
            <patient>
               <reference value="cid:smsp_01"/>
               <display value="Davidson, Harley"/>
            </patient>
            <medication>
               <reference value="Medication/cid:smsm_10"/>
            </medication>
            <dosageInstruction>
               <text value="Take 1 to 2 tablets by mouth every four hours as needed for pain"/>
               <route>
                  <text value="Oral"/>
               </route>
               <doseQuantity>
                  <value value="1.0"/>
                  <units value="tablet"/>
               </doseQuantity>
            </dosageInstruction>
            <dispense>
               <numberOfRepeatsAllowed value="0"/>
            </dispense>
         </MedicationPrescription>
      </content>
   </entry>
   <entry>
      <id>cid:smsmp_11</id>
      <content type="text/xml">
         <MedicationPrescription xmlns="http://hl7.org/fhir">
            <dateWritten value="2015-03-01"/>
            <status value="active"/>
            <patient>
               <reference value="cid:smsp_01"/>
               <display value="Davidson, Harley"/>
            </patient>
            <medication>
               <reference value="Medication/cid:smsm_11"/>
            </medication>
            <dosageInstruction>
               <text value="Take 1 to 2 tablets by mouth every four hours as needed for pain"/>
               <route>
                  <text value="Oral"/>
               </route>
               <doseQuantity>
                  <value value="1.0"/>
                  <units value="tablet"/>
               </doseQuantity>
            </dosageInstruction>
            <dispense>
               <numberOfRepeatsAllowed value="0"/>
            </dispense>
         </MedicationPrescription>
      </content>
   </entry>
   <entry>
      <id>cid:smsmp_12</id>
      <content type="text/xml">
         <MedicationPrescription xmlns="http://hl7.org/fhir">
            <dateWritten value="2015-03-01"/>
            <status value="active"/>
            <patient>
               <reference value="cid:smsp_01"/>
               <display value="Davidson, Harley"/>
            </patient>
            <medication>
               <reference value="Medication/cid:smsm_12"/>
            </medication>
            <dosageInstruction>
               <text value="Take 1 to 2 tablets by mouth every four hours as needed for pain"/>
               <route>
                  <text value="Oral"/>
               </route>
               <doseQuantity>
                  <value value="1.0"/>
                  <units value="tablet"/>
               </doseQuantity>
            </dosageInstruction>
            <dispense>
               <numberOfRepeatsAllowed value="0"/>
            </dispense>
         </MedicationPrescription>
      </content>
   </entry>
   <entry>
      <id>cid:smsmp_13</id>
      <content type="text/xml">
         <MedicationPrescription xmlns="http://hl7.org/fhir">
            <dateWritten value="2015-03-01"/>
            <status value="active"/>
            <patient>
               <reference value="cid:smsp_01"/>
               <display value="Davidson, Harley"/>
            </patient>
            <medication>
               <reference value="Medication/cid:smsm_13"/>
            </medication>
            <dosageInstruction>
               <text value="Take 1 to 2 tablets by mouth every four hours as needed for pain"/>
               <route>
                  <text value="Oral"/>
               </route>
               <doseQuantity>
                  <value value="1.0"/>
                  <units value="tablet"/>
               </doseQuantity>
            </dosageInstruction>
            <dispense>
               <numberOfRepeatsAllowed value="0"/>
            </dispense>
         </MedicationPrescription>
      </content>
   </entry>
   <entry>
      <id>cid:smsmp_14</id>
      <content type="text/xml">
         <MedicationPrescription xmlns="http://hl7.org/fhir">
            <dateWritten value="2015-03-01"/>
            <status value="active"/>
            <patient>
               <reference value="cid:smsp_01"/>
               <display value="Davidson, Harley"/>
            </patient>
            <medication>
               <reference value="Medication/cid:smsm_14"/>
            </medication>
            <dosageInstruction>
               <text value="Take 1 to 2 tablets by mouth every four hours as needed for pain"/>
               <route>
                  <text value="Oral"/>
               </route>
               <doseQuantity>
                  <value value="1.0"/>
                  <units value="tablet"/>
               </doseQuantity>
            </dosageInstruction>
            <dispense>
               <numberOfRepeatsAllowed value="0"/>
            </dispense>
         </MedicationPrescription>
      </content>
   </entry>
   <entry>
      <id>cid:smsmp_15</id>
      <content type="text/xml">
         <MedicationPrescription xmlns="http://hl7.org/fhir">
            <dateWritten value="2015-03-01"/>
            <status value="active"/>
            <patient>
               <reference value="cid:smsp_01"/>
               <display value="Davidson, Harley"/>
            </patient>
            <medication>
               <reference value="Medication/cid:smsm_15"/>
            </medication>
            <dosageInstruction>
               <text value="Take 1 to 2 tablets by mouth every four hours as needed for pain"/>
               <route>
                  <text value="Oral"/>
               </route>
               <doseQuantity>
                  <value value="1.0"/>
                  <units value="tablet"/>
               </doseQuantity>
            </dosageInstruction>
            <dispense>
               <numberOfRepeatsAllowed value="0"/>
            </dispense>
         </MedicationPrescription>
      </content>
   </entry>
   <entry>
      <id>cid:smsmp_16</id>
      <content type="text/xml">
         <MedicationPrescription xmlns="http://hl7.org/fhir">
            <dateWritten value="2015-03-01"/>
            <status value="active"/>
            <patient>
               <reference value="cid:smsp_01"/>
               <display value="Davidson, Harley"/>
            </patient>
            <medication>
               <reference value="Medication/cid:smsm_16"/>
            </medication>
            <dosageInstruction>
               <text value="Take 1 to 2 tablets by mouth every four hours as needed for pain"/>
               <route>
                  <text value="Oral"/>
               </route>
               <doseQuantity>
                  <value value="1.0"/>
                  <units value="tablet"/>
               </doseQuantity>
            </dosageInstruction>
            <dispense>
               <numberOfRepeatsAllowed value="0"/>
            </dispense>
         </MedicationPrescription>
      </content>
   </entry>
   <entry>
      <id>cid:smsmp_17</id>
      <content type="text/xml">
         <MedicationPrescription xmlns="http://hl7.org/fhir">
            <dateWritten value="2015-03-01"/>
            <status value="active"/>
            <patient>
               <reference value="cid:smsp_01"/>
               <display value="Davidson, Harley"/>
            </patient>
            <medication>
               <reference value="Medication/cid:smsm_17"/>
            </medication>
            <dosageInstruction>
               <text value="Take 1 to 2 tablets by mouth every four hours as needed for pain"/>
               <route>
                  <text value="Oral"/>
               </route>
               <doseQuantity>
                  <value value="1.0"/>
                  <units value="tablet"/>
               </doseQuantity>
            </dosageInstruction>
            <dispense>
               <numberOfRepeatsAllowed value="0"/>
            </dispense>
         </MedicationPrescription>
      </content>
   </entry>
   <entry>
      <id>cid:smsmp_18</id>
      <content type="text/xml">
         <MedicationPrescription xmlns="http://hl7.org/fhir">
            <dateWritten value="2015-03-01"/>
            <status value="active"/>
            <patient>
               <reference value="cid:smsp_01"/>
               <display value="Davidson, Harley"/>
            </patient>
            <medication>
               <reference value="Medication/cid:smsm_18"/>
            </medication>
            <dosageInstruction>
               <text value="Take 1 to 2 tablets by mouth every four hours as needed for pain"/>
               <route>
                  <text value="Oral"/>
               </route>
               <doseQuantity>
                  <value value="1.0"/>
                  <units value="tablet"/>
               </doseQuantity>
            </dosageInstruction>
            <dispense>
               <numberOfRepeatsAllowed value="0"/>
            </dispense>
         </MedicationPrescription>
      </content>
   </entry>
   <entry>
      <id>cid:smsp_01</id>
      <content type="text/xml">
         <Patient xmlns="http://hl7.org/fhir">
            <identifier>
               <value value="NEED"/>
               <assigner>
                  <display value="FHIR"/>
               </assigner>
            </identifier>
            <identifier>
               <value value="E3289"/>
               <assigner>
                  <display value="EPIC"/>
               </assigner>
            </identifier>
            <name>
               <text value="Davidson, Harley"/>
               <family value="Davidson"/>
               <given value="Harley"/>
            </name>
            <telecom>
               <value value="(801)555-1212"/>
            </telecom>
            <gender>
               <text value="M"/>
            </gender>
            <birthDate value="1948-05-17"/>
            <deceasedBoolean value="false"/>
            <address>
               <line value="123 Beehive Rd"/>
               <city value="Park City"/>
               <state value="UT"/>
               <zip value="84098"/>
               <country value="US"/>
            </address>
            <maritalStatus>
               <text value="MARRIED"/>
            </maritalStatus>
            <multipleBirthBoolean value="false"/>
            <communication>
               <text value="English"/>
            </communication>
            <careProvider>
               <display value="Dr. EPIC PHYSICIAN"/>
            </careProvider>
            <active value="true"/>
         </Patient>
      </content>
   </entry>
</feed>