text:
module.exports = function postJSON({url, data, progresscb, cb, cookies}) {
  var req = new XMLHttpRequest()
  req.onreadystatechange = function(e) {
    if (req.readyState === 4) {
      if (typeof cb === 'function')
        cb(req.response)
    }
  }
  if (typeof progresscb === 'function')
    req.upload.addEventListener('progress', progresscb)
  // function(e){
  //   $progress.style.width = Math.ceil(e.loaded/e.total) * 100 + '%';
  // }, false);
  req.withCredentials = Boolean(cookies)
  req.open('POST', url, true)
  req.setRequestHeader('Content-Type', 'application/json')
  if (typeof data !== 'string') {
    data = JSON.stringify(data)
  }
  req.responseType = 'json'
  req.send(data)
}


text:
<?php

/**
 * Created by Serhii Borodai <clarifying@gmail.com>
 */

namespace Command;

use Crypt\SodiumCryptoBox;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;

class Pay extends CommandAbstract
{
    protected  $pattern = '{"paymentSystem":"dmarket.internal","currency":"DMC","amount":"%s","comment":"payment for user %s","credentials":{"uuid":"%s"}}';

    protected function configure()
    {
        $this->setDescription('pay amount of DMC to uuid ');
        $this->addArgument('uuid', InputArgument::REQUIRED);
        $this->addArgument('amount', InputArgument::REQUIRED);
        $this->addArgument('pubkey', InputArgument::REQUIRED);
        $this->addArgument('privkey', InputArgument::REQUIRED);
    }

    protected function execute(InputInterface $input, OutputInterface $output)
    {

        $uuid = $input->getArgument('uuid');
        $amount = $input->getArgument('amount');

        $encoder = new SodiumCryptoBox();
        $encoder->setPublicKey(file_get_contents($input->getArgument('pubkey')));
        $encoder->setPrivateKey(file_get_contents($input->getArgument('privkey')));

        $style = new SymfonyStyle($input, $output);
        $style->section('Prepared package');
        $style->text(sprintf($this->pattern, $amount, $uuid, $uuid));

        if (!json_decode(sprintf($this->pattern, $amount, $uuid, $uuid))) {
            $style->section('Error');
            $style->error(json_last_error_msg());
            $style->comment(sprintf($this->pattern, $amount, $uuid, $uuid));
        }

        $style->section('Encrypted package');
        $style->text(
            base64_encode(
                $encoder->encrypt(sprintf($this->pattern, $amount, $uuid, $uuid))
            )
        );

    }

}

redpajama_set_name: RedPajamaGithub


text:
layout: page
title: About
permalink: /about/
---

Cryptoparty Ann Arbor is a community of privacy-minded educators, techies, and enthusiasts
working to help you reclaim your privacy. We educate the public on how privacy
is impacted in the digital age, and how they can better protect themselves. Freely offering
informal training and assistance, we want to empower you to more fully live your life as you see fit.
We put people first, and see within technology the potential for liberatory social change.


text:
package com.vmware.vim25;

/**
* @author Steve Jin (http://www.doublecloud.org)
* @version 5.1
*/

public class ArrayOfDatastoreMountPathDatastorePair {
  public DatastoreMountPathDatastorePair[] DatastoreMountPathDatastorePair;

  public DatastoreMountPathDatastorePair[] getDatastoreMountPathDatastorePair() {
    return this.DatastoreMountPathDatastorePair;
  }

  public DatastoreMountPathDatastorePair getDatastoreMountPathDatastorePair(int i) {
    return this.DatastoreMountPathDatastorePair[i];
  }

  public void setDatastoreMountPathDatastorePair(DatastoreMountPathDatastorePair[] DatastoreMountPathDatastorePair) {
    this.DatastoreMountPathDatastorePair=DatastoreMountPathDatastorePair;
  }
}


text:
@implementation UAEC2VPCAttachment

@synthesize vpcID=_vpcID, state=_state;

+ (NSString *)XPathPrefix
{
    return @"./";
}

+ (NSDictionary *)XMLKeyPathsByPropertyKey
{
    // Start with super's key paths (if there are any)
    NSMutableDictionary *keyPaths = [[UAEC2Model XMLKeyPathsByPropertyKey] mutableCopy];

    [keyPaths addEntriesFromDictionary:
    @{
        @"vpcID": @"ec2:vpcId",
        @"state": @"ec2:state"
    }];
    return [keyPaths copy];
}

@end

#pragma clang diagnostic pop


text:
add_tenant_access = {
    'type': 'object',
    'properties': {
        'addTenantAccess': {
            'type': 'object',
            'properties': {
                'tenant': {
                    # defined from project_id in instance_type_projects table
                    'type': 'string', 'minLength': 1, 'maxLength': 255,
                },
            },
            'required': ['tenant'],
            'additionalProperties': False,
        },
    },
    'required': ['addTenantAccess'],
    'additionalProperties': False,
}

remove_tenant_access = {
    'type': 'object',
    'properties': {
        'removeTenantAccess': {
            'type': 'object',
            'properties': {
                'tenant': {
                    # defined from project_id in instance_type_projects table
                    'type': 'string', 'minLength': 1, 'maxLength': 255,
                },
            },
            'required': ['tenant'],
            'additionalProperties': False,
        },
    },
    'required': ['removeTenantAccess'],
    'additionalProperties': False,
}