text:
using System;
using NUnit.Framework;
using QuantConnect.Data;
using QuantConnect.Data.Market;
using QuantConnect.Indicators;
using QuantConnect.Orders;
using QuantConnect.Securities;

namespace QuantConnect.Tests.Common.Securities
{
    [TestFixture]
    public class SecurityTransactionModelTests
    {
        private static readonly DateTime Noon = new DateTime(2014, 6, 24, 12, 0, 0);
        private static readonly TimeKeeper TimeKeeper = new TimeKeeper(Noon.ConvertToUtc(TimeZones.NewYork), new[] { TimeZones.NewYork });
        private const string Symbol = "SPY";

        [Test]
        public void PerformsMarketFillBuy()
        {
            var model = new SecurityTransactionModel();
            var order = new MarketOrder(Symbol, 100, Noon, type: SecurityType.Equity);
            var config = CreateTradeBarConfig(Symbol);
            var security = new Security(SecurityExchangeHoursTests.CreateUsEquitySecurityExchangeHours(), config, 1);
            security.SetLocalTimeKeeper(TimeKeeper.GetLocalTimeKeeper(TimeZones.NewYork));
            security.SetMarketPrice(new IndicatorDataPoint(Symbol, Noon, 101.123m));

            var fill = model.MarketFill(security, order);
            Assert.AreEqual(order.Quantity, fill.FillQuantity);
            Assert.AreEqual(security.Price, fill.FillPrice);
            Assert.AreEqual(OrderStatus.Filled, fill.Status);
        }
        [Test]
        public void PerformsMarketFillSell()
        {
            var model = new SecurityTransactionModel();
            var order = new MarketOrder(Symbol, -100, Noon, type: SecurityType.Equity);
            var config = CreateTradeBarConfig(Symbol);
            var security = new Security(SecurityExchangeHoursTests.CreateUsEquitySecurityExchangeHours(), config, 1);
            security.SetLocalTimeKeeper(TimeKeeper.GetLocalTimeKeeper(TimeZones.NewYork));
            security.SetMarketPrice(new IndicatorDataPoint(Symbol, Noon, 101.123m));

            var fill = model.MarketFill(security, order);
            Assert.AreEqual(order.Quantity, fill.FillQuantity);
            Assert.AreEqual(security.Price, fill.FillPrice);
            Assert.AreEqual(OrderStatus.Filled, fill.Status);
        }

        [Test]
        public void PerformsLimitFillBuy()
        {
            var model = new SecurityTransactionModel();
            var order = new LimitOrder(Symbol, 100, 101.5m, Noon, type: SecurityType.Equity);
            var config = CreateTradeBarConfig(Symbol);
            var security = new Security(SecurityExchangeHoursTests.CreateUsEquitySecurityExchangeHours(), config, 1);
            security.SetLocalTimeKeeper(TimeKeeper.GetLocalTimeKeeper(TimeZones.NewYork));
            security.SetMarketPrice(new IndicatorDataPoint(Symbol, Noon, 102m));

            var fill = model.LimitFill(security, order);

            Assert.AreEqual(0, fill.FillQuantity);
            Assert.AreEqual(0, fill.FillPrice);
            Assert.AreEqual(OrderStatus.None, fill.Status);

            security.SetMarketPrice(new TradeBar(Noon, Symbol, 102m, 103m, 101m, 102.3m, 100));

            fill = model.LimitFill(security, order);

            // this fills worst case scenario, so it's at the limit price
            Assert.AreEqual(order.Quantity, fill.FillQuantity);
            Assert.AreEqual(Math.Min(order.LimitPrice, security.High), fill.FillPrice);
            Assert.AreEqual(OrderStatus.Filled, fill.Status);
        }

        [Test]
        public void PerformsLimitFillSell()
        {
            var model = new SecurityTransactionModel();
            var order = new LimitOrder(Symbol, -100, 101.5m, Noon, type: SecurityType.Equity);
            var config = CreateTradeBarConfig(Symbol);
            var security = new Security(SecurityExchangeHoursTests.CreateUsEquitySecurityExchangeHours(), config, 1);
            security.SetLocalTimeKeeper(TimeKeeper.GetLocalTimeKeeper(TimeZones.NewYork));
            security.SetMarketPrice(new IndicatorDataPoint(Symbol, Noon, 101m));

            var fill = model.LimitFill(security, order);

            Assert.AreEqual(0, fill.FillQuantity);
            Assert.AreEqual(0, fill.FillPrice);
            Assert.AreEqual(OrderStatus.None, fill.Status);

            security.SetMarketPrice(new TradeBar(Noon, Symbol, 102m, 103m, 101m, 102.3m, 100));

            fill = model.LimitFill(security, order);

            // this fills worst case scenario, so it's at the limit price
            Assert.AreEqual(order.Quantity, fill.FillQuantity);
            Assert.AreEqual(Math.Max(order.LimitPrice, security.Low), fill.FillPrice);
            Assert.AreEqual(OrderStatus.Filled, fill.Status);
        }

        [Test]
        public void PerformsStopLimitFillBuy()
        {
            var model = new SecurityTransactionModel();
            var order = new StopLimitOrder(Symbol, 100, 101.5m, 101.75m, Noon, type: SecurityType.Equity);
            var config = CreateTradeBarConfig(Symbol);
            var security = new Security(SecurityExchangeHoursTests.CreateUsEquitySecurityExchangeHours(), config, 1);
            security.SetLocalTimeKeeper(TimeKeeper.GetLocalTimeKeeper(TimeZones.NewYork));
            security.SetMarketPrice(new IndicatorDataPoint(Symbol, Noon, 100m));

            var fill = model.StopLimitFill(security, order);

            Assert.AreEqual(0, fill.FillQuantity);
            Assert.AreEqual(0, fill.FillPrice);
            Assert.AreEqual(OrderStatus.None, fill.Status);

            security.SetMarketPrice(new IndicatorDataPoint(Symbol, Noon, 102m));

            fill = model.StopLimitFill(security, order);

            Assert.AreEqual(0, fill.FillQuantity);
            Assert.AreEqual(0, fill.FillPrice);
            Assert.AreEqual(OrderStatus.None, fill.Status);

            security.SetMarketPrice(new IndicatorDataPoint(Symbol, Noon, 101.66m));

            fill = model.StopLimitFill(security, order);

            // this fills worst case scenario, so it's at the limit price
            Assert.AreEqual(order.Quantity, fill.FillQuantity);
            Assert.AreEqual(order.LimitPrice, fill.FillPrice);
            Assert.AreEqual(OrderStatus.Filled, fill.Status);
        }

        [Test]
        public void PerformsStopLimitFillSell()
        {
            var model = new SecurityTransactionModel();
            var order = new StopLimitOrder(Symbol, -100, 101.75m, 101.50m, Noon, type: SecurityType.Equity);
            var config = CreateTradeBarConfig(Symbol);
            var security = new Security(SecurityExchangeHoursTests.CreateUsEquitySecurityExchangeHours(), config, 1);
            security.SetLocalTimeKeeper(TimeKeeper.GetLocalTimeKeeper(TimeZones.NewYork));
            security.SetMarketPrice(new IndicatorDataPoint(Symbol, Noon, 102m));

            var fill = model.StopLimitFill(security, order);

            Assert.AreEqual(0, fill.FillQuantity);
            Assert.AreEqual(0, fill.FillPrice);
            Assert.AreEqual(OrderStatus.None, fill.Status);

            security.SetMarketPrice(new IndicatorDataPoint(Symbol, Noon, 101m));

            fill = model.StopLimitFill(security, order);

            Assert.AreEqual(0, fill.FillQuantity);
            Assert.AreEqual(0, fill.FillPrice);
            Assert.AreEqual(OrderStatus.None, fill.Status);

            security.SetMarketPrice(new IndicatorDataPoint(Symbol, Noon, 101.66m));

            fill = model.StopLimitFill(security, order);

            // this fills worst case scenario, so it's at the limit price
            Assert.AreEqual(order.Quantity, fill.FillQuantity);
            Assert.AreEqual(order.LimitPrice, fill.FillPrice);
            Assert.AreEqual(OrderStatus.Filled, fill.Status);
        }

        [Test]
        public void PerformsStopMarketFillBuy()
        {
            var model = new SecurityTransactionModel();
            var order = new StopMarketOrder(Symbol, 100, 101.5m, Noon, type: SecurityType.Equity);
            var config = CreateTradeBarConfig(Symbol);
            var security = new Security(SecurityExchangeHoursTests.CreateUsEquitySecurityExchangeHours(), config, 1);
            security.SetLocalTimeKeeper(TimeKeeper.GetLocalTimeKeeper(TimeZones.NewYork));
            security.SetMarketPrice(new IndicatorDataPoint(Symbol, Noon, 101m));

            var fill = model.StopMarketFill(security, order);

            Assert.AreEqual(0, fill.FillQuantity);
            Assert.AreEqual(0, fill.FillPrice);
            Assert.AreEqual(OrderStatus.None, fill.Status);

            security.SetMarketPrice(new IndicatorDataPoint(Symbol, Noon, 102.5m));

            fill = model.StopMarketFill(security, order);

            // this fills worst case scenario, so it's min of asset/stop price
            Assert.AreEqual(order.Quantity, fill.FillQuantity);
            Assert.AreEqual(Math.Max(security.Price, order.StopPrice), fill.FillPrice);
            Assert.AreEqual(OrderStatus.Filled, fill.Status);
        }

        [Test]
        public void PerformsStopMarketFillSell()
        {
            var model = new SecurityTransactionModel();
            var order = new StopMarketOrder(Symbol, -100, 101.5m, Noon, type: SecurityType.Equity);
            var config = CreateTradeBarConfig(Symbol);
            var security = new Security(SecurityExchangeHoursTests.CreateUsEquitySecurityExchangeHours(), config, 1);
            security.SetLocalTimeKeeper(TimeKeeper.GetLocalTimeKeeper(TimeZones.NewYork));
            security.SetMarketPrice(new IndicatorDataPoint(Symbol, Noon, 102m));

            var fill = model.StopMarketFill(security, order);

            Assert.AreEqual(0, fill.FillQuantity);
            Assert.AreEqual(0, fill.FillPrice);
            Assert.AreEqual(OrderStatus.None, fill.Status);

            security.SetMarketPrice(new IndicatorDataPoint(Symbol, Noon, 101m));

            fill = model.StopMarketFill(security, order);

            // this fills worst case scenario, so it's min of asset/stop price
            Assert.AreEqual(order.Quantity, fill.FillQuantity);
            Assert.AreEqual(Math.Min(security.Price, order.StopPrice), fill.FillPrice);
            Assert.AreEqual(OrderStatus.Filled, fill.Status);
        }

