text:
<?php

namespace Bellwether\BWCMSBundle\Controller;

use Bellwether\BWCMSBundle\Classes\Base\BaseController;
use Bellwether\BWCMSBundle\Classes\Base\BackEndControllerInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
use Bellwether\BWCMSBundle\Entity\SiteEntity;
use Bellwether\BWCMSBundle\Form\SiteEntityType;

/**
 * Site controller.
 *
 * @Route("/admin/site")
 * @Security("has_role('ROLE_SUPER_ADMIN')")
 */
class SiteController extends BaseController implements BackEndControllerInterface
{

    /**
     * Lists all SiteEntity entities.
     *
     * @Route("/index.php", name="_bwcms_admin_site_home")
     * @Method("GET")
     * @Template()
     */
    public function indexAction()
    {
        $em = $this->getDoctrine()->getManager();
        $entities = $em->getRepository('BWCMSBundle:SiteEntity')->findAll();
        return array(
            'entities' => $entities,
        );
    }

    /**
     * Lists all SiteEntity entities.
     *
     * @Route("/change.php", name="_bwcms_admin_site_change_current")
     * @Method("GET")
     * @Template()
     */
    public function setCurrentSiteAction(Request $request)
    {
        $siteId = $request->get('siteId');
        if (!is_null($siteId)) {
            $siteEntity = $this->em()->getRepository('BWCMSBundle:SiteEntity')->find($siteId);
            if (!is_null($siteEntity)) {
                $this->sm()->setAdminCurrentSite($siteEntity->getId());
            }
        }
        return $this->redirect($this->generateUrl('_bwcms_admin_dashboard_home'));
    }

    /**
     * Displays a form to create a new SiteEntity entity.
     *
     * @Route("/new.php", name="_bwcms_admin_site_new")
     * @Method("GET")
     * @Template()
     */
    public function newAction()
    {
        $entity = new SiteEntity();
        $form = $this->createCreateForm($entity);

        return array(
            'entity' => $entity,
            'form' => $form->createView(),
        );
    }

    /**
     * Creates a new SiteEntity entity.
     *
     * @Route("/create.php", name="_bwcms_admin_site_create")
     * @Method("POST")
     * @Template("BWCMSBundle:Site:new.html.twig")
     */
    public function createAction(Request $request)
    {
        $entity = new SiteEntity();
        $form = $this->createCreateForm($entity);
        $form->handleRequest($request);

        if ($form->isValid()) {
            $em = $this->getDoctrine()->getManager();
            $em->persist($entity);
            $em->flush();

            return $this->redirect($this->generateUrl('_bwcms_admin_site_home'));
        }

        return array(
            'entity' => $entity,
            'form' => $form->createView(),
        );
    }

    /**
     * Creates a form to create a SiteEntity entity.
     *
     * @param SiteEntity $entity The entity
     *
     * @return \Symfony\Component\Form\Form The form
     */
    private function createCreateForm(SiteEntity $entity)
    {
        $form = $this->createForm(new SiteEntityType($this->tp()), $entity, array(
            'action' => $this->generateUrl('_bwcms_admin_site_create'),
            'method' => 'POST',
        ));

        $form->add('submit', 'submit', array('label' => 'Create'));

        return $form;
    }

    /**
     * Displays a form to edit an existing SiteEntity entity.
     *
     * @Route("/{id}/setDefault.php", name="_bwcms_admin_site_setdefault")
     * @Method("GET")
     * @Template()
     */
    public function setDefaultAction($id)
    {
        $em = $this->getDoctrine()->getManager();
        $entity = $em->getRepository('BWCMSBundle:SiteEntity')->find($id);
        if (!$entity) {
            throw $this->createNotFoundException('Unable to find SiteEntity entity.');
        }
        $allSites = $this->em()->getRepository('BWCMSBundle:SiteEntity')->findAll();
        /**
         * @var SiteEntity $site
         */
        foreach ($allSites as $site) {
            if ($site->getId() == $id) {
                $site->setIsDefault(1);
            }else{
                $site->setIsDefault(null);
            }
            $this->em()->persist($site);
        }
        $this->em()->flush();
        return $this->redirect($this->generateUrl('_bwcms_admin_site_home'));

    }