        [Test]
        public void PerformsMarketOnOpenUsingOpenPrice()
        {
            var reference = new DateTime(2015, 06, 05, 9, 0, 0); // before market open
            var model = new SecurityTransactionModel();
            var order = new MarketOnOpenOrder(Symbol, SecurityType.Equity, 100, reference);
            var config = CreateTradeBarConfig(Symbol);
            var security = new Security(SecurityExchangeHoursTests.CreateUsEquitySecurityExchangeHours(), config, 1);
            security.SetLocalTimeKeeper(TimeKeeper.GetLocalTimeKeeper(TimeZones.NewYork));
            var time = reference;
            TimeKeeper.SetUtcDateTime(time.ConvertToUtc(TimeZones.NewYork));
            security.SetMarketPrice(new TradeBar(time, Symbol, 1m, 2m, 0.5m, 1.33m, 100));

            var fill = model.MarketOnOpenFill(security, order);
            Assert.AreEqual(0, fill.FillQuantity);

            // market opens after 30min, so this is just before market open
            time = reference.AddMinutes(29);
            TimeKeeper.SetUtcDateTime(time.ConvertToUtc(TimeZones.NewYork));
            security.SetMarketPrice(new TradeBar(time, Symbol, 1.33m, 2.75m, 1.15m, 1.45m, 100));

            fill = model.MarketOnOpenFill(security, order);
            Assert.AreEqual(0, fill.FillQuantity);

            // market opens after 30min
            time = reference.AddMinutes(30);
            TimeKeeper.SetUtcDateTime(time.ConvertToUtc(TimeZones.NewYork));
            security.SetMarketPrice(new TradeBar(time, Symbol, 1.45m, 2.0m, 1.1m, 1.40m, 100));

            fill = model.MarketOnOpenFill(security, order);
            Assert.AreEqual(order.Quantity, fill.FillQuantity);
            Assert.AreEqual(security.Open, fill.FillPrice);
        }

        [Test]
        public void PerformsMarketOnCloseUsingClosingPrice()
        {
            var reference = new DateTime(2015, 06, 05, 15, 0, 0); // before market close
            var model = new SecurityTransactionModel();
            var order = new MarketOnCloseOrder(Symbol, SecurityType.Equity, 100, reference);
            var config = CreateTradeBarConfig(Symbol);
            var security = new Security(SecurityExchangeHoursTests.CreateUsEquitySecurityExchangeHours(), config, 1);
            security.SetLocalTimeKeeper(TimeKeeper.GetLocalTimeKeeper(TimeZones.NewYork));
            var time = reference;
            TimeKeeper.SetUtcDateTime(time.ConvertToUtc(TimeZones.NewYork));
            security.SetMarketPrice(new TradeBar(time, Symbol, 1m, 2m, 0.5m, 1.33m, 100));

            var fill = model.MarketOnCloseFill(security, order);
            Assert.AreEqual(0, fill.FillQuantity);

            // market closes after 60min, so this is just before market Close
            time = reference.AddMinutes(59);
            TimeKeeper.SetUtcDateTime(time.ConvertToUtc(TimeZones.NewYork));
            security.SetMarketPrice(new TradeBar(time, Symbol, 1.33m, 2.75m, 1.15m, 1.45m, 100));

            fill = model.MarketOnCloseFill(security, order);
            Assert.AreEqual(0, fill.FillQuantity);

            // market closes
            time = reference.AddMinutes(60);
            TimeKeeper.SetUtcDateTime(time.ConvertToUtc(TimeZones.NewYork));
            security.SetMarketPrice(new TradeBar(time, Symbol, 1.45m, 2.0m, 1.1m, 1.40m, 100));

            fill = model.MarketOnCloseFill(security, order);
            Assert.AreEqual(order.Quantity, fill.FillQuantity);
            Assert.AreEqual(security.Close, fill.FillPrice);
        }

        private SubscriptionDataConfig CreateTradeBarConfig(string symbol)
        {
            return new SubscriptionDataConfig(typeof(TradeBar), SecurityType.Equity, symbol, Resolution.Minute, "usa", TimeZones.NewYork, true, true, false);
        }
    }
}


text:
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/**
 * Every function instance has a [[Call]] property
 *
 * @path ch15/15.3/15.3.5/S15.3.5_A2_T1.js
 * @description For testing call Function("var x =1; this.y=2;return \"OK\";")()
 */

//CHECK#1
if (Function("var x =1; this.y=2;return \"OK\";")() !== "OK") {
  $ERROR('#1: Every function instance has a [[Call]] property');
}

//CHECK#2
if (typeof x !== "undefined") {
  $ERROR('#2: Every function instance has a [[Call]] property');
}

//CHECK#3
if (y !== 2) {
  $ERROR('#3: Every function instance has a [[Call]] property');
}

redpajama_set_name: RedPajamaGithub


text:
@import VindsidenKit;

#import "RHCStationCell.h"
#import "NSSet+Sort.h"

#import "NSObject+performBlockCancel.h"
#import "RHEGraphView.h"

@interface RHCStationCell ()

@property (strong, nonatomic) NSDateFormatter *dateFormatter;

@property (strong, nonatomic) NSTimer *updatedTimer;

@end

@implementation RHCStationCell

@synthesize currentStation = _currentStation;

- (void)awakeFromNib
{
    [super awakeFromNib];

    self.updatedAtLabel.text = @"";
    self.cameraButton.alpha = 0.0;
}

- (void)prepareForReuse
{
    [super prepareForReuse];

    [self.updatedTimer invalidate];
    self.updatedTimer = nil;

    self.updatedAtLabel.text = NSLocalizedString(@"LABEL_UPDATING", @"Updating");

    self.cameraButton.alpha = 0.0;
    self.graphView.plots = nil;
    [self.stationView resetInfoLabels];
}

- (NSDateFormatter *) dateFormatter
{
    if ( _dateFormatter ) {
        return _dateFormatter;
    }

    _dateFormatter = [[NSDateFormatter alloc] init];
    [_dateFormatter setDateStyle:NSDateFormatterMediumStyle];
    [_dateFormatter setTimeStyle:NSDateFormatterMediumStyle];

    return _dateFormatter;
}

- (void)updateLastUpdatedLabel
{
    CDPlot *plot = self.currentStation.lastRegisteredPlot;

    if ( plot != nil ) {
        if ( [plot.plotTime compare:[NSDate date]] == NSOrderedAscending ) {
            self.updatedAtLabel.text = [[AppConfig sharedConfiguration] relativeDate:plot.plotTime];
        } else {
            self.updatedAtLabel.text = [[AppConfig sharedConfiguration] relativeDate:nil];
        }
    } else {
        self.updatedAtLabel.text = NSLocalizedString(@"LABEL_NOT_UPDATED", @"Not updated");
    }
}

- (void)displayPlots
{
    dispatch_async(dispatch_get_main_queue(), ^{
        [self syncDisplayPlots];
    });
}

- (void)syncDisplayPlots
{
    NSDate *inDate = [[NSDate date] dateByAddingTimeInterval:-1*(kPlotHistoryHours-1)*3600];
    NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian];
    NSDateComponents *inputComponents = [gregorian components:(NSCalendarUnitYear | NSCalendarUnitMonth | NSCalendarUnitDay | NSCalendarUnitHour) fromDate:inDate];
    NSDate *outDate = [gregorian dateFromComponents:inputComponents];
    NSManagedObjectContext *context = self.currentStation.managedObjectContext;
    NSFetchRequest *fetchRequest = CDPlot.fetchRequest;

    fetchRequest.predicate = [NSPredicate predicateWithFormat:@"station == %@ AND plotTime >= %@", self.currentStation, outDate];
    fetchRequest.sortDescriptors = @[[NSSortDescriptor sortDescriptorWithKey:@"plotTime" ascending:NO]];

    NSArray *cdplots = [context executeFetchRequest:fetchRequest error:nil];

    if ( [cdplots count] ) {
        self.graphView.plots = cdplots;
        [self.stationView updateWithPlot:cdplots.firstObject];
        if ( [[cdplots[0] plotTime] compare:[NSDate date]] == NSOrderedAscending ) {
            self.updatedAtLabel.text = [[AppConfig sharedConfiguration] relativeDate:[cdplots.firstObject plotTime]];
        } else {
            self.updatedAtLabel.text = [[AppConfig sharedConfiguration] relativeDate:nil];
        }
    } else {
        self.updatedAtLabel.text = NSLocalizedString(@"LABEL_NOT_UPDATED", @"Not updated");
    }
}

#pragma mark -

- (void)setCurrentStation:(CDStation *)currentStation
{
    _currentStation = currentStation;

    self.stationNameLabel.text = self.currentStation.stationName;
    [self displayPlots];

    [self.updatedTimer invalidate];
    self.updatedTimer = [[NSTimer alloc] initWithFireDate:[NSDate date]
                                                 interval:1
                                                   target:self
                                                 selector:@selector(updateLastUpdatedLabel)
                                                 userInfo:nil
                                                  repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:self.updatedTimer forMode:NSDefaultRunLoopMode];
}

@end


text:
<?php

namespace cloud\siteBundle\Controller;

use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use cloud\siteBundle\Entity\Sede;
use cloud\siteBundle\Form\SedeType;

/**
 * Sede controller.
 *
 * @Route("/admincloud/sede")
 */
class SedeController extends Controller
{
    /**
     * Lists all Sede entities.
     *
     * @Route("/", name="admincloud_sede")
     * @Template()
     */
    public function indexAction()
    {
        $em = $this->getDoctrine()->getManager();

        $entities = $em->getRepository('cloudBundle:Sede')->findAll();

        return array(
            'entities' => $entities,
        );
    }