    /**
     * Displays a form to edit an existing SiteEntity entity.
     *
     * @Route("/{id}/edit.php", name="_bwcms_admin_site_edit")
     * @Method("GET")
     * @Template()
     */
    public function editAction($id)
    {
        $em = $this->getDoctrine()->getManager();

        $entity = $em->getRepository('BWCMSBundle:SiteEntity')->find($id);

        if (!$entity) {
            throw $this->createNotFoundException('Unable to find SiteEntity entity.');
        }

        $editForm = $this->createEditForm($entity);

        return array(
            'entity' => $entity,
            'edit_form' => $editForm->createView()
        );
    }

    /**
     * Edits an existing SiteEntity entity.
     *
     * @Route("/{id}/update.php", name="_bwcms_admin_site_update")
     * @Method("POST")
     * @Template("BWCMSBundle:Site:edit.html.twig")
     */
    public function updateAction(Request $request, $id)
    {
        $em = $this->getDoctrine()->getManager();

        $entity = $em->getRepository('BWCMSBundle:SiteEntity')->find($id);

        if (!$entity) {
            throw $this->createNotFoundException('Unable to find SiteEntity entity.');
        }

        $editForm = $this->createEditForm($entity);
        $editForm->handleRequest($request);

        if ($editForm->isValid()) {
            $em->flush();

            return $this->redirect($this->generateUrl('_bwcms_admin_site_home', array('id' => $id)));
        }

        return array(
            'entity' => $entity,
            'edit_form' => $editForm->createView()
        );
    }

    /**
     * Creates a form to edit a SiteEntity entity.
     *
     * @param SiteEntity $entity The entity
     *
     * @return \Symfony\Component\Form\Form The form
     */
    private function createEditForm(SiteEntity $entity)
    {
        $form = $this->createForm(new SiteEntityType($this->tp()), $entity, array(
            'action' => $this->generateUrl('_bwcms_admin_site_update', array('id' => $entity->getId())),
            'method' => 'POST',
        ));

        $form->add('submit', 'submit', array('label' => 'Update'));

        return $form;
    }

}


text:
using NPoco;

namespace Umbraco.Core.Persistence.Dtos
{
    internal class ConstraintPerColumnDto
    {
        [Column("TABLE_NAME")]
        public string TableName { get; set; }

        [Column("COLUMN_NAME")]
        public string ColumnName { get; set; }

        [Column("CONSTRAINT_NAME")]
        public string ConstraintName { get; set; }
    }
}

redpajama_set_name: RedPajamaGithub


text:
/* component.filter-select.js
*
*
*/

//--- Begin Module Scope Variables ---//
var filterSelect = require("../../app/service.init").createManifest(),
initComponent = require("../../app-services/service.component"),
componentStateMap = require("./component.filter-select.statemap"),
componentSchema = componentStateMap.componentSchema,
setComponentState = componentStateMap.initStateMap,
updateComponent,
inject;

//--- END Module Scope Variables ---//
function filterSelectedOrders(value) {
	return function(order) {
		return order.dataset.pickupSite !== value;
	}
};

function filterValue(value) {
	var statemap = {
		reset: {
			value: false,
			orderRows: inject("fulfillButtons")
		},
		set: {
			value: true,
			orderRows: inject("fulfillButtons").filter(filterSelectedOrders(value))
		}
	};
	if (!value) {
		return statemap["reset"];
	} else {
		return statemap["set"];
	}
};

function runRowFilter(filterObj) {
	updateComponent({
		dataAttr: {attrName: "filtered", attrValue: filterObj.value},
		fn: function getOrderRows() {
			return filterObj.orderRows
		}
	});
};

function onClickFilter(e) {
	var value = e.target.value;
	runRowFilter(filterValue());

	if (value === "null") return;
	runRowFilter(filterValue(value));
	return;
};

function onComponentInit({appUtils, domUtils, elementMap}) {
	elementMap.pickupSiteFilter.addEventListener("change", onClickFilter);
	inject = appUtils.importDep(elementMap);

	updateComponent = initComponent(componentSchema)(
		appUtils.objectExtend(elementMap)({
			self: elementMap.pickupSiteFilter
	})());
	return;
};

//--- Event Registration ---//
filterSelect.registerEvent("componentInit", onComponentInit);

module.exports = filterSelect


text:
<?php

namespace AntiMattr\AddressVerifier\Exception\Connection;

/**
 * @author Matthew Fitzgerald <matthewfitz@gmail.com>
 */
class TimeoutException extends ConnectionException
{
}


text:
'use strict';

var TransformStream = require('stream').Transform,
    inherits = require('util').inherits,
    Tokenizer = require('../tokenizer'),
    ParserFeedbackSimulator = require('./parser_feedback_simulator'),
    mergeOptions = require('../common/merge_options');

/**
 * @typedef {Object} SAXParserOptions
 *
 * @property {Boolean} [locationInfo=false] - Enables source code location information for the tokens.
 * When enabled, each token event handler will receive {@link LocationInfo} object as its last argument.
 */
var DEFAULT_OPTIONS = {
    locationInfo: false
};

/**
 * Streaming [SAX]{@link https://en.wikipedia.org/wiki/Simple_API_for_XML}-style HTML parser.
 * A [transform stream](https://nodejs.org/api/stream.html#stream_class_stream_transform)
 * (which means you can pipe *through* it, see example).
 * @class SAXParser
 * @memberof parse5
 * @instance
 * @extends stream.Transform
 * @param {SAXParserOptions} options - Parsing options.
 * @example
 * var parse5 = require('parse5');
 * var http = require('http');
 * var fs = require('fs');
 *
 * var file = fs.createWriteStream('/home/google.com.html');
 * var parser = new parse5.SAXParser();
 *
 * parser.on('text', function(text) {
 *  // Handle page text content
 *  ...
 * });
 *
 * http.get('http://google.com', function(res) {
 *  // SAXParser is the Transform stream, which means you can pipe
 *  // through it. So, you can analyze page content and, e.g., save it
 *  // to the file at the same time:
 *  res.pipe(parser).pipe(file);
 * });
 */
var SAXParser = module.exports = function (options) {
    TransformStream.call(this);

    this.options = mergeOptions(DEFAULT_OPTIONS, options);

    this.tokenizer = new Tokenizer(options);
    this.parserFeedbackSimulator = new ParserFeedbackSimulator(this.tokenizer);

    this.pendingText = null;
    this.currentTokenLocation = void 0;

    this.lastChunkWritten = false;
    this.stopped = false;
};

inherits(SAXParser, TransformStream);

//TransformStream implementation
SAXParser.prototype._transform = function (chunk, encoding, callback) {
    if (!this.stopped) {
        this.tokenizer.write(chunk.toString('utf8'), this.lastChunkWritten);
        this._runParsingLoop();
    }

    this.push(chunk);

    callback();
};

SAXParser.prototype._flush = function (callback) {
    callback();
};

SAXParser.prototype.end = function (chunk, encoding, callback) {
    this.lastChunkWritten = true;
    TransformStream.prototype.end.call(this, chunk, encoding, callback);
};

/**
 * Stops parsing. Useful if you want the parser to stop consuming CPU time once you've obtained the desired info
 * from the input stream. Doesn't prevent piping, so that data will flow through the parser as usual.
 *
 * @function stop
 * @memberof parse5#SAXParser
 * @instance
 * @example
 * var parse5 = require('parse5');
 * var http = require('http');
 * var fs = require('fs');
 *
 * var file = fs.createWriteStream('/home/google.com.html');
 * var parser = new parse5.SAXParser();
 *
 * parser.on('doctype', function(name, publicId, systemId) {
 *  // Process doctype info ans stop parsing
 *  ...
 *  parser.stop();
 * });
 *
 * http.get('http://google.com', function(res) {
 *  // Despite the fact that parser.stop() was called whole
 *  // content of the page will be written to the file
 *  res.pipe(parser).pipe(file);
 * });
 */