    /**
     * Finds and displays a Sede entity.
     *
     * @Route("/{id}/show", name="admincloud_sede_show")
     * @Template()
     */
    public function showAction($id)
    {
        $em = $this->getDoctrine()->getManager();

        $entity = $em->getRepository('cloudBundle:Sede')->find($id);

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

        $deleteForm = $this->createDeleteForm($id);

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

    /**
     * Displays a form to create a new Sede entity.
     *
     * @Route("/new", name="admincloud_sede_new")
     * @Template()
     */
    public function newAction()
    {
        $entity = new Sede();
        $form   = $this->createForm(new SedeType(), $entity);

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

    /**
     * Creates a new Sede entity.
     *
     * @Route("/create", name="admincloud_sede_create")
     * @Method("POST")
     * @Template("cloudBundle:Sede:new.html.twig")
     */
    public function createAction(Request $request)
    {
        $entity  = new Sede();
        $form = $this->createForm(new SedeType(), $entity);
        $form->bind($request);

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

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

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

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

        $entity = $em->getRepository('cloudBundle:Sede')->find($id);

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

        $editForm = $this->createForm(new SedeType(), $entity);
        $deleteForm = $this->createDeleteForm($id);

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

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

        $entity = $em->getRepository('cloudBundle:Sede')->find($id);

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

        $deleteForm = $this->createDeleteForm($id);
        $editForm = $this->createForm(new SedeType(), $entity);
        $editForm->bind($request);

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

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

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

    /**
     * Deletes a Sede entity.
     *
     * @Route("/{id}/delete", name="admincloud_sede_delete")
     * @Method("POST")
     */
    public function deleteAction(Request $request, $id)
    {
        $form = $this->createDeleteForm($id);
        $form->bind($request);

        if ($form->isValid()) {
            $em = $this->getDoctrine()->getManager();
            $entity = $em->getRepository('cloudBundle:Sede')->find($id);

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

            $em->remove($entity);
            $em->flush();
        }

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

    private function createDeleteForm($id)
    {
        return $this->createFormBuilder(array('id' => $id))
            ->add('id', 'hidden')
            ->getForm()
        ;
    }
}


text:
var path = require('path');
var webpack = require('webpack');
var platform = require('vendor-code');

module.exports = {
  entry: {
    components: ['./components/Button.js']
  },
  output: {
    library: '[name]_[hash]',
    libraryTarget: 'var',
    filename: './output/[name]_[hash].js'
  },
  recordsPath: path.resolve(__dirname, './webpack.records'),
  plugins: [
    new webpack.DllReferencePlugin({
      manifest: require(platform.manifest)
    }),
    new webpack.DllPlugin({
      path: './output/components.manifest.json',
      name: "[name]_[hash]",
    })
  ]
};


text:
package net.nickac.lithium.frontend.mod.network.packethandler.in;

import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import net.nickac.lithium.backend.controls.LContainer;
import net.nickac.lithium.backend.controls.LControl;
import net.nickac.lithium.backend.controls.impl.LWindow;
import net.nickac.lithium.backend.other.LithiumConstants;
import net.nickac.lithium.backend.serializer.SerializationUtils;
import net.nickac.lithium.frontend.mod.LithiumMod;
import net.nickac.lithium.frontend.mod.network.packethandler.abstracts.PacketIn;

import java.util.List;
import java.util.UUID;

public class AddToContainer implements PacketIn {

    @SideOnly(Side.CLIENT)
    @Override
    public void execute(List<String> data) {
        try {
            //Deserialize the control
            LControl newC = SerializationUtils.stringToObject(data.get(1), LControl.class);

            UUID uuid = UUID.fromString(data.get(0));
            LControl l = LithiumMod.getWindowManager().getControlById(uuid);
            if (l != null) {
                //Check if it is a container
                if (l instanceof LContainer) {
                    ((LContainer) l).addControl(newC);
                    if (LithiumMod.getCurrentLithium() != null) {
                        //Lets try adding this control.
                        //It might work...
                        LithiumMod.getCurrentLithium().addControlToGUI(newC);
                    }
                }
            } else {
                //It might be a window....
                LWindow window = LithiumMod.getWindowManager().getWindowById(uuid);
                if (window != null) {
                    window.addControl(newC);
                    if (LithiumMod.getCurrentLithium() != null &&
                            LithiumMod.getCurrentLithium().getBaseWindow().getUUID().equals(uuid)) {
                        LithiumMod.getCurrentLithium().addControlToGUI(newC);
                    }
                }

            }

        } catch (ArrayIndexOutOfBoundsException | IllegalArgumentException ex) {
            LithiumMod.log("Received malformed packet from server. Ignoring!");
        }
    }

    @Override
    public String key() {
        return LithiumConstants.TO_CLIENT.ADD_TO_CONTAINER;
    }
}


text:
package de.brembs.kickplanner.domain;

import java.util.Objects;
import java.util.UUID;

/**
 *
 * @author rmetzger
 */
public class Team {

    private UUID uuid;
    private UUID eventUuid;
    private String description;
    private String color;

    public UUID getUuid() {
        return uuid;
    }

    public void setUuid(UUID uuid) {
        this.uuid = uuid;
    }

    public UUID getEventUuid() {
        return eventUuid;
    }

    public void setEventUuid(UUID eventUuid) {
        this.eventUuid = eventUuid;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 59 * hash + Objects.hashCode(this.uuid);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Team other = (Team) obj;
        if (!Objects.equals(this.uuid, other.uuid)) {
            return false;
        }
        return true;
    }
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.github.aistomin</groupId>
    <artifactId>musicist</artifactId>
    <packaging>war</packaging>
    <version>1.0-SNAPSHOT</version>
    <properties>
        <jdk.version>15</jdk.version>
        <spring.version>6.0.0</spring.version>
        <jstl.version>1.2</jstl.version>
        <slf4j.version>2.0.4</slf4j.version>
        <hibernate.version>6.1.5.Final</hibernate.version>
        <junitVersion>5.9.1</junitVersion>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
    <dependencies>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <version>4.0.1</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-webmvc</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-orm</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-tx</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-jdbc</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>jstl</artifactId>
            <version>${jstl.version}</version>
        </dependency>
        <dependency>
            <groupId>org.facebook4j</groupId>
            <artifactId>facebook4j-core</artifactId>
            <version>2.4.13</version>
        </dependency>
        <dependency>
            <groupId>com.google.oauth-client</groupId>
            <artifactId>google-oauth-client</artifactId>
            <version>1.34.1</version>
        </dependency>
        <dependency>
            <groupId>com.google.http-client</groupId>
            <artifactId>google-http-client</artifactId>
            <version>1.42.3</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>${slf4j.version}</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-reload4j</artifactId>
            <version>${slf4j.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-core</artifactId>
            <version>2.19.0</version>
        </dependency>
        <dependency>
            <groupId>org.hibernate.orm</groupId>
            <artifactId>hibernate-core</artifactId>
            <version>${hibernate.version}</version>
        </dependency>
        <dependency>
            <groupId>javax.persistence</groupId>
            <artifactId>javax.persistence-api</artifactId>
            <version>2.2</version>
        </dependency>
        <dependency>
            <groupId>com.h2database</groupId>
            <artifactId>h2</artifactId>
            <version>2.1.214</version>
        </dependency>
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-api</artifactId>
            <version>${junitVersion}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-engine</artifactId>
            <version>${junitVersion}</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.10.1</version>
                <configuration>
                    <source>${jdk.version}</source>
                    <target>${jdk.version}</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>
                <version>11.0.12</version>
                <configuration>
                    <scanIntervalSeconds>10</scanIntervalSeconds>
                    <webApp>
                        <contextPath>/</contextPath>
                    </webApp>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <version>3.2.0</version>
                <dependencies>
                    <dependency>
                        <groupId>com.puppycrawl.tools</groupId>
                        <artifactId>checkstyle</artifactId>
                        <version>10.2</version>
                    </dependency>
                </dependencies>
                <executions>
                    <execution>
                        <id>verify-style</id>
                        <phase>process-classes</phase>
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <logViolationsToConsole>true</logViolationsToConsole>
                    <includeTestSourceDirectory>true</includeTestSourceDirectory>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>0.8.8</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>jacoco-report</id>
                        <phase>test</phase>
                        <goals>
                            <goal>report</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>com.github.aistomin</groupId>
                <artifactId>maven-dependencies-analyser</artifactId>
                <version>2.0</version>
                <configuration>
                    <level>WARNING</level>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>com.github.spotbugs</groupId>
                <artifactId>spotbugs-maven-plugin</artifactId>
                <version>4.7.3.0</version>
                <dependencies>
                    <dependency>
                        <groupId>com.github.spotbugs</groupId>
                        <artifactId>spotbugs</artifactId>
                        <version>4.2.0</version>
                    </dependency>
                </dependencies>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>3.3.2</version>
            </plugin>
        </plugins>
    </build>
</project>


text:
<?php

namespace Sonata\Component\Basket;

use Sonata\CoreBundle\Model\BaseEntityManager;

class BasketElementManager extends BaseEntityManager implements BasketElementManagerInterface
{
}


text:
{% extends "base.html" %}

{% block page_content %}

Comment moderation

{% for comment in comments %}
    {% set talk = comment.talk %}

In {{ talk.title }}

        {% include "talks/_comment.html" %}

{% endfor %}

{% endblock %}

{% block scripts %}
{{ super() }}
{% include "_api_client.html" %}
{% endblock %}


text:
{% extends "layout.html" %}

{% block page_title %}
Is this the vehicle you are looking for?
{% endblock %}

{% block head %}
{% include "includes/head.html" %}
{% include "includes/scripts.html" %}
<link href="/public/stylesheets/numberplate.css" rel="stylesheet" type="text/css" />
{% endblock %}

{% import "templates/button.html" as button %}

{% block content %}

    {% include "includes/phase_banner_beta.html" %}
    {% include "includes/buttons/back.html" %}

            {% include "includes/errors/vehicle-question-error-box.html" %}

 Is this the vehicle you are looking for?

                    Registration number
                    CU57 ABC

                    Make
                    Volkswagen

                    Colour
                    Blue

            <form class="form">

                        Select an option

                    <fieldset class="inline">
                        <legend class="visuallyhidden"> Is this the vehicle you are looking for? </legend>

                            <input id="vehicle-a1" type="radio" name="vehicle" value="Yes">
                            Yes

                            <input id="vehicle-a2" type="radio" name="vehicle" value="No">
                            No

                    </fieldset>

                {{ button.input(id='continue', name='continue', class='button', type='button', value='Continue') }}
            </form>

{% endblock %}


text:
import { Camera } from "../cameras/Camera";
import { IAsyncResource } from "../IAsyncResource";
import { IMaterial } from "../materials/Material";
import { Mesh } from "../Mesh";
import { Scene } from "../Scene";
import { Texture } from "../textures/Texture";
import { DeferredProcessor } from "./deferred/DeferredProcessor";
import { ForwardProcessor } from "./forward/ForwardProcessor";
import { FrameBuffer } from "./FrameBuffer";
import { Graphics } from "./GraphicsUtils";
import { WebGLExtension } from "./IExtension";
import { IProcessor } from "./IProcessor";
import { ShadowPreProcess } from "./ShadowPreProcessor";

export class Renderer {
    public readonly canvas: HTMLCanvasElement = null;

    public readonly gl: WebGLRenderingContext = null;

    public readonly ext: WebGLExtension;

    public debug: boolean = false;

    public preloadRes: any[] = [];

    public usedTextureNum: number = 0;

    public renderTargets: Texture[] = [];

    public vertPrecision: string = "highp";

    public fragPrecision: string = "mediump";

    public isAnimating: boolean = false;

    public renderQueue: Array<(deltaTime: number) => void> = [];

    public fbos: FrameBuffer[] = [];

    public scenes: Scene[] = [];

    public cameras: Camera[] = [];

    public frameRate: number = 1000 / 60;

    public currentFPS = 60;

    private startTime: number;

    private duration: number = 0;

    private stopped: boolean = false;

    private materials: IMaterial[] = [];

    private isDeferred = false;

    constructor(canvas: HTMLCanvasElement, debug?: boolean) {
        this.canvas = canvas;
        this.debug = debug;
        this.gl = Graphics.initWebwebglContext(canvas, debug);
        this.ext = {
            depth_texture: this.gl.getExtension("WEBGL_depth_texture"),
            draw_buffer: this.gl.getExtension("WEBGL_draw_buffers"),
            texture_float: this.gl.getExtension("OES_texture_float"),
            texture_half_float: this.gl.getExtension("OES_texture_half_float"),
            texture_float_linear: this.gl.getExtension(
                "OES_texture_float_linear",
            ),
        };
        this.gl.clearDepth(1.0);
        this.gl.enable(this.gl.DEPTH_TEST);
        this.gl.depthFunc(this.gl.LEQUAL);
        this.startTime = Date.now();
        requestAnimationFrame(this.main);
    }

    public async waitAsyncResouces(asyncRes: IAsyncResource) {
        await asyncRes.asyncFinished;
    }

    public stop() {
        this.stopped = true;
    }

    public start() {
        this.stopped = false;
        requestAnimationFrame(this.main);
    }

    public createFrameBuffer(): FrameBuffer {
        const fbo = new FrameBuffer(this.gl);
        this.fbos.push(fbo);
        return fbo;
    }

    public handleResource(scene: Scene) {
        const objectPromises = [];
        for (const object of scene.objects) {
            const promise = object.asyncFinished();
            if (!!promise) {
                objectPromises.push(
                    promise.then(() => {
                        for (const child of object.children) {
                            scene.addObject(child);
                        }
                    }),
                );
            }
        }
        return Promise.all(objectPromises).then(() => {
            const texturePromises = [];
            for (const object of scene.objects) {
                if (object instanceof Mesh) {
                    for (const material of (object as Mesh).materials) {
                        const _material: any = material;
                        for (const textureGetter of _material.asyncResources) {
                            const promise: Promise<any> = textureGetter(
                                _material,
                            );
                            if (!!promise) {
                                texturePromises.push(
                                    promise.then((texture: Texture) => {
                                        texture.apply(this.gl);
                                        return Promise.resolve(texture);
                                    }),
                                );
                            }
                        }
                    }
                }
            }
            return Promise.all(texturePromises);
        });
    }

    public forceDeferred() {
        this.isDeferred = true;
    }

    public render(scene: Scene, camera: Camera, adaptCanvasAspectRatio = true) {
        if (adaptCanvasAspectRatio) {
            camera.setAspectRadio(this.canvas.width / this.canvas.height);
        }
        if (this.scenes.indexOf(scene) !== -1 || this.preloadRes.length > 0) {
            return;
        }
        this.scenes.push(scene);

        this.handleResource(scene)
            .then(() => {
                const materials = [];
                for (const obj of scene.objects) {
                    if (obj instanceof Mesh) {
                        const mesh = obj as Mesh;
                        for (const material of mesh.materials) {
                            if (materials.indexOf(material) === -1) {
                                materials.push(material);
                            }
                        }
                    }
                }

                for (const object of scene.objects) {
                    if (object instanceof Mesh) {
                        Graphics.copyDataToVertexBuffer(
                            this.gl,
                            (object as Mesh).geometry,
                        );
                    }
                }

                const shadowPreProcess = new ShadowPreProcess(
                    this.gl,
                    this.ext,
                    scene,
                );

                // TODO: Dynamic processor strategy
                const processor: IProcessor = this.isDeferred
                    ? new DeferredProcessor(this.gl, this.ext, scene, camera)
                    : new ForwardProcessor(this.gl, this.ext, scene, camera);

                scene.programSetUp = true;
                this.renderQueue.push((deltaTime: number) => {
                    scene.update(deltaTime);
                    if (!this.isDeferred) {
                        shadowPreProcess.process(scene, camera, materials);
                    }
                    processor.process(scene, camera, materials);
                });
            })
            .catch((err) => {
                console.error(err);
            });
    }

    private renderLight(light, scene) {
        // Undo
    }

    private main = () => {
        if (this.stopped) {
            return;
        }
        const now = Date.now();
        for (const renderCommand of this.renderQueue) {
            renderCommand(this.frameRate);
        }
        const delta = now - this.duration - this.startTime;
        this.currentFPS = 1000 / delta;
        this.duration = now - this.startTime;
        requestAnimationFrame(this.main);
    }
}


text:
<!DOCTYPE html>

    <meta charset="UTF-8">
    <title>Partners List by devorganizers</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" href="stylesheets/normalize.css" media="screen">
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen">
    <link rel="stylesheet" type="text/css" href="stylesheets/github-light.css" media="screen">

Partners List

List of partner companies to help support developer events

      View on GitHub

Partners / Sponsors List

The purpose of this list is to help developer-focused event organizers, anywhere in the world, to find contact information for companies that are interested in helping partner, or sponsor events.

The time each company takes to reply may vary, and it does not mean that sending your requests to them will guarantee partnerships/sponsorships.

Please try to include some basic information such as:

Event Name

Date

Location (Venue, City, Country)

Approximate number of attendees expected

Partner / Sponsorship Requirements

Let's throw some kick-ass events!

Company
Description
Contact

SendGrid
Email API
community@sendgrid.com

PayPal
Online Payment Solution
developers@paypal.com

TokBox
Live Video streaming API over WebRTC
marketing@tokbox.com

MongoDB
Opensource Document Database
community@mongodb.com

Keen IO
Analytics Backend for Developers

team@keen.io, justin@keen.io, http://twitter.com/keen_io

GitHub
Tools for Software Collaboration
http://community.github.com

DigitalOcean
Simple Cloud Hosting
http://sponsorship.digitalocean.com/

Marketo
Marketing Automation Platform
developer-relations@marketo.com

Concur
Travel and Expense APIs

chris.ismael@concur.com , http://twitter.com/concurapi

Shutterstock
Photo API

nhughes@shutterstock.com, http://twitter.com/shuttertech

Mashery
Network of 40+ APIs
Sarah-Jane smorris@mashery.com

Rdio
Music API

developersupport@rd.io, http://twitter.com/rdioapi, http://www.rdio.com/developers/

Microsoft

http://tech-advisors.msdn.microsoft.com/en-us

iugu
Online Payment Infrastructure
rosi@iugu.com

JetBrains
World's Leading Vendor of Professional Development Tools
sponsorships@jetbrains.com

Respoke
Web Communications Platform (add live audio, video, data, messaging, and screensharing natively in the browser)
ktyacke@respoke.io

        Partners List is maintained by devorganizers.

        This page was generated by GitHub Pages using the Cayman theme by Jason Long.


text:
package org.arvios.myapps;

import java.io.IOException;

/**
 * Created by artem-ostrovsky on 10.10.2016.
 */
public interface Observer {
    void notify(int n1, int n2) throws IOException;
}


text:
![](docs/perf_infra.png)

Related projects:
* [cbmonitor](https://github.com/couchbase/cbmonitor)
* [showfast](https://github.com/couchbaselabs/showfast)
* [seriesly](https://github.com/dustin/seriesly)
* [seriesly client](https://github.com/pavel-paulau/seriesly-python-client)
* [moveit](https://github.com/pavel-paulau/moveit)
* [dcp](https://github.com/couchbaselabs/python-dcp-client)

Installation
------------------------------

Before using perfrunner you should install the requirements listed in the requirements section. At a minimum you need Python 2.7, virtualenv, and libcouchbase.

First clone the perfrunner repo with the command below.

    git clone https://github.com/couchbaselabs/perfrunner.git

Once inside the perfrunner directory create a virtual environment for all of the perfrunner dependencies and install all of the dependencies so that you can run perfrunner.

    make

Cluster installation and setup
------------------------------

    ./env/bin/install -c ${cluster} -v ${version} -t ${toy}
    ./env/bin/cluster -c ${cluster} -t ${test_config}

For instance:

    ./env/bin/install -c clusters/vesta.spec -v 2.0.0-1976

    ./env/bin/install -c clusters/vesta.spec -v 2.1.1-PRF03 -t couchstore

    ./env/bin/cluster -c clusters/vesta.spec -t tests/comp_bucket_20M.test

Running performance tests
-------------------------

    ./env/bin/perfrunner -c ${cluster} -t ${test_config}

For instance:

    ./env/bin/perfrunner -c clusters/vesta.spec -t tests/comp_bucket_20M.test

Overriding test config options (comma-separated section.option.value trios):

    ./env/bin/perfrunner -c clusters/vesta.spec -t tests/comp_bucket_20M.test \
        load.size.512,cluster.initial_nodes.3 4

`--verbose` flag enables Fabric logging.

`--nodebug` flag disables debug phase (e.g., execution of cbcollect_info).

With `--local` flag localhost will be used as a workload generator.

Running unit tests
------------------

Just run test target.

    make test


text:
/**
 * @generated SignedSource<<50d40dc07a53b5bb67000c09490be07a>>
 * @lightSyntaxTransform
 * @nogrep
 */

/* tslint:disable */
/* eslint-disable */
// @ts-nocheck

import { Fragment, ReaderFragment } from 'relay-runtime';
import { FragmentRefs } from "relay-runtime";
export type AuctionBidRoute_sale$data = {
  readonly internalID: string;
  readonly slug: string;
  readonly " $fragmentType": "AuctionBidRoute_sale";
};
export type AuctionBidRoute_sale$key = {
  readonly " $data"?: AuctionBidRoute_sale$data;
  readonly " $fragmentSpreads": FragmentRefs<"AuctionBidRoute_sale">;
};

const node: ReaderFragment = {
  "argumentDefinitions": [],
  "kind": "Fragment",
  "metadata": null,
  "name": "AuctionBidRoute_sale",
  "selections": [
    {
      "alias": null,
      "args": null,
      "kind": "ScalarField",
      "name": "internalID",
      "storageKey": null
    },
    {
      "alias": null,
      "args": null,
      "kind": "ScalarField",
      "name": "slug",
      "storageKey": null
    }
  ],
  "type": "Sale",
  "abstractKey": null
};

(node as any).hash = "efd6e1444f2d92910840f5a571604439";

export default node;


text:
<?xml version="1.0" encoding="UTF-8"?>
<!--

    Licensed to the Austrian Association for Software Tool Integration (AASTI)
    under one or more contributor license agreements. See the NOTICE file
    distributed with this work for additional information regarding copyright
    ownership. The AASTI licenses this file to you under the Apache License,
    Version 2.0 (the "License"); you may not use this file except in compliance
    with the License. You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

  <parent>
    <groupId>org.openengsb.connector</groupId>
    <artifactId>openengsb-connector-parent</artifactId>
    <version>3.0.0-SNAPSHOT</version>
  </parent>

  <properties>
    <bundle.symbolicName>org.openengsb.connector.plaintextreport</bundle.symbolicName>
    <bundle.namespace>org.openengsb.connector.plaintextreport</bundle.namespace>
    <openengsb.domain.version>3.0.0-SNAPSHOT</openengsb.domain.version>
    <openengsb.domain.range>[3.0,4)</openengsb.domain.range>
    <openengsb.framework.version>3.0.0-SNAPSHOT</openengsb.framework.version>
  </properties>

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.openengsb.connector</groupId>
  <artifactId>org.openengsb.connector.plaintextreport</artifactId>
  <version>3.0.0-SNAPSHOT</version>

  <name>OpenEngSB :: Connector :: Plain Text Report</name>

  <packaging>bundle</packaging>

  <description>Plaintext Report Connector implements the Report Domain and generates plain text reports</description>

  <url>http://www.openengsb.org</url>

  <inceptionYear>2009</inceptionYear>

  <licenses>
    <license>
      <name>Apache 2</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <scm>
    <connection>scm:git:git://github.com/openengsb/openengsb-connector-plaintextreport.git</connection>
    <developerConnection>scm:git:git@github.com:openengsb/openengsb-connector-plaintextreport.git</developerConnection>
    <url>http://github.com/openengsb/openengsb</url>
  </scm>

  <issueManagement>
    <system>JIRA</system>
    <url>http://issues.openengsb.org/jira/browse/OPENENGSB</url>
  </issueManagement>

  <ciManagement>
    <system>OpenCIT</system>
    <url>http://build.openengsb.org/opencit/</url>
  </ciManagement>

  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <extensions>true</extensions>
        <configuration>
          <instructions>
            <Import-Package>
              ${openengsb.imports},
              org.openengsb.domain.report.*;version="${openengsb.domain.range}",
              *
            </Import-Package>
          </instructions>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.openengsb</groupId>
        <artifactId>openengsb-maven-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>com.agilejava.docbkx</groupId>
        <artifactId>docbkx-maven-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-assembly-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>wagon-maven-plugin</artifactId>
      </plugin>
    </plugins>
  </build>

  <dependencies>
    <!-- OpenEngSB Core References -->
    <dependency>
      <groupId>org.openengsb.framework</groupId>
      <artifactId>org.openengsb.framework.api</artifactId>
      <scope>provided</scope>
      <version>${openengsb.framework.version}</version>
    </dependency>
    <dependency>
      <groupId>org.openengsb.framework</groupId>
      <artifactId>org.openengsb.framework.common</artifactId>
      <scope>provided</scope>
      <version>${openengsb.framework.version}</version>
    </dependency>
    <dependency>
      <groupId>org.openengsb.framework</groupId>
      <artifactId>org.openengsb.framework.test</artifactId>
      <scope>test</scope>
      <version>${openengsb.framework.version}</version>
    </dependency>

    <!-- OpenEngSB Domain References -->
    <dependency>
      <groupId>org.openengsb.domain</groupId>
      <artifactId>org.openengsb.domain.report</artifactId>
      <version>${openengsb.domain.version}</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>

  <repositories>
    <repository> <!-- OEB snapshots are deployed here -->
     <id>sonatype-snapshots</id>
      <name>Sonaype Snapsht Repository</name>
      <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
  </repositories>

</project>


text:
#define LINUX_DEFAULT_ELF

/* A lie, I guess, but the general idea behind linux/ELF is that we are
   supposed to be outputting something that will assemble under SVr4.
   This gets us pretty close.  */

#define HANDLE_SYSV_PRAGMA

#undef  HANDLE_PRAGMA_PACK

#undef  TARGET_VERSION
#define TARGET_VERSION fprintf (stderr, " (M32R GNU/Linux with ELF)");

#undef  SIZE_TYPE
#define SIZE_TYPE "unsigned int"

#undef  PTRDIFF_TYPE
#define PTRDIFF_TYPE "int"

#undef  WCHAR_TYPE
#define WCHAR_TYPE "long int"

#undef  WCHAR_TYPE_SIZE
#define WCHAR_TYPE_SIZE BITS_PER_WORD

/* Provide a LINK_SPEC appropriate for Linux.  Here we provide support
   for the special GCC options -static and -shared, which allow us to
   link things in one of these three modes by applying the appropriate
   combinations of options at link-time. We like to support here for
   as many of the other GNU linker options as possible. But I don't
   have the time to search for those flags. I am sure how to add
   support for -soname shared_object_name. H.J.

   I took out %{v:%{!V:-V}}. It is too much :-(. They can use
   -Wl,-V.

   When the -shared link option is used a final link is not being
   done.  */

/* If ELF is the default format, we should not use /lib/elf.  */

#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"

#undef        LINK_SPEC
#if TARGET_LITTLE_ENDIAN
#define LINK_SPEC "%(link_cpu) -m m32rlelf_linux %{shared:-shared} \
  %{!shared: \
    %{!ibcs: \
      %{!static: \
        %{rdynamic:-export-dynamic} \
        %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "}} \
        %{static:-static}}}"
#else
#define LINK_SPEC "%(link_cpu) -m m32relf_linux %{shared:-shared} \
  %{!shared: \
    %{!ibcs: \
      %{!static: \
        %{rdynamic:-export-dynamic} \
        %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "}} \
        %{static:-static}}}"
#endif

#undef        LIB_SPEC
#define LIB_SPEC \
  "%{shared: -lc} \
    %{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} \
    %{profile:-lc_p} %{!profile: -lc}}"

#undef  STARTFILE_SPEC
#if defined HAVE_LD_PIE
#define STARTFILE_SPEC \
  "%{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}} \
   crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}"
#else
#define STARTFILE_SPEC \
  "%{!shared: \
     %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}}\
   crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
#endif

#undef  ENDFILE_SPEC
#define ENDFILE_SPEC \
  "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"

#undef  SUBTARGET_CPP_SPEC
#define SUBTARGET_CPP_SPEC "\
   %{posix:-D_POSIX_SOURCE} \
   %{pthread:-D_REENTRANT -D_PTHREADS} \
"

#define TARGET_OS_CPP_BUILTINS() LINUX_TARGET_OS_CPP_BUILTINS()

#define TARGET_ASM_FILE_END file_end_indicate_exec_stack


text:
title: Content Writing
image_path: /img/portfolio/1.jpg
---


text:
@interface OneCollectionViewCell : UICollectionViewCell

@property(nonatomic,strong) UIView * backView ;
@property(nonatomic,strong) UILabel * titleLable ;

@end


text:
// .NAME vtkTransformToGrid - create a grid for a vtkGridTransform
// .SECTION Description
// vtkTransformToGrid takes any transform as input and produces a grid
// for use by a vtkGridTransform.  This can be used, for example, to
// invert a grid transform, concatenate two grid transforms, or to
// convert a thin plate spline transform into a grid transform.
// .SECTION See Also
// vtkGridTransform vtkThinPlateSplineTransform vtkAbstractTransform

#ifndef vtkTransformToGrid_h
#define vtkTransformToGrid_h

#include "vtkFiltersHybridModule.h" // For export macro
#include "vtkAlgorithm.h"
#include "vtkImageData.h" // makes things a bit easier

class vtkAbstractTransform;

class VTKFILTERSHYBRID_EXPORT vtkTransformToGrid : public vtkAlgorithm
{
public:
  static vtkTransformToGrid *New();
  vtkTypeMacro(vtkTransformToGrid,vtkAlgorithm);
  void PrintSelf(ostream& os, vtkIndent indent);

  // Description:
  // Set/Get the transform which will be converted into a grid.
  virtual void SetInput(vtkAbstractTransform*);
  vtkGetObjectMacro(Input,vtkAbstractTransform);

  // Description:
  // Get/Set the extent of the grid.
  vtkSetVector6Macro(GridExtent,int);
  vtkGetVector6Macro(GridExtent,int);

  // Description:
  // Get/Set the origin of the grid.
  vtkSetVector3Macro(GridOrigin,double);
  vtkGetVector3Macro(GridOrigin,double);

  // Description:
  // Get/Set the spacing between samples in the grid.
  vtkSetVector3Macro(GridSpacing,double);
  vtkGetVector3Macro(GridSpacing,double);

  // Description:
  // Get/Set the scalar type of the grid.  The default is float.
  vtkSetMacro(GridScalarType,int);
  vtkGetMacro(GridScalarType,int);
  void SetGridScalarTypeToDouble(){this->SetGridScalarType(VTK_DOUBLE);};
  void SetGridScalarTypeToFloat(){this->SetGridScalarType(VTK_FLOAT);};
  void SetGridScalarTypeToShort(){this->SetGridScalarType(VTK_SHORT);};
  void SetGridScalarTypeToUnsignedShort()
    {this->SetGridScalarType(VTK_UNSIGNED_SHORT);};
  void SetGridScalarTypeToUnsignedChar()
    {this->SetGridScalarType(VTK_UNSIGNED_CHAR);};
  void SetGridScalarTypeToChar()
    {this->SetGridScalarType(VTK_CHAR);};

  // Description:
  // Get the scale and shift to convert integer grid elements into
  // real values:  dx = scale*di + shift.  If the grid is of double type,
  // then scale = 1 and shift = 0.
  double GetDisplacementScale() {
    this->UpdateShiftScale(); return this->DisplacementScale; };
  double GetDisplacementShift() {
    this->UpdateShiftScale(); return this->DisplacementShift; };

  // Description:
  // Get the output data object for a port on this algorithm.
  vtkImageData* GetOutput();

  // Description:
  // see vtkAlgorithm for details
  virtual int ProcessRequest(vtkInformation*,
                             vtkInformationVector**,
                             vtkInformationVector*);

protected:
  vtkTransformToGrid();
  ~vtkTransformToGrid();

  void RequestInformation (vtkInformation *,
                           vtkInformationVector **, vtkInformationVector *);

  void RequestData(vtkInformation *,
                   vtkInformationVector **, vtkInformationVector *);

  // Description:
  // Internal method to calculate the shift and scale values which
  // will provide maximum grid precision for a particular integer type.
  void UpdateShiftScale();

  unsigned long GetMTime();

  vtkAbstractTransform *Input;

  int GridScalarType;
  int GridExtent[6];
  double GridOrigin[3];
  double GridSpacing[3];

  double DisplacementScale;
  double DisplacementShift;
  vtkTimeStamp ShiftScaleTime;

  // see algorithm for more info
  virtual int FillOutputPortInformation(int port, vtkInformation* info);

private:
  vtkTransformToGrid(const vtkTransformToGrid&);  // Not implemented.
  void operator=(const vtkTransformToGrid&);  // Not implemented.
};

#endif


text:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ProjectModuleManager">
    <modules>
      <module fileurl="file://$PROJECT_DIR$/FPlib/FPlib.iml" filepath="$PROJECT_DIR$/FPlib/FPlib.iml" />
      <module fileurl="file://$PROJECT_DIR$/FilePickerDemo.iml" filepath="$PROJECT_DIR$/FilePickerDemo.iml" />
      <module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
      <module fileurl="file://$PROJECT_DIR$/materialfabmenu/materialfabmenu.iml" filepath="$PROJECT_DIR$/materialfabmenu/materialfabmenu.iml" />
    </modules>
  </component>
</project>


text:
namespace Northwind.Models
{
    using System;
    using System.Collections.Generic;

    public partial class Invoice
    {
        public string ShipName { get; set; }
        public string ShipAddress { get; set; }
        public string ShipCity { get; set; }
        public string ShipRegion { get; set; }
        public string ShipPostalCode { get; set; }
        public string ShipCountry { get; set; }
        public string CustomerID { get; set; }
        public string CustomerName { get; set; }
        public string Address { get; set; }
        public string City { get; set; }
        public string Region { get; set; }
        public string PostalCode { get; set; }
        public string Country { get; set; }
        public string Salesperson { get; set; }
        public int OrderID { get; set; }
        public Nullable<System.DateTime> OrderDate { get; set; }
        public Nullable<System.DateTime> RequiredDate { get; set; }
        public Nullable<System.DateTime> ShippedDate { get; set; }
        public string ShipperName { get; set; }
        public int ProductID { get; set; }
        public string ProductName { get; set; }
        public decimal UnitPrice { get; set; }
        public short Quantity { get; set; }
        public float Discount { get; set; }
        public Nullable<decimal> ExtendedPrice { get; set; }
        public Nullable<decimal> Freight { get; set; }
    }
}


text:
{-# LANGUAGE OverloadedStrings #-}
module MD5 (msgMD5, srvMD5) where
import Data.ByteString.Char8 (ByteString)
import qualified Data.ByteString.Char8 as B
import Data.Digest.Pure.MD5 (md5)
import Data.ByteString.Lazy (fromChunks)
import Data.Map ((!))
import qualified Data.Map as M
import Parse (simpleFieldAssoc)
import Types
import Analysis
import Control.Applicative ((<$>))

tMap :: M.Map MsgType ByteString
tMap = M.fromList simpleFieldAssoc

typeText :: MsgType -> MsgInfo ByteString
typeText (RFixedArray n t) =
  case M.lookup t tMap of
    Just t' -> return $ B.concat [t', "[", B.pack . show $ n, "]"]
    Nothing -> typeText t
typeText (RVarArray t) =
  case M.lookup t tMap of
    Just t' -> return $ B.append t' "[]"
    Nothing -> typeText t
typeText (RUserType b) = fmap B.pack (getMsg b >>= msgMD5 . snd)
typeText t = return $ tMap ! t

md5sum :: ByteString -> String
md5sum = show . md5 . fromChunks . (:[])

-- The "MD5 text" of a message is the .msg text with
-- * comments removed
-- * whitespace removed
-- * package names of dependencies removed
-- * constants reordered ahead of other declarations
-- from http://www.ros.org/wiki/ROS/Technical%20Overview
--
-- For user defined types, rather than recording a field as "type
-- identifier", we record "md5 identifier".
msgMD5 :: Msg -> MsgInfo String
msgMD5 m = md5sum <$> msgMD5Text m

-- | Generate the text the md5 is computed from
msgMD5Text :: Msg -> MsgInfo ByteString
msgMD5Text m = let cs = map constantText (constants m)
               in withMsg m $
                do fs <- mapM fieldText (fields m)
                   return $ B.intercalate "\n" (cs ++ fs)
  where constantText (MsgConst _ t v n) = B.concat [tMap ! t, " ", n, "=", v]
        fieldText (MsgField _ t n) = do t' <- typeText t
                                        return $ B.concat [t', " ", n]

-- | The MD5 for the service is generated by concatenating the MD5 text
-- | for the request and response and then calculating the MD5 sum.
-- | I have not found any ROS specification for this, but this is how
-- | roslib does it (see _compute_hash in
-- | http://docs.ros.org/api/roslib/html/python/roslib.gentools-pysrc.html).
srvMD5 :: Srv -> MsgInfo String
srvMD5 s = do
  let request = srvRequest s
      response = srvResponse s
  reqText <- msgMD5Text request
  resText <- msgMD5Text response
  return . md5sum $ B.append reqText resText


text:
.. WebDevOps Documentation documentation master file, created by
   sphinx-quickstart on Sat Mar 19 12:21:05 2016.
   You can adapt this file completely to your liking, but it should at least
   contain the root `toctree` directive.

:orphan: true

========
Overview
========

| Welcome to the documentation pages for the WebDevOps PHP Docker Boilerplate.
|
| Here you will find informations about the usage of the PHP Docker Boilerplate, as well as informations about the components we used to compose it.
| This documentation is work in progess and we appeciate every help we can get, so feel free to contribute.
|
|

.. toctree::

   Back to Project Overview <http://webdevops-documentation.readthedocs.io/en/latest/>
   content/introduction

.. toctree::
   :caption: Documentation

   content/gettingStarted/index
   content/usage/index
   content/components/index
   content/contribute/index


text:
"""Wrapper for adding logdog streaming support to swarming tasks."""

import argparse
import logging
import os
import signal
import subprocess
import sys
import urllib

def CommandParser():
  # Parses the command line arguments being passed in
  parser = argparse.ArgumentParser()
  parser.add_argument('--logdog-bin-cmd', required=True,
                      help='Command for running logdog butler binary')
  parser.add_argument('--project', required=True,
                      help='Name of logdog project')
  parser.add_argument('--logdog-server',
                      default='services-dot-luci-logdog.appspot.com',
                      help='URL of logdog server, https:// is assumed.')
  parser.add_argument('--service-account-json', required=True,
                      help='Location of authentication json')
  parser.add_argument('--prefix', required=True,
                      help='Prefix to be used for logdog stream')
  parser.add_argument('--source', required=True,
                      help='Location of file for logdog to stream')
  parser.add_argument('--name', required=True,
                      help='Name to be used for logdog stream')
  return parser

def CreateUrl(server, project, prefix, name):
  stream_name = '%s/%s/+/%s' % (project, prefix, name)
  return 'https://%s/v/?s=%s' % (server, urllib.quote_plus(stream_name))

def CreateSignalForwarder(proc):
  def handler(signum, _frame):
    logging.error('Forwarding signal %s to test process', str(signum))
    proc.send_signal(signum)

  return handler

def main():
  parser = CommandParser()
  args, test_cmd = parser.parse_known_args(sys.argv[1:])
  logging.basicConfig(level=logging.INFO)
  if not test_cmd:
    parser.error('Must specify command to run after the logdog flags')
  test_proc = subprocess.Popen(test_cmd)
  original_sigterm_handler = signal.signal(
      signal.SIGTERM, CreateSignalForwarder(test_proc))
  try:
    result = test_proc.wait()
  finally:
    signal.signal(signal.SIGTERM, original_sigterm_handler)
  if '${SWARMING_TASK_ID}' in args.prefix:
    args.prefix = args.prefix.replace('${SWARMING_TASK_ID}',
                                      os.environ.get('SWARMING_TASK_ID'))
  url = CreateUrl('luci-logdog.appspot.com', args.project, args.prefix,
                  args.name)
  logdog_cmd = [args.logdog_bin_cmd, '-project', args.project,
                '-output', 'logdog,host=%s' % args.logdog_server,
                '-prefix', args.prefix,
                '-service-account-json', args.service_account_json,
                'stream', '-source', args.source,
                '-stream', '-name=%s' % args.name]

  if not os.path.exists(args.logdog_bin_cmd):
    logging.error(
        'Logdog binary %s unavailable. Unable to upload logcats.',
        args.logdog_bin_cmd)
  elif not os.path.exists(args.source):
    logging.error(
        'Logcat sources not found at %s. Unable to upload logcats.',
        args.source)
  else:
    subprocess.call(logdog_cmd)
    logging.info('Logcats are located at: %s', url)
  return result

if __name__ == '__main__':
  sys.exit(main())


text:
/* global define */

define([
    '../core',
    './templates',
    './controls',
    './dom',

    // Load mutating plugins
    'bootstrap',
    'plugins/bootstrap-datepicker',
    'plugins/jquery-ui',
    'plugins/jquery-easing',
    'plugins/jquery-panels',
    'plugins/jquery-scroller'
], function(c, templates, controls, dom) {

    // Attach public APIs
    c.templates = templates;
    c.controls = controls;
    c.dom = dom;

    // Return the cilantro object so ui/* modules can load this directly
    return c;

});


text:
package org.onosproject.net.config.basics;

import org.onosproject.net.config.Config;

/**
 * Base abstraction for configuring feature on subject.
 *
 * @param <S> Subject type
 */
public abstract class BasicFeatureConfig<S> extends Config<S> {

    private static final String ENABLED = "enabled";

    private final boolean defaultValue;

    protected BasicFeatureConfig(boolean defaultValue) {
        this.defaultValue = defaultValue;
    }

    /**
     * Indicates whether the feature for the subject is enabled.
     *
     * @return true if feature is enabled
     */
    public boolean enabled() {
        return get(ENABLED, defaultValue);
    }

    /**
     * Specifies whether the feature for the subject is to be enabled.
     *
     * @param enabled true to enable; false to disable; null to clear
     * @return self
     */
    public BasicFeatureConfig<S> enabled(Boolean enabled) {
        return (BasicFeatureConfig<S>) setOrClear(ENABLED, enabled);
    }

}


text:
function Hd = Notch(fs,coef)
%Notch Returns a discrete-time filter object.

%
% M-File generated by MATLAB(R) 7.5 and the Signal Processing Toolbox 6.8.
%
% Generated on: 04-Jul-2008 22:44:33
%

% IIR Notching filter designed using the IIRNOTCH function.

Fn = str2double(coef{1});
Bw = str2double(coef{2});

% All frequency values are in Hz.
Fs = fs;  % Sampling Frequency

Fnotch = Fn;  % Notch Frequency
BW     = Bw;   % Bandwidth
Apass  = 1;   % Bandwidth Attenuation

[b, a] = iirnotch(Fnotch/(Fs/2), BW/(Fs/2), Apass);
Hd     = dfilt.df2(b, a);

end % [EOF]


text:
package com.abroad.uc.service;

import java.util.List;
import java.util.Map;

import com.abroad.common.exception.ServiceException;
import com.abroad.uc.domain.MenuPermission;
import com.abroad.uc.domain.OperationPermission;

/**
* @ClassName: IPermissionService
* @Description: TODO(权限服务接口)
* @author: mengxr
* @date 2017年4月12日 下午9:02:51
*/
public interface IPermissionService {
	/**
	* @Title: queryMenuPermissByUserId
	* @Description: TODO(通过用户ID查询菜单权限)
	* @param @return    设定文件
	* @return List<MenuPermission>    返回类型
	* @author: mengxr
	* @date 2017年4月12日 下午8:57:34
	* @throws
	*/
	List<MenuPermission> queryMenuPermissByUserId(long userId) throws ServiceException;
	/**
	* @Title: queryOperPermissByUserId
	* @Description: TODO(根据用户ID查询功能权限)
	* @param @param userId
	* @param @return    设定文件
	* @return List<OperationPermission>    返回类型
	* @author: mengxr
	* @date 2017年4月12日 下午8:58:42
	* @throws
	*/
	List<OperationPermission> queryOperPermissByUserId(long userId) throws ServiceException;

	/**
	* @Title: queryMouduleChainDefinition
	* @Description: TODO(根据项目模板加载操作权限链路)
	* @param @param mouduleCode
	* @param @return
	* @param @throws Exception    设定文件
	* @return Map<String,String>    返回类型
	* @author: mengxr
	* @date 2017年4月13日 上午11:21:56
	* @throws
	*/
	Map<String, String> queryMouduleChainDefinition(String mouduleCode) throws ServiceException;
}


text:
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

/*
 * Runtime type representation.
 *
 * The following files know the exact layout of these
 * data structures and must be kept in sync with this file:
 *
 *	../../cmd/gc/reflect.c
 *	../reflect/type.go
 *	type.h
 */

package runtime

import "unsafe"

// The compiler can only construct empty interface values at
// compile time; non-empty interface values get created
// during initialization.  Type is an empty interface
// so that the compiler can lay out references as data.
type Type interface{}

// All types begin with a few common fields needed for
// the interface runtime.
type commonType struct {
	size		uintptr;	// size in bytes
	hash		uint32;		// hash of type; avoids computation in hash tables
	alg		uint8;		// algorithm for copy+hash+cmp (../runtime/runtime.h:/AMEM)
	align		uint8;		// alignment of variable with this type
	fieldAlign	uint8;		// alignment of struct field with this type
	string		*string;	// string form; unnecessary  but undeniably useful
	*uncommonType;			// (relatively) uncommon fields
}

// Method on non-interface type
type method struct {
	hash	uint32;		// hash of name + pkg + typ
	name	*string;	// name of method
	pkgPath	*string;	// nil for exported Names; otherwise import path
	typ	*Type;		// .(*FuncType) underneath
	ifn	unsafe.Pointer;	// fn used in interface call (one-word receiver)
	tfn	unsafe.Pointer;	// fn used for normal method call
}

// uncommonType is present only for types with names or methods
// (if T is a named type, the uncommonTypes for T and *T have methods).
// Using a pointer to this struct reduces the overall size required
// to describe an unnamed type with no methods.
type uncommonType struct {
	name	*string;	// name of type
	pkgPath	*string;	// import path; nil for built-in types like int, string
	methods	[]method;	// methods associated with type
}

// BoolType represents a boolean type.
type BoolType commonType

// Float32Type represents a float32 type.
type Float32Type commonType

// Float64Type represents a float64 type.
type Float64Type commonType

// FloatType represents a float type.
type FloatType commonType

// Int16Type represents an int16 type.
type Int16Type commonType

// Int32Type represents an int32 type.
type Int32Type commonType

// Int64Type represents an int64 type.
type Int64Type commonType

// Int8Type represents an int8 type.
type Int8Type commonType

// IntType represents an int type.
type IntType commonType

// Uint16Type represents a uint16 type.
type Uint16Type commonType

// Uint32Type represents a uint32 type.
type Uint32Type commonType

// Uint64Type represents a uint64 type.
type Uint64Type commonType

// Uint8Type represents a uint8 type.
type Uint8Type commonType

// UintType represents a uint type.
type UintType commonType

// StringType represents a string type.
type StringType commonType

// UintptrType represents a uintptr type.
type UintptrType commonType

// DotDotDotType represents the ... that can
// be used as the type of the final function parameter.
type DotDotDotType commonType

// UnsafePointerType represents an unsafe.Pointer type.
type UnsafePointerType commonType

// ArrayType represents a fixed array type.
type ArrayType struct {
	commonType;
	elem	*Type;	// array element type
	len	uintptr;
}

// SliceType represents a slice type.
type SliceType struct {
	commonType;
	elem	*Type;	// slice element type
}

// ChanDir represents a channel type's direction.
type ChanDir int

const (
	RecvDir		ChanDir	= 1 << iota;	// <-chan
	SendDir;		// chan<-
	BothDir			= RecvDir | SendDir;	// chan
)

// ChanType represents a channel type.
type ChanType struct {
	commonType;
	elem	*Type;		// channel element type
	dir	uintptr;	// channel direction (ChanDir)
}

// FuncType represents a function type.
type FuncType struct {
	commonType;
	in	[]*Type;	// input parameter types
	out	[]*Type;	// output parameter types
}

// Method on interface type
type imethod struct {
	hash	uint32;		// hash of name + pkg + typ; same hash as method
	perm	uint32;		// index of function pointer in interface map
	name	*string;	// name of method
	pkgPath	*string;	// nil for exported Names; otherwise import path
	typ	*Type;		// .(*FuncType) underneath
}

// InterfaceType represents an interface type.
type InterfaceType struct {
	commonType;
	methods	[]imethod;	// sorted by hash
}

// MapType represents a map type.
type MapType struct {
	commonType;
	key	*Type;	// map key type
	elem	*Type;	// map element (value) type
}

// PtrType represents a pointer type.
type PtrType struct {
	commonType;
	elem	*Type;	// pointer element (pointed at) type
}

// Struct field
type structField struct {
	name	*string;	// nil for embedded fields
	pkgPath	*string;	// nil for exported Names; otherwise import path
	typ	*Type;		// type of field
	tag	*string;	// nil if no tag
	offset	uintptr;	// byte offset of field within struct
}

// StructType represents a struct type.
type StructType struct {
	commonType;
	fields	[]structField;	// sorted by offset
}

/*
 * Must match iface.c:/Itab and compilers.
 */
type Itable struct {
	Itype	*Type;	// (*tab.inter).(*InterfaceType) is the interface type
	Type	*Type;
	link	*Itable;
	bad	int32;
	unused	int32;
	Fn	[100000]uintptr;	// bigger than we'll ever see
}


text:
namespace ginseng::util::concurrent::schedulers
{
	Shared::Shared(Scheduler::Pointer scheduler)
	: scheduler(scheduler)
	{}

    Shared::~Shared()
    {
        join();
    }

	void Shared::schedule(Work work)
	{
		scheduler->schedule(work);
	}

	void Shared::join()
	{
		scheduler->join();
	}

	Scheduler::Pointer Shared::clone() const
	{
		return std::static_pointer_cast<Scheduler>(Root<Shared>::make_pointer(*this));
	}

	Scheduler::Pointer shared(Scheduler::Pointer scheduler)
	{
		return std::static_pointer_cast<Scheduler>(Root<Shared>::make_pointer(scheduler));
	}
}


text:
using System;
using System.Collections.Generic;
using Azure.Core;

namespace Azure.Analytics.Synapse.Artifacts.Models
{
    /// <summary> Sap Business Warehouse Open Hub Destination Table properties. </summary>
    public partial class SapOpenHubTableDataset : Dataset
    {
        /// <summary> Initializes a new instance of SapOpenHubTableDataset. </summary>
        /// <param name="linkedServiceName"> Linked service reference. </param>
        /// <param name="openHubDestinationName"> The name of the Open Hub Destination with destination type as Database Table. Type: string (or Expression with resultType string). </param>
        /// <exception cref="ArgumentNullException"> <paramref name="linkedServiceName"/> or <paramref name="openHubDestinationName"/> is null. </exception>
        public SapOpenHubTableDataset(LinkedServiceReference linkedServiceName, object openHubDestinationName) : base(linkedServiceName)
        {
            Argument.AssertNotNull(linkedServiceName, nameof(linkedServiceName));
            Argument.AssertNotNull(openHubDestinationName, nameof(openHubDestinationName));

            OpenHubDestinationName = openHubDestinationName;
            Type = "SapOpenHubTable";
        }

        /// <summary> Initializes a new instance of SapOpenHubTableDataset. </summary>
        /// <param name="type"> Type of dataset. </param>
        /// <param name="description"> Dataset description. </param>
        /// <param name="structure"> Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. </param>
        /// <param name="schema"> Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. </param>
        /// <param name="linkedServiceName"> Linked service reference. </param>
        /// <param name="parameters"> Parameters for dataset. </param>
        /// <param name="annotations"> List of tags that can be used for describing the Dataset. </param>
        /// <param name="folder"> The folder that this Dataset is in. If not specified, Dataset will appear at the root level. </param>
        /// <param name="additionalProperties"> Additional Properties. </param>
        /// <param name="openHubDestinationName"> The name of the Open Hub Destination with destination type as Database Table. Type: string (or Expression with resultType string). </param>
        /// <param name="excludeLastRequest"> Whether to exclude the records of the last request. The default value is true. Type: boolean (or Expression with resultType boolean). </param>
        /// <param name="baseRequestId"> The ID of request for delta loading. Once it is set, only data with requestId larger than the value of this property will be retrieved. The default value is 0. Type: integer (or Expression with resultType integer ). </param>
        internal SapOpenHubTableDataset(string type, string description, object structure, object schema, LinkedServiceReference linkedServiceName, IDictionary<string, ParameterSpecification> parameters, IList<object> annotations, DatasetFolder folder, IDictionary<string, object> additionalProperties, object openHubDestinationName, object excludeLastRequest, object baseRequestId) : base(type, description, structure, schema, linkedServiceName, parameters, annotations, folder, additionalProperties)
        {
            OpenHubDestinationName = openHubDestinationName;
            ExcludeLastRequest = excludeLastRequest;
            BaseRequestId = baseRequestId;
            Type = type ?? "SapOpenHubTable";
        }

        /// <summary> The name of the Open Hub Destination with destination type as Database Table. Type: string (or Expression with resultType string). </summary>
        public object OpenHubDestinationName { get; set; }
        /// <summary> Whether to exclude the records of the last request. The default value is true. Type: boolean (or Expression with resultType boolean). </summary>
        public object ExcludeLastRequest { get; set; }
        /// <summary> The ID of request for delta loading. Once it is set, only data with requestId larger than the value of this property will be retrieved. The default value is 0. Type: integer (or Expression with resultType integer ). </summary>
        public object BaseRequestId { get; set; }
    }
}


text:
typedef unsigned int SkColor;

// This file contains various utility functions for extension images and colors.
namespace extensions {
namespace image_util {

// Parses a string like #FF9982 or #EEE to a color. Returns true for success.
bool ParseCSSColorString(const std::string& color_string, SkColor* result);

// Creates a string like #FF9982 from a color.
std::string GenerateCSSColorString(SkColor color);

}  // namespace image_util
}  // namespace extensions

#endif  // EXTENSIONS_BROWSER_IMAGE_UTIL_H__


text:
package org.littlewings.javaee7.rest

import javax.ws.rs.{Consumes, Produces}
import javax.ws.rs.core.MediaType
import javax.ws.rs.ext.{ContextResolver, Provider}

import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.scala.DefaultScalaModule

@Provider
@Consumes(Array(MediaType.APPLICATION_JSON))
@Produces(Array(MediaType.APPLICATION_JSON))
class ScalaObjectMapperProvider extends ContextResolver[ObjectMapper] {
  override def getContext(typ: Class[_]): ObjectMapper = {
    val objectMapper = new ObjectMapper
    objectMapper.registerModule(DefaultScalaModule)
    objectMapper
  }
}


text:
Filter

    ソースを見る
    スペックを見る

クリーンなベンダープレフィックス付き CSS3 フィルターを生成するミックスイン

{% highlight scss %}
@include filter(grayscale(50%));
{% endhighlight %}


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <title>One-way Data Binding</title>

        Name: <input id="textInput" type="text"/>
        Hello !


text:
using System;
using System.Collections;
using System.IO.Ports;
using System.Net;
using System.Net.Sockets;
using System.Text;
using Microsoft.SPOT;
using SecretLabs.NETMF.Hardware.Netduino;

namespace CombatController
{
    public delegate void Action();

    public class WebServerCommandReceiver : IDisposable
    {
        private const int DefaultPort = 80;

        private const string ResHeaderInfo = "HTTP/1.1 200 OK\r\nContent-Type: text; charset=UTF-8\r\n";
        private const string ResHeaderLen = "Content-Length: ";
        private const string ResHeaderConnection = "\r\nConnection: close\r\n\r\n";

        private Socket Socket { get; set; }

        private class CommandAction
        {
            public char Command { get; private set; }
            public Action Action { get; private set; }

            public CommandAction(char command, Action action)
            {
                Command = command;
                Action = action;
            }
        }

        private ArrayList CommandArray { get; set; }

        public WebServerCommandReceiver(int port = DefaultPort)
        {
            CommandArray = new ArrayList();

            Socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
            Socket.Bind(new IPEndPoint(IPAddress.Any, port));
            Socket.Listen(10);
        }

        ~WebServerCommandReceiver()
        {
            Dispose();
        }

        public void Dispose()
        {
            if (Socket == null)
            {
                return;
            }

            Socket.Close();
        }

        public void AddAction(char command, Action action)
        {
            for (var i = 0; i < CommandArray.Count; i++)
            {
                if (command != ((CommandAction) CommandArray[i]).Command) continue;
                CommandArray.RemoveAt(i);
                break;
            }

            CommandArray.Add(new CommandAction(command, action));
        }

        public bool WaitForRequest()
        {
            while (true)
            {
                using (var clientSocket = Socket.Accept())
                {
                    var result = ReceiveCommand(clientSocket);

                    var response = ResHeaderInfo + ResHeaderLen + result.ToString().Length + ResHeaderConnection +
                                   result;

                    clientSocket.Send(Encoding.UTF8.GetBytes(response), SocketFlags.None);
                }
            }
        }

        public bool ReceiveCommand(Socket socket)
        {
            if (socket == null)
            {
                Debug.Print("Client Socket is null");
                return false;
            }

            var length = socket.Available;

            if (length == 0)
            {
                Debug.Print("Socket Request Length:0");
                return false;
            }

            var buffer = new byte[length];
            var count = socket.Receive(buffer, length, SocketFlags.None);

            if (count == 0)
            {
                Debug.Print("Socket Receive Length:0");
                return false;
            }

            var requestString = new string(Encoding.UTF8.GetChars(buffer));

            var requestArray = requestString.Split('\n');

            if (requestArray.Length == 0)
            {
                Debug.Print("Bad Request received");
                return false;
            }

            var lastIdx = requestArray[0].IndexOf("HTTP");

            if (lastIdx < 0)
            {
                Debug.Print("Http not found");
                return false;
            }

            var data = requestArray[0].Substring(5, lastIdx - 1).Trim();

            if (data.Length == 0)
            {
                Debug.Print("Command not found");
                return false;
            }

            return RunAction(data[0]);
        }

        private bool RunAction(char command)
        {
            foreach (CommandAction commandInfo in CommandArray)
            {
                if (commandInfo.Command == command)
                {
                    commandInfo.Action();
                    return true;
                }
            }

            Debug.Print("Command:" + command + " is not registered.");
            return false;
        }
    }
}


text:
namespace aliyun {
struct YundunSetDdosQpsRequestType {
  std::string instance_id;
  std::string instance_type;
  std::string qps_position;
  std::string level;
};
struct YundunSetDdosQpsResponseType {
};
} // end namespace
#endif


text:
function lookup_table = get_lookup_table(pixels,light_levels,shape)
    height = size(pixels,1);
    width = size(pixels,2);

    num_pixels = min(size(pixels));

    lookup_table = zeros(num_pixels,1);

    % choose reference light levels
    ref_levels = [2.5,4.2,8,9.5,21,40,55,90,100];
    num_refs = length(ref_levels);
    for i = 1:num_refs
        tmp = abs(shape - ref_levels(i));
        [tmp,shape_index(i)] = min(tmp);
        ref_index(i) = find(light_levels == ref_levels(i),1);
    end

    % for every pixel
    for i = 1:num_pixels
        shift = 0;
        for k = 1:num_refs
            shift = shift + (pixels(i,ref_index(k)) - shape_index(k));
        end
        shift = floor(shift/num_refs);
        lookup_table(i)=shift;
    end
    % find pixel value for each pixel at the reference light levels
    % find difference between measured pixel value and model pixel value
    % calculate mean difference
    % this is the shift
end


text:
[![Build Status](https://travis-ci.org/spud-rails/spud_banners.png?branch=master)](https://travis-ci.org/spud-rails/spud_banners)
# Spud Banners

Spud Banners is an engine for creating and managing rotating banner sets, designed for use with [Spud][spud].

## Installation/Usage

1. In your Gemfile add the following

		gem 'spud_banners'

2. Run bundle install
3. Copy in database migrations to your new rails project

		bundle exec rake railties:install:migrations
		rake db:migrate

4. Run a rails server instance and point your browser to `/spud/admin`

## Configuration

Spud Banners accepts the following configuration options:

```ruby
Spud::Banners.configure do |config|
	config.paperclip_storage = :filesystem #use :s3 to use s3 storage (aws gem required)
	config.s3_credentials = "#{Rails.root}/config/s3.yml"
	config.storage_path = ":rails_root/public/system/spud_banners/:id/:style/:basename.:extension"
	config.storage_url = "/system/spud_banners/:id/:style/:basename.:extension"
end
```

## Creating a Banner Set

Banner Sets are created in the Spud admin. When creating a Set, you have the following options:

- **Name:** The unique identifier used to render this set
- **Width:** Maximum width of uploaded banners
- **Height:** Maximum height of uploaded banners
- **Cropped:** Whether or not banners should be cropped to fit into the above Width/Height constraints

## Managing Banners

Once a Set has been created, you can begin adding banners to it. Banners contain optional `link_to`, `link_target`, `title`, and `alt` options. Banners are also sortable via drag-and-drop.

## View Helpers

A number of view helpers are provided for displaying banners in your templates.

`spud_banners_for_set(set_or_identifier, options)`

Accepts the banner set name as a String or Symbol and returns an html template. Options hash accepts a `:limit` parameter for limiting the number of banners returned. This helper also accepts a block argument for rendering custom html.

```ruby
spud_banner_tag(banner)
```

Accepts a banner model object and returns a banner image wrapped in a link tag. Link tag is omitted if the `link_to` property of the banner is blank.

```ruby
spud_banner_image_tag(banner)
```

Accepts a banner model and returns only the image tag, no link.

## Examples

Displaying banners using the standard helper.

```erb
	<div id="banners">
		<%= spud_banners_for_set(:promotions) %>
	</div>
```

Displaying banners using the helper, with a block for custom html.

```erb
	<ul id="slides">
		<% spud_banners_for_set(:promotions) do |banner| %>
			<li class="custom_slide">
				<%= spud_banner_tag(banner) %>
			</li>
		<% end %>
	</ul>
```

Displaying banners using the helper, with a block for even more custom html.

```erb
	<ul id="slides">
		<% spud_banners_for_set(:promotions) do |banner| %>
			<li class="custom_slide">
				<h3><%= link_to banner.link_to, banner.title, :target => banner.link_target %></h3>
				<%= image_tag(banner.banner.url(:banner), :alt => banner.alt, :title => banner.title) %>
			</li>
		<% end %>
	</ul>
```

## Liquid

Spud Banners comes with its own custom [Liquid][liquid] tag. For now the liquid tag only supports rendering the standard html as generated by the `spud_banners_for_set`. Will provide support more advanced options in the future.

Usage:

```erb
	<%= raw Liquid::Template.parse("{% spud_banner_set Promotions %}").render %>
```

## Slideshows

Spud Banners does not provide a built-in slideshow animation library. Instead, we make it easy for you to integrate into any number of popular JavaScript slideshow plugins available on the web, or even to write your own from scratch.

Below is an example of integration with [SlidesJs][slidesjs], a jQuery plugin.

```erb
	<style type="text/css" media="screen">
		.spud_banner_set {
			width: 600px;
			height: 200px;
		}
		.spud_banner_set_banner {
			width: 600px;
			height: 200px;
			display: block;
		}
	</style>
	<div id="banners">
		<%= spud_banners_for_set(:promotions) %>
	</div>
	<script src="/slides.jquery.js" type="text/javascript"></script>
	<script>
		$(document).ready(function(){
			$("#banners").slides({
				play: 5000,
				container: 'spud_banner_set'
			});
		});
	</script>
```

[spud]:https://github.com/spud-rails/spud_core_admin
[slidesjs]:http://www.slidesjs.com
[liquid]:https://github.com/Shopify/liquid


text:
using Machine.Specifications;
using MFlow.Core.Tests.Supporting;
using MFlow.Core.Validation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MFlow.Core.Tests.for_FluentValidation
{
    public class when_calling_none_with_collection_not_containing_item : given.a_fluent_user_validator_with_user_not_in_collection
    {
        Because of = () =>
        {
            validator.Check(u => u.Users).None(user);
        };

        It should_be_satisfied_because_the_collection_does_not_contain_the_item = () => { validator.Satisfied().ShouldBeTrue(); };
    }
}


text:
package me.tatarka.ipromise.buffer;

/**
 * A {@code PromiseBuffer} defines how a {@link me.tatarka.ipromise.Promise} will store messages
 * between the time they are generated and a {@link me.tatarka.ipromise.Listener} is attached. When
 * the {@code Listener} is attached, all messages in the buffer will be redelivered. You can get
 * some useful defaults from {@link me.tatarka.ipromise.buffer.PromiseBuffers}.
 *
 * @author Evan Tatarka
 */
public interface PromiseBuffer<T> extends Iterable<T> {
    public void add(T item);
}