SAXParser.prototype.stop = function () {
    this.stopped = true;
};

//Internals
SAXParser.prototype._runParsingLoop = function () {
    do {
        var token = this.tokenizer.getNextToken();

        if (token.type === Tokenizer.HIBERNATION_TOKEN)
            break;

        this.parserFeedbackSimulator.adjustTokenizer(token);

        if (token.type === Tokenizer.CHARACTER_TOKEN ||
            token.type === Tokenizer.WHITESPACE_CHARACTER_TOKEN ||
            token.type === Tokenizer.NULL_CHARACTER_TOKEN) {

            if (this.options.locationInfo) {
                if (this.pendingText === null)
                    this.currentTokenLocation = token.location;

                else
                    this.currentTokenLocation.end = token.location.end;
            }

            this.pendingText = (this.pendingText || '') + token.chars;
        }

        else {
            this._emitPendingText();
            this._handleToken(token);
        }
    } while (!this.stopped && token.type !== Tokenizer.EOF_TOKEN);
};

SAXParser.prototype._handleToken = function (token) {
    if (this.options.locationInfo)
        this.currentTokenLocation = token.location;

    if (token.type === Tokenizer.START_TAG_TOKEN)
        /**
         * Raised when the parser encounters a start tag.
         * @event startTag
         * @memberof parse5#SAXParser
         * @instance
         * @type {Function}
         * @param {String} name - Tag name.
         * @param {String} attributes - List of attributes in the `{ key: String, value: String }` form.
         * @param {Boolean} selfClosing - Indicates if the tag is self-closing.
         * @param {LocationInfo} [location] - Start tag source code location info.
         * Available if location info is enabled in {@link SAXParserOptions}.
         */
        this.emit('startTag', token.tagName, token.attrs, token.selfClosing, this.currentTokenLocation);

    else if (token.type === Tokenizer.END_TAG_TOKEN)
        /**
         * Raised then parser encounters an end tag.
         * @event endTag
         * @memberof parse5#SAXParser
         * @instance
         * @type {Function}
         * @param {String} name - Tag name.
         * @param {LocationInfo} [location] - End tag source code location info.
         * Available if location info is enabled in {@link SAXParserOptions}.
         */
        this.emit('endTag', token.tagName, this.currentTokenLocation);

    else if (token.type === Tokenizer.COMMENT_TOKEN)
        /**
         * Raised then parser encounters a comment.
         * @event comment
         * @memberof parse5#SAXParser
         * @instance
         * @type {Function}
         * @param {String} text - Comment text.
         * @param {LocationInfo} [location] - Comment source code location info.
         * Available if location info is enabled in {@link SAXParserOptions}.
         */
        this.emit('comment', token.data, this.currentTokenLocation);

    else if (token.type === Tokenizer.DOCTYPE_TOKEN)
        /**
         * Raised then parser encounters a [document type declaration]{@link https://en.wikipedia.org/wiki/Document_type_declaration}.
         * @event doctype
         * @memberof parse5#SAXParser
         * @instance
         * @type {Function}
         * @param {String} name - Document type name.
         * @param {String} publicId - Document type public identifier.
         * @param {String} systemId - Document type system identifier.
         * @param {LocationInfo} [location] - Document type declaration source code location info.
         * Available if location info is enabled in {@link SAXParserOptions}.
         */
        this.emit('doctype', token.name, token.publicId, token.systemId, this.currentTokenLocation);
};

SAXParser.prototype._emitPendingText = function () {
    if (this.pendingText !== null) {
        /**
         * Raised then parser encounters text content.
         * @event text
         * @memberof parse5#SAXParser
         * @instance
         * @type {Function}
         * @param {String} text - Text content.
         * @param {LocationInfo} [location] - Text content code location info.
         * Available if location info is enabled in {@link SAXParserOptions}.
         */
        this.emit('text', this.pendingText, this.currentTokenLocation);
        this.pendingText = null;
    }
};