text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>::: JobShoppa.com :::</title>
<link href="css/style.css" rel="stylesheet" type="text/css" media="screen" />

Your Online marketplace for local services

 25 people like this

Home

Post a job

Find a Job

Find a Professional

Help

 Home

»

Client Registration

Login

|

Signup

            <input type="text" value="What Local Service do you require?" onfocus="if(this.value=='What Local Service do you require?')this.value='';" onblur="if(this.value=='')this.value='What Local Service do you require?';" />

            <input type="text" value="Category" onfocus="if(this.value=='Category')this.value='';" onblur="if(this.value=='')this.value='Category';" />

            <input type="submit" value="Search"  onclick="window.location.href='find-a-professional.html'" />

Welcome to Jobshoppa, please Signup

* Required field

Registration is FREE

Name * :

                    <input name="" type="text" size="48" />

Email Address * :

                    <input name="" type="text" size="48" />

Confirm Email Address * :

                    <input name="" type="text" size="48" />

Login  Details

Public Username * :

                    <input name="" type="text" size="48" />

Password * :

                    <input name="" type="password" size="48" />

Confirm Password * :

                    <input name="" type="password" size="48" />

Contact  Details

Mobile Number * :

                    <input name="" type="text" size="48" />

Fax Number :

                    <input name="" type="text" size="48" />

Landline Number :

                    <input name="" type="text" size="48" />

Skype IM :

                    <input name="" type="text" size="48" />

MSN IM :

                    <input name="" type="text" size="48" />

YAHOO IM :

                    <input name="" type="text" size="48" />

Address

Address * :

                    <input name="" type="text" size="48" />

County * :

                    <select name="">
                        <option>Please Select</option>
                    </select>

City * :

                    <select name="">
                        <option>Please Select</option>
                    </select>

Postal Code * :

                    <input name="" type="text" size="48" />

Client Profile

Date of Birth * :

                    <select name="">
                        <option>Day</option>
                    </select>
                    <select name="">
                        <option>Month</option>
                    </select>
                    <select name="">
                        <option>Year</option>
                    </select>

Profile Photo * :

                    <input name="textfield" type="file" id="textfield" size="40" />

Word Verification * :

Type the characters you see in the picture below.

                    <input name="" type="text" size="50" />

                    Letters are not case-sensitive

                    <input name="" type="checkbox" value="" />
                    I would like to Receive updates, news and tips from Jobshoppa.

                    <input name="" type="checkbox" value="" />
                    Accept Terms & Conditions and Privacy Policy

                    <input type="submit" value="Submit"  onclick="window.location='client-section/dashboard.html'"/>

Clients »

Post a Job free

How it Works

FAQ

Service Professional »

Find a Job

How it Works

FAQ

About Us »

About Us

Career

Legal »

Privacy Policy

Terms & Conditions

Abuse Report

Safety

Support »

Customer Support

Help

Blog

Contact Us

© Copyright 2011 by JobShoppa.com. All Rights Reserved.

Follow us:

How do you like to choose to use Jobshoppa

Professional Registration

Client Registration

Terms & Conditions

Founded in 2010, Jobshoppa is a unique online marketplace for the residents of the UK. Homeowners and consumers can find the right professional and contractor here. Professional can secure contracts easily and regularly at Jobshoppa as well.

Homeowners and consumers can post requirements for professional or handymen for free. Professional and handymen can register with the site for free, and quote for jobs posted on the site.

For instance, if someone needs to hire a cleaning service or a builder or a gardener, he simply has to post that as a job and describe the same clearly and in detail. Professional registered with the site will view the job, and those among them who feel that they are capable of doing the job will quote or bid for it. After availing of the services of the chosen workman, the user leaves review on his services. Homeowners and professional alike benefit from reviews.

Jobshoppa is a broad-spectrum marketplace where all sorts of professional and contractors are registered: from builders, roofers.

Privacy Policy

Founded in 2010, Jobshoppa is a unique online marketplace for the residents of the UK. Homeowners and consumers can find the right professional and contractor here. Professional can secure contracts easily and regularly at Jobshoppa as well.

Homeowners and consumers can post requirements for professional or handymen for free. Professional and handymen can register with the site for free, and quote for jobs posted on the site.

For instance, if someone needs to hire a cleaning service or a builder or a gardener, he simply has to post that as a job and describe the same clearly and in detail. Professional registered with the site will view the job, and those among them who feel that they are capable of doing the job will quote or bid for it. After availing of the services of the chosen workman, the user leaves review on his services. Homeowners and professional alike benefit from reviews.

Jobshoppa is a broad-spectrum marketplace where all sorts of professional and contractors are registered: from builders, roofers.


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using Xunit;
using Xunit.Abstractions;
using EmptyAssert = ShopifySharp.Tests.Extensions.EmptyExtensions;

namespace ShopifySharp.Tests
{
    [Trait("Category", "Carrier")]
    public class Carrier_Tests : IClassFixture<Carrier_Tests_Fixture>
    {
        private Carrier_Tests_Fixture Fixture { get; }
        private readonly ITestOutputHelper _testOutputHelper;

        public Carrier_Tests(Carrier_Tests_Fixture fixture, ITestOutputHelper testOutputHelper)
        {
            this.Fixture = fixture;
            _testOutputHelper = testOutputHelper;
        }

        [Fact(Skip = "Shopify won't let us create more than one random carrier.")]
        public async Task Lists_Carriers()
        {
            var list = await Fixture.Service.ListAsync();

            Assert.True(list.Count() >= 0);
        }

        [Fact(Skip = "Shopify won't let us create more than one random carrier.")]
        public async Task Gets_Carriers()
        {
            var created = await Fixture.Create();
            var carrier = await Fixture.Service.GetAsync(created.Id.Value);
            await Fixture.Service.DeleteAsync(created.Id.Value);

            Assert.NotNull(carrier);
            Assert.True(carrier.Id.HasValue);
            Assert.Contains(Fixture.CallbackUrl, carrier.CallbackUrl);
        }

        [Fact(Skip = "Shopify won't let us create more than one random carrier.")]
        public async Task Deletes_Carriers()
        {
            var created = await Fixture.Create();
            bool threw = false;

            try
            {
                await Fixture.Service.DeleteAsync(created.Id.Value);
            }
            catch (ShopifyException ex)
            {
                _testOutputHelper.WriteLine($"{nameof(Deletes_Carriers)} failed. {ex.Message}");

                threw = true;
            }

            Assert.False(threw);
        }

        [Fact(Skip = "Shopify won't let us create more than one random carrier.")]
        public async Task Creates_Carriers()
        {
            var carrier = await Fixture.Create();
            await Fixture.Service.DeleteAsync(carrier.Id.Value);

            Assert.NotNull(carrier);
            Assert.True(carrier.Id.HasValue);
            Assert.Contains(Fixture.CallbackUrl, carrier.CallbackUrl);
        }

        [Fact(Skip = "Shopify won't let us create more than one random carrier.")]
        public async Task Updates_Carriers()
        {
            string newCallbackUrl = "http://fakecallback2.com/";
            var created = await Fixture.Create();
            long id = created.Id.Value;

            created.CallbackUrl = newCallbackUrl;
            created.Id = null;

            var updated = await Fixture.Service.UpdateAsync(id, created);
            await Fixture.Service.DeleteAsync(updated.Id.Value);

            Assert.Equal(newCallbackUrl, updated.CallbackUrl);
        }
    }

    public class Carrier_Tests_Fixture : IAsyncLifetime
    {
        public CarrierService Service { get; } = new CarrierService(Utils.MyShopifyUrl, Utils.AccessToken);

        public List<Carrier> Created { get; } = new List<Carrier>();

        public string CallbackUrl => "http://fakecallback.com/";

        public async Task InitializeAsync()
        {
            Service.SetExecutionPolicy(new LeakyBucketExecutionPolicy());

            // Create one blog for methods like count, get, list, etc.
            await Create();
        }

        public async Task DisposeAsync()
        {
            foreach (var obj in Created)
            {
                try
                {
                    await Service.DeleteAsync(obj.Id.Value);
                }
                catch (ShopifyException ex)
                {
                    if (ex.HttpStatusCode != HttpStatusCode.NotFound)
                    {
                        Console.WriteLine($"Failed to delete Carrier with id {obj.Id.Value}. {ex.Message}");
                    }
                }
            }
        }

        /// <summary>
        /// Convenience function for running tests. Creates an object and automatically adds it to the queue for deleting after tests finish.
        /// </summary>
        public async Task<Carrier> Create()
        {
            string uid = Guid.NewGuid().ToString();
            string name = $"DERP DERP {uid}";
            string cb = $"{CallbackUrl}{uid}";

            var obj = await Service.CreateAsync(new Carrier()
            {
                Name = name,
                Active = false,
                CallbackUrl = cb,
                CarrierServiceType = "api",
                ServiceDiscovery = true,
                Format = "json"
            });

            return obj;
        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
var Transition = require('./Transition'),
    Easing = require('../tween/Easing');

function SceneTransition(sceneOut, sceneIn, effect, manager){
    this._init(sceneOut, sceneIn, effect, manager);
}

SceneTransition.prototype.constructor = SceneTransition;

SceneTransition.prototype._init = function(sceneOut, sceneIn, effect, manager){
    this.manager = manager;
    this.isWebGL = manager.game.isWebGL;
    this.tweenManager = manager.tweenManager;

    this.sceneIn = sceneIn;
    this.sceneOut = sceneOut;

    this.effect = effect || Transition.pushFromTop();
    this.sceneIn.visible = false;

    this.time = 3000;
    this.easing = Easing.linear();
    this.delay = 0;

    this.isStarted = false;

    this._onStartCallback = function(){};
    this._onEndCallback = function(){};
};

SceneTransition.prototype.start = function(){
    if(this.isStarted)return this;
    this.isStarted = true;

    this.effect(this, this.sceneOut, this.sceneIn);
    return this;
};

SceneTransition.prototype.sortScenes = function(first, second){
    this.manager.children.length = 0;

    this.manager.addChild(first);
    this.manager.addChild(second);

    first.setPosition(0)
        .setAlpha(1);

    second.setPosition(0)
        .setAlpha(1);

    return this;
};

SceneTransition.prototype._onTransitionStart = function(){
    this.sceneIn.visible = true;
    this.manager.currentScene = null;
    this._onStartCallback(this.sceneIn, this.sceneOut);
};

SceneTransition.prototype._onTransitionEnd = function(){
    this.manager.setCurrentScene(this.sceneIn);
    this._onEndCallback(this.sceneIn, this.sceneOut);
};

SceneTransition.prototype.onStart = function(callback){
    this._onStartCallback = callback;
    return this;
};

SceneTransition.prototype.onEnd = function(callback){
    this._onEndCallback = callback;
    this.isStarted = false;
    return this;
};

SceneTransition.prototype.setTime = function(time){
    this.time = time;
    return this;
};

SceneTransition.prototype.setDelay = function(delay){
    this.delay = delay;
    return this;
};

SceneTransition.prototype.setEasing = function(easing){
    this.easing = easing;
    return this;
};

SceneTransition.prototype.setEffect = function(effect){
    this.effect = effect || Transition.pushFromTop();
    return this;
};

module.exports = SceneTransition;


text:
using System.Collections.Generic;
using System.ComponentModel.Composition;
using Viticulture.Logic.Cards;
using Viticulture.Logic.State;

namespace Viticulture.Screens.Game.Hand
{
    [Export(typeof(IHandViewModel))]
    [PartCreationPolicy(CreationPolicy.NonShared)]
    public sealed class HandViewModel : ViewModel, IHandViewModel
    {
        private readonly IGameState _gameState;

        [ImportingConstructor]
        public HandViewModel(IGameState gameState)
        {
            _gameState = gameState;
            DisplayName = "Hand";
        }

        public IEnumerable<Card> Cards => _gameState.Hand.Cards;
    }
}


text:
<!doctype html>

	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="robots" content="noindex, nofollow">

  <title>Uncle Montague's tales of terror by Chris Priestley – Suffolk Libraries</title>

  <link rel="stylesheet" href="/css/style.css">
	<link rel="preload" as="font" type="font/woff2" href="/fonts/source-sans-pro-v11-latin-regular.woff2">
	<link rel="preload" as="font" type="font/woff2" href="/fonts/source-sans-pro-v11-latin-italic.woff2">
	<link rel="preload" as="font" type="font/woff2" href="/fonts/source-sans-pro-v11-latin-700.woff2">

Skip to content

Skip to navigation menu

💳 You can now pay online.
	Pay charges now →

Donate

Join

Login

Search

Home

eLibrary

Online events

Help

Contact

    Home

      → Parents carers and children

      → Childrens ya books

      → Uncle Montague's tales of terror by Chris Priestley

Uncle Montague's tales of terror by Chris Priestley

  Written by  · Published Nov 24, 2015

Cambridge illustrator-turned-author Chris Priestley has carved quite the name for himself in the last decade as a modern 'Master of the Macabre' with his burgeoning canon of ghoulish stories for young adults.

Uncle Montague's tales of terror is the first in a trilogy of hauntingly riveting reads in the gothic vein of M.R. James and Edgar Allen Poe. Priestley successfully integrates a series of spooky short stories into the body of a framing narrative involving eager young Edgar and his yarn-spinning Uncle. Therefore each 'chapter' can be read independently (best by candlelight just before bedtime) or in succession, building to a spine-chilling conclusion.

Twisted trees, haunted doll houses, possessed church bench-ends, deformed creatures following travellers up a lonely path – I was captivated by the impressive scope of the imaginative horrors, and curious as to just how far Priestley was prepared to shock and scare his audience.

Although designed for the 8-12 demographic, I still found myself entranced and chilled by this ghostly anthology filled with monsters and menace – and I'm 31! Paired with some stylishly surreal line drawings by David Roberts, Uncle Montague's tales of terror is a superb and handsome book which can be dipped into and returned to for years after your first foray.

Order Uncle Montague's tales of terror from our catalogue →

Parents, carers and children

Home

New in & book ideas

Parenting advice: Books to help with raising every sort of family

Bookstart and storytime resources

Getting the best out of the library service

Dyslexia and Irlen syndrome

Library cards and welcome packs for children in care

Let's Talk Reading

More Children's books

New children's books for March 2020

Borrow a stunning book from the 2020 CILIP Kate Greenaway Medal longlist

Choose from your next children's or YA read from the prestigious 2020 CILIP Carnegie Medal longlist

Check out a beautifully illustrated book from the 2020 Klaus Flugge Prize longlist

Suffolk Libraries recommends... the Squishy McFluff series by Pip Jones & Ella Okstad

Pick up an excellent book from the 2020 Waterstones Children's Book Prize shortlist

New children's books for February 2020

Discover your new favourite children's author with the 2020 Branford Boase longlist

Build your children's empathy with the 2020 Read for Empathy book collection

Check out the latest super-readable titles from Barrington Stoke

More suggestions

Fiction

Audiobooks

Films & DVDs

eLibrary picks

Children's books

Young adult

Non-fiction

Music

Meet the Author interviews

Articles

 Health and wellbeing

Reviews

Book club favourites

Keep updated

Get the latest suggestions, releases and reviews delivered straight to you.

Email newsletter

Facebook

Twitter

Instagram

Do it online

Search & reserve

Login & renew

eLibrary

Get a library card

Support your library

We're a charity that makes life in Suffolk better for thousands of people.

Donate

Contact us

01473 351249

help@suffolklibraries.co.uk

Social media

Facebook

YouTube

Twitter

Instagram

LinkedIn

Email newsletter

Sections

eLibrary

Libraries

Mobile & home service

Help using the service

Recommendations & reviews

Events & activities

Research & reference

Parents, carers & children

Teachers & home educators

Health & wellbeing

Help with reading & literacy

Work & benefits

Business & room hire

BLOC

Music & Drama Library

News

Jobs

Volunteering

About us

Privacy & cookies

Find out what cookies we use and how we use your data: our privacy policies.

Privacy notice for job applicants

Suffolk Libraries HMRC charity number XT34476. Registered company number IP031542.


text:
namespace despoof {
	typedef network_api* (*getapi_function)();
}


text:
var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
(function (factory) {
    if (typeof module === 'object' && typeof module.exports === 'object') {
        var v = factory(require, exports); if (v !== undefined) module.exports = v;
    }
    else if (typeof define === 'function' && define.amd) {
        define(["require", "exports", '@angular/core', '../app/app', '../../util/util', './popover-component', '../../navigation/view-controller'], factory);
    }
})(function (require, exports) {
    "use strict";
    var core_1 = require('@angular/core');
    var app_1 = require('../app/app');
    var util_1 = require('../../util/util');
    var popover_component_1 = require('./popover-component');
    var view_controller_1 = require('../../navigation/view-controller');
    var Popover = (function (_super) {
        __extends(Popover, _super);
        function Popover(app, component, data, opts) {
            if (data === void 0) { data = {}; }
            if (opts === void 0) { opts = {}; }
            opts.showBackdrop = util_1.isPresent(opts.showBackdrop) ? !!opts.showBackdrop : true;
            opts.enableBackdropDismiss = util_1.isPresent(opts.enableBackdropDismiss) ? !!opts.enableBackdropDismiss : true;
            data.component = component;
            data.opts = opts;
            _super.call(this, popover_component_1.PopoverCmp, data, null);
            this._app = app;
            this.isOverlay = true;
        }
        Popover.prototype.getTransitionName = function (direction) {
            var key = (direction === 'back' ? 'popoverLeave' : 'popoverEnter');
            return this._nav && this._nav.config.get(key);
        };
        Popover.prototype.present = function (navOptions) {
            if (navOptions === void 0) { navOptions = {}; }
            return this._app.present(this, navOptions);
        };
        return Popover;
    }(view_controller_1.ViewController));
    exports.Popover = Popover;
    var PopoverController = (function () {
        function PopoverController(_app) {
            this._app = _app;
        }
        PopoverController.prototype.create = function (component, data, opts) {
            if (data === void 0) { data = {}; }
            if (opts === void 0) { opts = {}; }
            return new Popover(this._app, component, data, opts);
        };
        PopoverController.decorators = [
            { type: core_1.Injectable },
        ];
        PopoverController.ctorParameters = [
            { type: app_1.App, },
        ];
        return PopoverController;
    }());
    exports.PopoverController = PopoverController;
});
//# sourceMappingURL=popover.js.map


text:
import sys, os
import unittest

from ctypes import *
import _ctypes_test

lib = CDLL(_ctypes_test.__file__)

class LibTest(unittest.TestCase):
    def test_sqrt(self):
        lib.my_sqrt.argtypes = c_double,
        lib.my_sqrt.restype = c_double
        self.failUnlessEqual(lib.my_sqrt(4.0), 2.0)
        import math
        self.failUnlessEqual(lib.my_sqrt(2.0), math.sqrt(2.0))

    def test_qsort(self):
        comparefunc = CFUNCTYPE(c_int, POINTER(c_char), POINTER(c_char))
        lib.my_qsort.argtypes = c_void_p, c_size_t, c_size_t, comparefunc
        lib.my_qsort.restype = None

        def sort(a, b):
            return cmp(a[0], b[0])

        chars = create_string_buffer("spam, spam, and spam")
        lib.my_qsort(chars, len(chars)-1, sizeof(c_char), comparefunc(sort))
        self.failUnlessEqual(chars.raw, "   ,,aaaadmmmnpppsss\x00")

if __name__ == "__main__":
    unittest.main()


text:
SYNONYM

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
Polish Botanical Journal 47(2): 104 (2002)

#### Original name
Laschia crustacea Jungh., 1839

### Remarks
null


text:
var CartoDbLib = CartoDbLib || {};
var CartoDbLib = {

  map_centroid:    [41.87811, -87.66677],
  defaultZoom:     11,
  lastClickedLayer: null,
  locationScope:   "chicago",
  currentPinpoint: null,
  layerUrl: 'https://datamade.carto.com/api/v2/viz/d9095d74-921c-4da7-9f36-9d65cecfaa7d/viz.json',
  tableName: 'second_city_zoning_may_28_2021',

  initialize: function(){

    //reset filters
    $("#search_address").val(CartoDbLib.convertToPlainString($.address.parameter('address')));
    $(":checkbox").attr("checked", "checked");

    geocoder = new google.maps.Geocoder();

    // initiate leaflet map
    if (!CartoDbLib.map) {
      CartoDbLib.map = new L.Map('mapCanvas', {
        center: CartoDbLib.map_centroid,
        zoom: CartoDbLib.defaultZoom,
        sa_id: '2nd City Zoning'
      });

      CartoDbLib.google = new L.Google('ROADMAP', {animate: false});

      CartoDbLib.satellite = L.tileLayer('https://{s}.tiles.mapbox.com/v3/datamade.k92mcmc8/{z}/{x}/{y}.png', {
        attribution: 'Terms & Feedback',
        detectRetina: true,
        sa_id: 'satellite'
      });

      CartoDbLib.buildings = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
        attribution: '© OpenStreetMap contributors',
        detectRetina: true,
        sa_id: 'buildings'
      });

      CartoDbLib.baseMaps = {"Streets": CartoDbLib.google, "Building addresses": CartoDbLib.buildings, "Satellite": CartoDbLib.satellite};
      CartoDbLib.map.addLayer(CartoDbLib.google);

      CartoDbLib.info = L.control({position: 'bottomleft'});

      CartoDbLib.info.onAdd = function (map) {
          this._div = L.DomUtil.create('div', 'info'); // create a div with a class "info"
          this.update();
          return this._div;
      };

      // method that we will use to update the control based on feature properties passed
      CartoDbLib.info.update = function (props) {
        if (props) {
          var zone_info = CartoDbLib.getZoneInfo(props.zone_class);
          this._div.innerHTML = " " + props.zone_class + " - " + zone_info.title;
        }
        else {
          this._div.innerHTML = 'Hover over an area';
        }
      };

      CartoDbLib.info.clear = function(){
        this._div.innerHTML = '';
      };

      CartoDbLib.info.addTo(CartoDbLib.map);

      var fields = "cartodb_id, zone_type, zone_class, ordinance_"
      var layerOpts = {
        user_name: 'datamade',
        type: 'cartodb',
        cartodb_logo: false,
        sublayers: [
          {
            sql: "select * from " + CartoDbLib.tableName,
            cartocss: $('#second-city-zoning-styles').html().trim(),
            interactivity: fields
          }
        ]
      }

      CartoDbLib.dataLayer = cartodb.createLayer(CartoDbLib.map, layerOpts, { https: true })
        .addTo(CartoDbLib.map)
        .done(function(layer) {
          var sublayer = layer.getSubLayer(0);
          sublayer.setInteraction(true);
          sublayer.on('featureOver', function(e, latlng, pos, data, subLayerIndex) {
            $('#mapCanvas div').css('cursor','pointer');
            CartoDbLib.info.update(data);
          })
          sublayer.on('featureOut', function(e, latlng, pos, data, subLayerIndex) {
            $('#mapCanvas div').css('cursor','inherit');
            CartoDbLib.info.clear();
          })
          sublayer.on('featureClick', function(e, latlng, pos, data){
            CartoDbLib.getOneZone(data['cartodb_id'], latlng);
          })

          // after layer is loaded, add the layer toggle control
          L.control.layers(CartoDbLib.baseMaps, {"Zoning": layer}, { collapsed: false, autoZIndex: true }).addTo(CartoDbLib.map);

          // CartoDbLib.map.on('zoomstart', function(e){
          //   sublayer.hide();
          // })
          // google.maps.event.addListener(CartoDbLib.google._google, 'idle', function(e){
          //   sublayer.show();
          // })

          window.setTimeout(function(){
            if($.address.parameter('id')){
              CartoDbLib.getOneZone($.address.parameter('id'))
            }
          }, 500)
        }).error(function(e) {
          //console.log('ERROR')
          //console.log(e)
        });
      }

    CartoDbLib.doSearch();
  },

  getZoneInfo: function(zone_class) {
    // console.log("looking up zone_class: " + zone_class);
    // PD and PMD have different numbers for each district. Fix for displaying generic title and link.
    if (zone_class.substring(0, 'PMD'.length) === 'PMD') {
      title = 'Planned Manufacturing District';
      description = "All kinds of manufacturing, warehouses, and waste disposal. Special service district - not technically a manufacturing district - intended to protect the city's industrial base.";
      zone_class_link = "PMD";
      project_link = "https://gisapps.cityofchicago.org/gisimages/zoning_pds/" + zone_class.replace(" ","") + ".pdf"
    }
    else if (zone_class.substring(0, 'PD'.length) === 'PD') {
      title = 'Planned Development';
      description = "Tall buildings, campuses, and other large developments that must be negotiated with city planners. Developers gain freedom in building design, but must work with city to ensure project serves and integrates with surrounding neighborhood.";
      zone_class_link = "PD";
      project_link = "https://gisapps.cityofchicago.org/gisimages/zoning_pds/" + zone_class.replace(" ","") + ".pdf"

      //https://gisapps.cityofchicago.org/gisimages/zoning_pds/PD43.pdf
    }
    else {
      title = ZoningTable[zone_class].district_title;
      description = ZoningTable[zone_class].juan_description;
      zone_class_link = zone_class;
      project_link = "";
    }

    return {
      'title': title,
      'description': description,
      'zone_class_link': zone_class_link,
      'zone_icon': CartoDbLib.getZoneIcon(zone_class),
      'project_link': project_link
    };
  },

  getZoneIcon: function(zone_class) {
    var zone_prefix = zone_class.replace( new RegExp("[^A-Z]","gm"),"");

    var zone_icon = '';
    switch(zone_prefix) {
      case 'B'   : zone_icon = 'commercial'; break;
      case 'C'   : zone_icon = 'commercial'; break;
      case 'M'   : zone_icon = 'industrial'; break;
      case 'R'   : zone_icon = 'residential'; break;
      case 'RS'  : zone_icon = 'residential'; break;
      case 'RT'  : zone_icon = 'residential'; break;
      case 'RTA' : zone_icon = 'residential'; break;
      case 'RM'  : zone_icon = 'residential'; break;
      case 'PD'  : zone_icon = 'government'; break;
      case 'PMD' : zone_icon = 'industrial'; break;
      case 'DX'  : zone_icon = 'commercial'; break;
      case 'DC'  : zone_icon = 'commercial'; break;
      case 'DR'  : zone_icon = 'residential'; break;
      case 'DS'  : zone_icon = 'commercial'; break;
      case 'T'   : zone_icon = 'trains'; break;
      case 'POS' : zone_icon = 'parks-entertainment'; break;
    }

    return zone_icon;
  },

  getOneZone: function(cartodb_id, click_latlng){
    if (CartoDbLib.lastClickedLayer){
      CartoDbLib.map.removeLayer(CartoDbLib.lastClickedLayer);
    }
    $.address.parameter('id', cartodb_id);
    var sql = new cartodb.SQL({user: 'datamade', format: 'geojson'});
    sql.execute('select * from ' + CartoDbLib.tableName + ' where cartodb_id = {{cartodb_id}}', {cartodb_id:cartodb_id})
    .done(function(data){
      var shape = data.features[0];
      CartoDbLib.lastClickedLayer = L.geoJson(shape);
      CartoDbLib.lastClickedLayer.addTo(CartoDbLib.map);
      CartoDbLib.lastClickedLayer.setStyle({weight: 2, fillOpacity: 0, color: '#000'});
      CartoDbLib.map.fitBounds(CartoDbLib.lastClickedLayer.getBounds(), {maxZoom: 16});

      // show custom popup
      var props = shape.properties;
      var zone_info = CartoDbLib.getZoneInfo(props.zone_class);
      var popup_content = "\

\
          \
          " + props.zone_class + "\
            " + zone_info.title + "\
          \

\

What's here?
\
        " + zone_info.description + "\
        Learn more »
\
        ";

      if (zone_info.project_link != "")
        popup_content += "
Read the full development plan for " + props.zone_class + " »
"

      // console.log(click_latlng);
      if (click_latlng) {
        CartoDbLib.popup = L.popup()
        .setContent(popup_content)
        .setLatLng(click_latlng)
        .openOn(CartoDbLib.map);
      }
      else {
        CartoDbLib.lastClickedLayer.bindPopup(popup_content);
        CartoDbLib.lastClickedLayer.openPopup();
      }

    }).error(function(e){console.log(e)});
  },

  doSearch: function() {
    CartoDbLib.clearSearch();
    var address = $("#search_address").val();

    if (address != "") {
      if (address.toLowerCase().indexOf(CartoDbLib.locationScope) == -1)
        address = address + " " + CartoDbLib.locationScope;

      geocoder.geocode( { 'address': address}, function(results, status) {
        if (status == google.maps.GeocoderStatus.OK) {
          CartoDbLib.currentPinpoint = [results[0].geometry.location.lat(), results[0].geometry.location.lng()];
          $.address.parameter('address', encodeURIComponent(address));
          CartoDbLib.map.setView(new L.LatLng( CartoDbLib.currentPinpoint[0], CartoDbLib.currentPinpoint[1] ), 16)
          CartoDbLib.centerMark = new L.Marker(CartoDbLib.currentPinpoint, { icon: (new L.Icon({
            iconUrl: '/images/blue-pushpin.png',
            iconSize: [32, 32],
            iconAnchor: [10, 32]
          }))}).addTo(CartoDbLib.map);

          var sql = new cartodb.SQL({user: 'datamade', format: 'geojson'});
          sql.execute('select cartodb_id, the_geom from ' + CartoDbLib.tableName + ' where ST_Intersects( the_geom, ST_SetSRID(ST_POINT({{lng}}, {{lat}}) , 4326))', {lng:CartoDbLib.currentPinpoint[1], lat:CartoDbLib.currentPinpoint[0]})
          .done(function(data){
            // console.log(data);
            CartoDbLib.getOneZone(data.features[0].properties.cartodb_id, CartoDbLib.currentPinpoint)
          }).error(function(e){console.log(e)});

          // CartoDbLib.drawCircle(CartoDbLib.currentPinpoint);
        }
        else {
          alert("We could not find your address: " + status);
        }
      });
    }
    else { //search without geocoding callback
      CartoDbLib.map.setView(new L.LatLng( CartoDbLib.map_centroid[0], CartoDbLib.map_centroid[1] ), CartoDbLib.defaultZoom)
    }
  },

  clearSearch: function(){
    if (CartoDbLib.lastClickedLayer) {
      CartoDbLib.map.removeLayer(CartoDbLib.lastClickedLayer);
    }
    if (CartoDbLib.centerMark)
      CartoDbLib.map.removeLayer( CartoDbLib.centerMark );
    if (CartoDbLib.circle)
      CartoDbLib.map.removeLayer( CartoDbLib.circle );

    CartoDbLib.map.setView(new L.LatLng( CartoDbLib.map_centroid[0], CartoDbLib.map_centroid[1] ), CartoDbLib.defaultZoom)
  },

  findMe: function() {
    // Try W3C Geolocation (Preferred)
    var foundLocation;

    if(navigator.geolocation) {
      navigator.geolocation.getCurrentPosition(function(position) {
        foundLocation = new google.maps.LatLng(position.coords.latitude,position.coords.longitude);
        CartoDbLib.addrFromLatLng(foundLocation);
      }, null);
    }
    else {
      alert("Sorry, we could not find your location.");
    }
  },

  addrFromLatLng: function(latLngPoint) {
    geocoder.geocode({'latLng': latLngPoint}, function(results, status) {
      if (status == google.maps.GeocoderStatus.OK) {
        if (results[1]) {
          $('#search_address').val(results[1].formatted_address);
          $('.hint').focus();
          CartoDbLib.doSearch();
        }
      } else {
        alert("Geocoder failed due to: " + status);
      }
    });
  },

  //converts a slug or query string in to readable text
  convertToPlainString: function(text) {
    if (text == undefined) return '';
    return decodeURIComponent(text);
  }
}


text:
package org.apache.tajo.master;

import org.apache.tajo.ExecutionBlockId;
import org.apache.tajo.QueryId;
import org.apache.tajo.TestTajoIds;
import org.apache.tajo.ipc.TajoWorkerProtocol;
import org.apache.tajo.master.querymaster.QueryUnit;
import org.apache.tajo.master.querymaster.Repartitioner;
import org.apache.tajo.util.TUtil;
import org.jboss.netty.handler.codec.http.QueryStringDecoder;
import org.junit.Test;

import java.net.URI;
import java.util.*;

import static junit.framework.Assert.assertEquals;

public class TestRepartitioner {
  @Test
  public void testCreateHashFetchURL() throws Exception {
    QueryId q1 = TestTajoIds.createQueryId(1315890136000l, 2);
    String hostName = "tajo1";
    int port = 1234;
    ExecutionBlockId sid = new ExecutionBlockId(q1, 2);
    int partitionId = 2;

    List<QueryUnit.IntermediateEntry> intermediateEntries = TUtil.newList();
    for (int i = 0; i < 1000; i++) {
      intermediateEntries.add(new QueryUnit.IntermediateEntry(i, 0, partitionId, hostName, port));
    }

    Collection<URI> uris = Repartitioner.
        createHashFetchURL(hostName + ":" + port, sid, partitionId,
                TajoWorkerProtocol.ShuffleType.HASH_SHUFFLE, intermediateEntries);

    List<String> taList = TUtil.newList();
    for (URI uri : uris) {
      final Map<String, List<String>> params =
          new QueryStringDecoder(uri).getParameters();
      taList.addAll(splitMaps(params.get("ta")));
    }

    int checkTaskId = 0;
    for (String ta : taList) {
      assertEquals(checkTaskId++, Integer.parseInt(ta.split("_")[0]));
    }
  }

  private List<String> splitMaps(List<String> mapq) {
    if (null == mapq) {
      return null;
    }
    final List<String> ret = new ArrayList<String>();
    for (String s : mapq) {
      Collections.addAll(ret, s.split(","));
    }
    return ret;
  }
}


text:
require "spec_helper"

describe ZabbixSend do
  it "should have a place for tests" do
    # TODO: write tests
  end
end


text:
class Comment < ActiveRecord::Base
  belongs_to :story, class_name: "Story"

  validates :content, presence: true

  def date_posted
    created_at.strftime("%D")
  end

  def get_name(commentor_id)
    name = User.find(commentor_id).name
  end
end


text:
#pragma once
#include<string>
#include<strstream>
#include<stdlib.h>
#include "stdafx.h";
#include "Calculator.h"

namespace SimpleCalculator {

	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;
	using namespace std;

	/// <summary>
	/// Summary for Form1
	/// </summary>
	public ref class Form1 : public System::Windows::Forms::Form
	{
	public:
		Form1(void)
		{
			InitializeComponent();
			//
			//TODO: Add the constructor code here
			//
		}

	protected:
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		~Form1()
		{
			if (components)
			{
				delete components;
			}
		}
	private: System::Windows::Forms::TextBox^  tvNum1;
	protected:
	private: System::Windows::Forms::TextBox^  tvNum2;
	private: System::Windows::Forms::TextBox^  tvResult;
	private: System::Windows::Forms::Button^  btnPlus;

	private: System::Windows::Forms::Button^  btnMinus;
	private: System::Windows::Forms::Button^  btnMultiple;
	private: System::Windows::Forms::Button^  btnDiv;
	private: System::Windows::Forms::MenuStrip^  menuStrip1;
	private: System::Windows::Forms::ToolStripMenuItem^  exitToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  exitToolStripMenuItem1;
	private: System::Windows::Forms::ToolStripMenuItem^  exitToolStripMenuItem2;
	private: System::Windows::Forms::Label^  label1;
	private: System::Windows::Forms::Label^  label2;

	private: System::Windows::Forms::ToolStripMenuItem^  mainCalculatorToolStripMenuItem;

	private: System::ComponentModel::IContainer^  components;

	private:
		/// <summary>
		/// Required designer variable.
		/// </summary>

#pragma region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent(void)
		{
			this->tvNum1 = (gcnew System::Windows::Forms::TextBox());
			this->tvNum2 = (gcnew System::Windows::Forms::TextBox());
			this->tvResult = (gcnew System::Windows::Forms::TextBox());
			this->btnPlus = (gcnew System::Windows::Forms::Button());
			this->btnMinus = (gcnew System::Windows::Forms::Button());
			this->btnMultiple = (gcnew System::Windows::Forms::Button());
			this->btnDiv = (gcnew System::Windows::Forms::Button());
			this->menuStrip1 = (gcnew System::Windows::Forms::MenuStrip());
			this->exitToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->exitToolStripMenuItem1 = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->mainCalculatorToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->exitToolStripMenuItem2 = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->label1 = (gcnew System::Windows::Forms::Label());
			this->label2 = (gcnew System::Windows::Forms::Label());
			this->menuStrip1->SuspendLayout();
			this->SuspendLayout();
			//
			// tvNum1
			//
			this->tvNum1->Location = System::Drawing::Point(119, 42);
			this->tvNum1->Multiline = true;
			this->tvNum1->Name = L"tvNum1";
			this->tvNum1->Size = System::Drawing::Size(222, 31);
			this->tvNum1->TabIndex = 0;
			//
			// tvNum2
			//
			this->tvNum2->Location = System::Drawing::Point(119, 82);
			this->tvNum2->Multiline = true;
			this->tvNum2->Name = L"tvNum2";
			this->tvNum2->Size = System::Drawing::Size(222, 35);
			this->tvNum2->TabIndex = 1;
			//
			// tvResult
			//
			this->tvResult->Location = System::Drawing::Point(119, 174);
			this->tvResult->Multiline = true;
			this->tvResult->Name = L"tvResult";
			this->tvResult->Size = System::Drawing::Size(222, 33);
			this->tvResult->TabIndex = 2;
			//
			// btnPlus
			//
			this->btnPlus->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
				static_cast<System::Byte>(0)));
			this->btnPlus->Location = System::Drawing::Point(119, 123);
			this->btnPlus->Name = L"btnPlus";
			this->btnPlus->Size = System::Drawing::Size(45, 35);
			this->btnPlus->TabIndex = 3;
			this->btnPlus->Text = L"+";
			this->btnPlus->UseVisualStyleBackColor = true;
			this->btnPlus->Click += gcnew System::EventHandler(this, &Form1::btnPlus_Click);
			//
			// btnMinus
			//
			this->btnMinus->Font = (gcnew System::Drawing::Font(L"Times New Roman", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
				static_cast<System::Byte>(0)));
			this->btnMinus->Location = System::Drawing::Point(177, 123);
			this->btnMinus->Name = L"btnMinus";
			this->btnMinus->Size = System::Drawing::Size(49, 35);
			this->btnMinus->TabIndex = 5;
			this->btnMinus->Text = L"-";
			this->btnMinus->UseVisualStyleBackColor = true;
			this->btnMinus->Click += gcnew System::EventHandler(this, &Form1::btnMinus_Click);
			//
			// btnMultiple
			//
			this->btnMultiple->Font = (gcnew System::Drawing::Font(L"Times New Roman", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
				static_cast<System::Byte>(0)));
			this->btnMultiple->Location = System::Drawing::Point(235, 123);
			this->btnMultiple->Name = L"btnMultiple";
			this->btnMultiple->Size = System::Drawing::Size(49, 35);
			this->btnMultiple->TabIndex = 6;
			this->btnMultiple->Text = L"*";
			this->btnMultiple->UseVisualStyleBackColor = true;
			this->btnMultiple->Click += gcnew System::EventHandler(this, &Form1::btnMultiple_Click);
			//
			// btnDiv
			//
			this->btnDiv->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
				static_cast<System::Byte>(0)));
			this->btnDiv->Location = System::Drawing::Point(292, 123);
			this->btnDiv->Name = L"btnDiv";
			this->btnDiv->Size = System::Drawing::Size(49, 35);
			this->btnDiv->TabIndex = 7;
			this->btnDiv->Text = L"/";
			this->btnDiv->UseVisualStyleBackColor = true;
			this->btnDiv->Click += gcnew System::EventHandler(this, &Form1::btnDiv_Click);
			//
			// menuStrip1
			//
			this->menuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(1) {this->exitToolStripMenuItem});
			this->menuStrip1->Location = System::Drawing::Point(0, 0);
			this->menuStrip1->Name = L"menuStrip1";
			this->menuStrip1->Size = System::Drawing::Size(361, 24);
			this->menuStrip1->TabIndex = 8;
			this->menuStrip1->Text = L"menuStrip1";
			//
			// exitToolStripMenuItem
			//
			this->exitToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(2) {this->exitToolStripMenuItem1,
				this->exitToolStripMenuItem2});
			this->exitToolStripMenuItem->Name = L"exitToolStripMenuItem";
			this->exitToolStripMenuItem->Size = System::Drawing::Size(37, 20);
			this->exitToolStripMenuItem->Text = L"File";
			this->exitToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::exitToolStripMenuItem_Click);
			//
			// exitToolStripMenuItem1
			//
			this->exitToolStripMenuItem1->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(1) {this->mainCalculatorToolStripMenuItem});
			this->exitToolStripMenuItem1->Name = L"exitToolStripMenuItem1";
			this->exitToolStripMenuItem1->Size = System::Drawing::Size(152, 22);
			this->exitToolStripMenuItem1->Text = L"Open";
			this->exitToolStripMenuItem1->Click += gcnew System::EventHandler(this, &Form1::exitToolStripMenuItem1_Click);
			//
			// mainCalculatorToolStripMenuItem
			//
			this->mainCalculatorToolStripMenuItem->Name = L"mainCalculatorToolStripMenuItem";
			this->mainCalculatorToolStripMenuItem->Size = System::Drawing::Size(155, 22);
			this->mainCalculatorToolStripMenuItem->Text = L"MainCalculator";
			this->mainCalculatorToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::mainCalculatorToolStripMenuItem_Click);
			//
			// exitToolStripMenuItem2
			//
			this->exitToolStripMenuItem2->Name = L"exitToolStripMenuItem2";
			this->exitToolStripMenuItem2->Size = System::Drawing::Size(152, 22);
			this->exitToolStripMenuItem2->Text = L"Exit";
			this->exitToolStripMenuItem2->Click += gcnew System::EventHandler(this, &Form1::exitToolStripMenuItem2_Click);
			//
			// label1
			//
			this->label1->AutoSize = true;
			this->label1->Location = System::Drawing::Point(21, 45);
			this->label1->Name = L"label1";
			this->label1->Size = System::Drawing::Size(66, 13);
			this->label1->TabIndex = 9;
			this->label1->Text = L"First Number";
			//
			// label2
			//
			this->label2->AutoSize = true;
			this->label2->Location = System::Drawing::Point(21, 104);
			this->label2->Name = L"label2";
			this->label2->Size = System::Drawing::Size(65, 13);
			this->label2->TabIndex = 10;
			this->label2->Text = L"2nd Number";
			//
			// Form1
			//
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->ClientSize = System::Drawing::Size(361, 255);
			this->Controls->Add(this->label2);
			this->Controls->Add(this->label1);
			this->Controls->Add(this->btnDiv);
			this->Controls->Add(this->btnMultiple);
			this->Controls->Add(this->btnMinus);
			this->Controls->Add(this->btnPlus);
			this->Controls->Add(this->tvResult);
			this->Controls->Add(this->tvNum2);
			this->Controls->Add(this->tvNum1);
			this->Controls->Add(this->menuStrip1);
			this->MainMenuStrip = this->menuStrip1;
			this->Name = L"Form1";
			this->Text = L"Simple Calculator";
			this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
			this->menuStrip1->ResumeLayout(false);
			this->menuStrip1->PerformLayout();
			this->ResumeLayout(false);
			this->PerformLayout();

		}

#pragma endregion
	private: System::Void btnPlus_Click(System::Object^  sender, System::EventArgs^  e) {
			 /*int ^ a;
             a = Convert::ToInt32(tvNum1->Text);
			 tvNum2->Text=Convert::ToString(a);*/

				 /*  int a= Convert::ToInt32(this->tvNum1->Text->Trim());
                     int b= Convert::ToInt32(this->tvNum2->Text->Trim());
					 int sum=a+b;
                     this->tvResult->Text=sum.ToString();*/

						double num1=Convert :: ToDouble (this->tvNum1->Text->Trim());
						double num2=Convert :: ToDouble (this->tvNum2->Text->Trim());
						double sum=num1+num2;
						this->tvResult->Text=sum.ToString();
						MessageBox::Show("Addition is : "+tvResult->Text);
			 }

private: System::Void btnMinus_Click(System::Object^  sender, System::EventArgs^  e) {
			 double num1=Convert :: ToDouble (this->tvNum1->Text->Trim());
						double num2=Convert :: ToDouble (this->tvNum2->Text->Trim());
						double sum=num1-num2;
						this->tvResult->Text=sum.ToString();
						MessageBox::Show("Subtract is : "+tvResult->Text);
		 }
private: System::Void btnDiv_Click(System::Object^  sender, System::EventArgs^  e) {
					    double num1=Convert :: ToDouble (this->tvNum1->Text->Trim());
						double num2=Convert :: ToDouble (this->tvNum2->Text->Trim());
						double sum=num1/num2;
						this->tvResult->Text=sum.ToString();
						MessageBox::Show("Division is : "+tvResult->Text);
		 }
private: System::Void btnMultiple_Click(System::Object^  sender, System::EventArgs^  e) {
			            double num1=Convert :: ToDouble (this->tvNum1->Text->Trim());
						double num2=Convert :: ToDouble (this->tvNum2->Text->Trim());
						double sum=num1*num2;
						this->tvResult->Text=sum.ToString();
						MessageBox::Show("Multiple is : "+tvResult->Text);
		 }
private: System::Void exitToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {

		 }
private: System::Void exitToolStripMenuItem2_Click(System::Object^  sender, System::EventArgs^  e) {
			 Close();
		 }
private: System::Void Form1_Load(System::Object^  sender, System::EventArgs^  e) {
		 }

private: System::Void mainCalculatorToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {

			 Calculator^ f2 = gcnew Calculator();
             f2.ShowDialog();
			 this->Hide();
		 }
};
}


text:
package com.amazonaws.services.elasticbeanstalk.model;

import java.io.Serializable;
import com.amazonaws.AmazonWebServiceRequest;

/**
 *

 */
public class DeleteApplicationVersionRequest extends AmazonWebServiceRequest
        implements Serializable, Cloneable {

    /**
     *

     * The name of the application to delete releases from.
     *

     */
    private String applicationName;
    /**
     *

     * The label of the version to delete.
     *

     */
    private String versionLabel;
    /**
     *

     * Indicates whether to delete the associated source bundle from Amazon S3:
     *

     *

     *
 true: An attempt is made to delete the associated Amazon
     * S3 source bundle specified at time of creation.

     *
 false: No action is taken on the Amazon S3 source bundle
     * specified at time of creation.

     *

     *

     * Valid Values: true | false
     *

     */
    private Boolean deleteSourceBundle;

    /**
     * Default constructor for DeleteApplicationVersionRequest object. Callers
     * should use the setter or fluent setter (with...) methods to initialize
     * the object after creating it.
     */
    public DeleteApplicationVersionRequest() {
    }

    /**
     * Constructs a new DeleteApplicationVersionRequest object. Callers should
     * use the setter or fluent setter (with...) methods to initialize any
     * additional object members.
     *
     * @param applicationName
     *        The name of the application to delete releases from.
     * @param versionLabel
     *        The label of the version to delete.
     */
    public DeleteApplicationVersionRequest(String applicationName,
            String versionLabel) {
        setApplicationName(applicationName);
        setVersionLabel(versionLabel);
    }

    /**
     *

     * The name of the application to delete releases from.
     *

     *
     * @param applicationName
     *        The name of the application to delete releases from.
     */
    public void setApplicationName(String applicationName) {
        this.applicationName = applicationName;
    }

    /**
     *

     * The name of the application to delete releases from.
     *

     *
     * @return The name of the application to delete releases from.
     */
    public String getApplicationName() {
        return this.applicationName;
    }

    /**
     *

     * The name of the application to delete releases from.
     *

     *
     * @param applicationName
     *        The name of the application to delete releases from.
     * @return Returns a reference to this object so that method calls can be
     *         chained together.
     */
    public DeleteApplicationVersionRequest withApplicationName(
            String applicationName) {
        setApplicationName(applicationName);
        return this;
    }

    /**
     *

     * The label of the version to delete.
     *

     *
     * @param versionLabel
     *        The label of the version to delete.
     */
    public void setVersionLabel(String versionLabel) {
        this.versionLabel = versionLabel;
    }

    /**
     *

     * The label of the version to delete.
     *

     *
     * @return The label of the version to delete.
     */
    public String getVersionLabel() {
        return this.versionLabel;
    }

    /**
     *

     * The label of the version to delete.
     *

     *
     * @param versionLabel
     *        The label of the version to delete.
     * @return Returns a reference to this object so that method calls can be
     *         chained together.
     */
    public DeleteApplicationVersionRequest withVersionLabel(String versionLabel) {
        setVersionLabel(versionLabel);
        return this;
    }

    /**
     *

     * Indicates whether to delete the associated source bundle from Amazon S3:
     *

     *

     *
 true: An attempt is made to delete the associated Amazon
     * S3 source bundle specified at time of creation.

     *
 false: No action is taken on the Amazon S3 source bundle
     * specified at time of creation.

     *

     *

     * Valid Values: true | false
     *

     *
     * @param deleteSourceBundle
     *        Indicates whether to delete the associated source bundle from
     *        Amazon S3:

     *

     *
 true: An attempt is made to delete the associated
     *        Amazon S3 source bundle specified at time of creation.

     *
 false: No action is taken on the Amazon S3 source
     *        bundle specified at time of creation.

     *

     *

     *        Valid Values: true | false
     */
    public void setDeleteSourceBundle(Boolean deleteSourceBundle) {
        this.deleteSourceBundle = deleteSourceBundle;
    }

    /**
     *

     * Indicates whether to delete the associated source bundle from Amazon S3:
     *

     *

     *
 true: An attempt is made to delete the associated Amazon
     * S3 source bundle specified at time of creation.

     *
 false: No action is taken on the Amazon S3 source bundle
     * specified at time of creation.

     *

     *

     * Valid Values: true | false
     *

     *
     * @return Indicates whether to delete the associated source bundle from
     *         Amazon S3:

     *

     *
 true: An attempt is made to delete the
     *         associated Amazon S3 source bundle specified at time of creation.
     *

     *
 false: No action is taken on the Amazon S3
     *         source bundle specified at time of creation.

     *

     *

     *         Valid Values: true | false
     */
    public Boolean getDeleteSourceBundle() {
        return this.deleteSourceBundle;
    }

    /**
     *

     * Indicates whether to delete the associated source bundle from Amazon S3:
     *

     *

     *
 true: An attempt is made to delete the associated Amazon
     * S3 source bundle specified at time of creation.

     *
 false: No action is taken on the Amazon S3 source bundle
     * specified at time of creation.

     *

     *

     * Valid Values: true | false
     *

     *
     * @param deleteSourceBundle
     *        Indicates whether to delete the associated source bundle from
     *        Amazon S3:

     *

     *
 true: An attempt is made to delete the associated
     *        Amazon S3 source bundle specified at time of creation.

     *
 false: No action is taken on the Amazon S3 source
     *        bundle specified at time of creation.

     *

     *

     *        Valid Values: true | false
     * @return Returns a reference to this object so that method calls can be
     *         chained together.
     */
    public DeleteApplicationVersionRequest withDeleteSourceBundle(
            Boolean deleteSourceBundle) {
        setDeleteSourceBundle(deleteSourceBundle);
        return this;
    }

    /**
     *

     * Indicates whether to delete the associated source bundle from Amazon S3:
     *

     *

     *
 true: An attempt is made to delete the associated Amazon
     * S3 source bundle specified at time of creation.

     *
 false: No action is taken on the Amazon S3 source bundle
     * specified at time of creation.

     *

     *

     * Valid Values: true | false
     *

     *
     * @return Indicates whether to delete the associated source bundle from
     *         Amazon S3:

     *

     *
 true: An attempt is made to delete the
     *         associated Amazon S3 source bundle specified at time of creation.
     *

     *
 false: No action is taken on the Amazon S3
     *         source bundle specified at time of creation.

     *

     *

     *         Valid Values: true | false
     */
    public Boolean isDeleteSourceBundle() {
        return this.deleteSourceBundle;
    }

    /**
     * Returns a string representation of this object; useful for testing and
     * debugging.
     *
     * @return A string representation of this object.
     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getApplicationName() != null)
            sb.append("ApplicationName: " + getApplicationName() + ",");
        if (getVersionLabel() != null)
            sb.append("VersionLabel: " + getVersionLabel() + ",");
        if (getDeleteSourceBundle() != null)
            sb.append("DeleteSourceBundle: " + getDeleteSourceBundle());
        sb.append("}");
        return sb.toString();
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof DeleteApplicationVersionRequest == false)
            return false;
        DeleteApplicationVersionRequest other = (DeleteApplicationVersionRequest) obj;
        if (other.getApplicationName() == null
                ^ this.getApplicationName() == null)
            return false;
        if (other.getApplicationName() != null
                && other.getApplicationName().equals(this.getApplicationName()) == false)
            return false;
        if (other.getVersionLabel() == null ^ this.getVersionLabel() == null)
            return false;
        if (other.getVersionLabel() != null
                && other.getVersionLabel().equals(this.getVersionLabel()) == false)
            return false;
        if (other.getDeleteSourceBundle() == null
                ^ this.getDeleteSourceBundle() == null)
            return false;
        if (other.getDeleteSourceBundle() != null
                && other.getDeleteSourceBundle().equals(
                        this.getDeleteSourceBundle()) == false)
            return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;

        hashCode = prime
                * hashCode
                + ((getApplicationName() == null) ? 0 : getApplicationName()
                        .hashCode());
        hashCode = prime
                * hashCode
                + ((getVersionLabel() == null) ? 0 : getVersionLabel()
                        .hashCode());
        hashCode = prime
                * hashCode
                + ((getDeleteSourceBundle() == null) ? 0
                        : getDeleteSourceBundle().hashCode());
        return hashCode;
    }

    @Override
    public DeleteApplicationVersionRequest clone() {
        return (DeleteApplicationVersionRequest) super.clone();
    }
}


text:
 /*
  *  Plugin Name : callAjax
  *  Author : Sagar Sutar (sagarsutar.com, thesagarsutar @github, @twitter, @dribbble, @codepen)
  *  Date : 19-OCT-2013 3.31 PM
  *  Documentaion : doc.html
  */

 (function($) {
     $.extend({
         ajaxCall: function(url, input, callbackFunction) {
             var status = {
                 success: 'SUCCESS',
                 failure: 'FAILURE',
                 error: 'ERROR',
                 empty: ''
             }

             var ajaxResult = ajaxResult || '';
             var method = 'POST';

             jQuery.ajax({
                 url: url,
                 type: method,
                 dataType: 'json',
                 data: input,
                 complete: function(xhr, textStatus) {
                     console.log('ajax call completed');
                 },
                 success: function(data, textStatus, xhr) {
                     console.log('ajax call succeed');

                     //if data is JSON
                     if (typeof data == 'object') {
                         ajaxResult = data;
                     } else { //if data is not JSON

                         switch (data) {
                             case true:
                                 ajaxResult = status.success;
                                 break;
                             case false:
                                 ajaxResult = status.failure;
                                 break;
                             case '':
                                 ajaxResult = status.empty;
                                 break;
                             default:
                                 ajaxResult = 'Returned data is out of plugin Scope';
                         }
                     }
                     callbackFunction(ajaxResult);
                     console.log('returned status : ' + ajaxResult);
                 },
                 error: function(xhr, textStatus, errorThrown) {
                     console.log('ajax call failed : error : ' + errorThrown);
                     callbackFunction(status.error);
                 }
             });
         }
     });
 }(jQuery));


text:
// -----------------------------------------------------------------------
//  <copyright file="FunctionUserMapInputDto.cs" company="OSharp开源团队">
//      Copyright (c) 2014-2015 OSharp. All rights reserved.
//  </copyright>
//  <site>http://www.osharp.org</site>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2015-10-14 3:38</last-date>
// -----------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using OSharp.Core.Security.Dtos;
using OSharp.Core.Security.Models;

namespace OSharp.Demo.Dtos.Security
{
    /// <summary>
    /// 功能用户映射DTO
    /// </summary>
    public class FunctionUserMapInputDto : FunctionUserMapBaseInputDto<int, Guid, int>
    { }
}


text:
package com.github.droidfu.http;

import static org.mockito.Matchers.any;
import static org.mockito.Mockito.when;

import java.io.ByteArrayInputStream;

import org.apache.http.client.ResponseHandler;
import org.apache.http.client.methods.HttpUriRequest;
import org.apache.http.impl.client.AbstractHttpClient;
import org.apache.http.params.BasicHttpParams;
import org.apache.http.params.HttpConnectionParams;
import org.apache.http.protocol.HttpContext;
import org.junit.Before;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;

import android.util.Log;

import com.github.droidfu.TestBase;

@RunWith(PowerMockRunner.class)
@PrepareForTest({ Log.class })
public class BetterHttpTestBase extends TestBase {

    protected String responseBody = "Here be Jason.";

    protected String url = "http://api.qype.com/positions/1,1/places?x=y&a=%2Bc";

    @Mock
    protected AbstractHttpClient httpClientMock;

    @Mock
    protected BetterHttpResponse mockResponse;

    @SuppressWarnings("unchecked")
    @Before
    public void setupHttpClient() throws Exception {

        when(mockResponse.getResponseBody()).thenReturn(
                new ByteArrayInputStream(responseBody.getBytes()));
        when(mockResponse.getResponseBodyAsBytes()).thenReturn(responseBody.getBytes());
        when(mockResponse.getResponseBodyAsString()).thenReturn(responseBody);
        when(mockResponse.getStatusCode()).thenReturn(200);
        when(
                httpClientMock.execute(any(HttpUriRequest.class), any(ResponseHandler.class),
                        any(HttpContext.class))).thenReturn(mockResponse);

        BasicHttpParams params = new BasicHttpParams();
        HttpConnectionParams.setSoTimeout(params, BetterHttp.DEFAULT_SOCKET_TIMEOUT);
        when(httpClientMock.getParams()).thenReturn(params);

        BetterHttp.setHttpClient(httpClientMock);
    }

}


text:
import React, { Component } from "react"
import PropTypes from "prop-types"
import * as styles from "./styles"

export default class Highlighter extends Component {
    static propTypes = {
        boxes: PropTypes.arrayOf(
            PropTypes.shape({
                type: PropTypes.oneOf(["rendering", "hover"]).isRequired,
                x: PropTypes.number.isRequired,
                y: PropTypes.number.isRequired,
                width: PropTypes.number.isRequired,
                height: PropTypes.number.isRequired,
                renderInfo: PropTypes.shape({
                    count: PropTypes.number.isRequired,
                    renderTime: PropTypes.number.isRequired,
                    totalTime: PropTypes.number.isRequired,
                    cost: PropTypes.oneOf(["cheap", "acceptable", "expensive"]).isRequired
                }),
                lifeTime: PropTypes.number.isRequired
            })
        ).isRequired
    }

    renderBox(box) {
        switch (box.type) {
            case "rendering":
                let renderingCostStyle = styles.rendering[box.renderInfo.cost] || {}
                return (

                            setTimeout(() => {
                                if (el) el.style.opacity = 0
                            }, box.lifeTime - 500)}
                        style={Object.assign({}, styles.box, styles.rendering, renderingCostStyle, {
                            left: box.x,
                            top: box.y,
                            width: box.width,
                            height: box.height
                        })}
                    >

                            {box.renderInfo.count}x | {box.renderInfo.renderTime} /{" "}
                            {box.renderInfo.totalTime} ms

                )

            case "hover":
                return (

                )

            default:
                throw new Error()
        }
    }

    render() {
        const { boxes } = this.props

        return
{boxes.map(box => this.renderBox(box))}

    }
}


text:
import invisiblyAdapter from 'modules/invisiblyAnalyticsAdapter';
import { expect } from 'chai';
let events = require('src/events');
let constants = require('src/constants.json');

describe('Invisibly Analytics Adapter test suite', function() {
  let xhr;
  let requests = [];
  const BID1 = {
    width: 980,
    height: 240,
    cpm: 1.1,
    timeToRespond: 200,
    bidId: '2ecff0db240757',
    requestId: '2ecff0db240757',
    adId: '2ecff0db240757',
    auctionId: '25c6d7f5-699a-4bfc-87c9-996f915341fa',
    adUnitCode: '/19968336/header-bid-tag-0',
    adserverTargeting: {
      hb_bidder: 'testBidder',
      hb_adid: '2ecff0db240757',
      hb_pb: 1.2,
      hb_size: '640x480',
      hb_source: 'client'
    },
    getStatusCode() {
      return CONSTANTS.STATUS.GOOD;
    }
  };

  const BID2 = Object.assign({}, BID1, {
    width: 300,
    height: 250,
    cpm: 2.2,
    timeToRespond: 300,
    bidId: '3ecff0db240757',
    requestId: '3ecff0db240757',
    adId: '3ecff0db240757'
  });

  const BID3 = {
    bidId: '4ecff0db240757',
    requestId: '4ecff0db240757',
    adId: '4ecff0db240757',
    auctionId: '25c6d7f5-699a-4bfc-87c9-996f915341fa',
    adUnitCode: '/19968336/header-bid-tag1',
    adserverTargeting: {
      hb_bidder: 'testBidder',
      hb_adid: '3bd4ebb1c900e2',
      hb_pb: '1.500',
      hb_size: '728x90',
      hb_source: 'server'
    },
    getStatusCode() {
      return CONSTANTS.STATUS.NO_BID;
    }
  };

  const MOCK = {
    config: {
      provider: 'invisiblyAnalytics',
      options: {
        bundleId: '',
        account: 'invisibly'
      }
    },
    AUCTION_INIT: {
      auctionId: '25c6d7f5-699a-4bfc-87c9-996f915341fa'
    },
    BID_REQUESTED: {
      bidder: 'mockBidder',
      auctionId: '25c6d7f5-699a-4bfc-87c9-996f915341fa',
      bidderRequestId: '1be65d7958826a',
      bids: [
        {
          bidder: 'mockBidder',
          adUnitCode: 'panorama_d_1',
          bidId: '2ecff0db240757'
        },
        {
          bidder: 'mockBidder',
          adUnitCode: 'box_d_1',
          bidId: '3ecff0db240757'
        },
        {
          bidder: 'mockBidder',
          adUnitCode: 'box_d_2',
          bidId: '4ecff0db240757'
        }
      ],
      start: 1519149562216
    },
    BID_RESPONSE: [BID1, BID2],
    AUCTION_END: {
      auctionId: 'test_timeout_auction_id',
      timestamp: 1234567890,
      timeout: 3000,
      auctionEnd: 1234567990
    },
    BID_WON: {
      bidderCode: 'appnexus',
      width: 300,
      height: 250,
      adId: '1ebb82ec35375e',
      mediaType: 'banner',
      cpm: 0.5,
      requestId: '1582271863760569973',
      creative_id: '96846035',
      creativeId: '96846035',
      ttl: 60,
      currency: 'USD',
      netRevenue: true,
      auctionId: '9c7b70b9-b6ab-4439-9e71-b7b382797c18',
      responseTimestamp: 1537521629657,
      requestTimestamp: 1537521629331,
      bidder: 'appnexus',
      adUnitCode: 'div-gpt-ad-1460505748561-0',
      timeToRespond: 326,
      size: '300x250',
      status: 'rendered',
      eventType: 'bidWon',
      ad: 'some ad',
      adUrl: 'ad url'
    },
    BIDDER_DONE: {
      bidderCode: 'mockBidder',
      bids: [BID1, BID2, BID3]
    },
    BID_TIMEOUT: [
      {
        bidId: '2ecff0db240757',
        auctionId: '25c6d7f5-699a-4bfc-87c9-996f915341fa'
      }
    ],
    BID_ADJUSTMENT: {
      ad: 'html',
      adId: '298bf14ecbafb',
      cpm: 1.01,
      creativeId: '2249:92806132',
      currency: 'USD',
      height: 250,
      mediaType: 'banner',
      requestId: '298bf14ecbafb',
      size: '300x250',
      source: 'client',
      status: 'rendered',
      statusMessage: 'Bid available',
      timeToRespond: 421,
      ttl: 300,
      width: 300
    },
    NO_BID: {
      testKey: false
    },
    SET_TARGETING: {
      [BID1.adUnitCode]: BID1.adserverTargeting,
      [BID3.adUnitCode]: BID3.adserverTargeting
    },
    REQUEST_BIDS: {
      call: 'request'
    },
    ADD_AD_UNITS: { call: 'addAdUnits' },
    AD_RENDER_FAILED: { call: 'adRenderFailed' },
    INVALID_EVENT: {
      mockKey: 'this event should not emit'
    }
  };

  describe('Invisibly Analytic tests specs', function() {
    beforeEach(function() {
      xhr = sinon.useFakeXMLHttpRequest();
      requests = [];
      xhr.onCreate = request => requests.push(request);
      sinon.stub(events, 'getEvents').returns([]);
      sinon.spy(invisiblyAdapter, 'track');
    });

    afterEach(function() {
      invisiblyAdapter.disableAnalytics();
      events.getEvents.restore();
      invisiblyAdapter.track.restore();
      xhr.restore();
    });

    // specs to test invisibly account input to enableAnaylitcs
    describe('monitor enableAnalytics method', function() {
      it('should catch all events triggered with invisibly account config', function() {
        invisiblyAdapter.enableAnalytics({
          provider: 'invisiblyAnalytics',
          options: {
            account: 'invisibly'
          }
        });

        events.emit(constants.EVENTS.AUCTION_INIT, MOCK.AUCTION_INIT);
        events.emit(constants.EVENTS.AUCTION_END, MOCK.AUCTION_END);
        events.emit(constants.EVENTS.BID_REQUESTED, MOCK.BID_REQUESTED);
        events.emit(constants.EVENTS.BID_RESPONSE, MOCK.BID_RESPONSE);
        events.emit(constants.EVENTS.BID_WON, MOCK.BID_WON);
        sinon.assert.callCount(invisiblyAdapter.track, 5);
      });

      it('should not catch events triggered without invisibly account config', function() {
        invisiblyAdapter.enableAnalytics({
          provider: 'invisiblyAnalytics',
          options: {}
        });

        events.emit(constants.EVENTS.AUCTION_INIT, MOCK.AUCTION_INIT);
        events.emit(constants.EVENTS.AUCTION_END, MOCK.AUCTION_END);
        events.emit(constants.EVENTS.BID_REQUESTED, MOCK.BID_REQUESTED);
        events.emit(constants.EVENTS.BID_RESPONSE, MOCK.BID_RESPONSE);
        events.emit(constants.EVENTS.BID_WON, MOCK.BID_WON);
        invisiblyAdapter.flush();
        sinon.assert.callCount(invisiblyAdapter.track, 0);
      });
      // spec to test custom api endpoint
      it('support custom endpoint', function() {
        let custom_url = 'custom url';
        invisiblyAdapter.enableAnalytics({
          provider: 'invisiblyAnalytics',
          options: {
            url: custom_url,
            bundleId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
            account: 'invisibly'
          }
        });
        expect(invisiblyAdapter.getOptions().url).to.equal(custom_url);
      });
    });

    // spec for auction init event
    it('auction init event', function() {
      invisiblyAdapter.enableAnalytics(MOCK.config);
      events.emit(constants.EVENTS.AUCTION_INIT, MOCK.AUCTION_INIT);
      invisiblyAdapter.flush();

      const invisiblyEvents = JSON.parse(requests[1].requestBody.substring(0));
      // pageView is default event initially hence expecting 2 requests
      expect(requests.length).to.equal(2);
      expect(requests[1].url).to.equal('https://api.pymx5.com/v1/sites/events');
      expect(invisiblyEvents.event_data.auctionId).to.equal(
        MOCK.AUCTION_INIT.auctionId
      );
      expect(invisiblyEvents.event_data.pageViewId).to.exist;
      expect(invisiblyEvents.event_type).to.equal('PREBID_auctionInit');
      expect(invisiblyEvents.event_data.ver).to.equal(1);
    });

    // spec for bid adjustment event
    it('bid adjustment event', function() {
      invisiblyAdapter.enableAnalytics(MOCK.config);
      events.emit(constants.EVENTS.BID_ADJUSTMENT, MOCK.BID_ADJUSTMENT);
      invisiblyAdapter.flush();

      const invisiblyEvents = JSON.parse(requests[0].requestBody.substring(0));
      expect(requests.length).to.equal(1);
      expect(requests[0].url).to.equal('https://api.pymx5.com/v1/sites/events');
      expect(invisiblyEvents.event_data.pageViewId).to.exist;
      expect(invisiblyEvents.event_data.ver).to.equal(1);
      expect(invisiblyEvents.event_type).to.equal('PREBID_bidAdjustment');
      expect(invisiblyEvents.event_data.bidders.cpm).to.equal(
        MOCK.BID_ADJUSTMENT.cpm
      );
      sinon.assert.callCount(invisiblyAdapter.track, 1);
    });

    // spec for bid timeout event
    it('bid timeout event', function() {
      invisiblyAdapter.enableAnalytics(MOCK.config);
      events.emit(constants.EVENTS.BID_TIMEOUT, MOCK.BID_TIMEOUT);
      invisiblyAdapter.flush();

      const invisiblyEvents = JSON.parse(requests[0].requestBody.substring(0));
      expect(requests.length).to.equal(1);
      expect(requests[0].url).to.equal('https://api.pymx5.com/v1/sites/events');
      expect(invisiblyEvents.event_data.pageViewId).to.exist;
      expect(invisiblyEvents.event_data.ver).to.equal(1);
      expect(invisiblyEvents.event_type).to.equal('PREBID_bidTimeout');
      expect(invisiblyEvents.event_data.bidders.bidId).to.equal(
        MOCK.BID_TIMEOUT.bidId
      );
      sinon.assert.callCount(invisiblyAdapter.track, 1);
    });

    // spec for bid requested event
    it('bid requested event', function() {
      invisiblyAdapter.enableAnalytics(MOCK.config);
      events.emit(constants.EVENTS.BID_REQUESTED, MOCK.BID_REQUESTED);
      invisiblyAdapter.flush();

      const invisiblyEvents = JSON.parse(requests[0].requestBody.substring(0));
      expect(requests.length).to.equal(1);
      expect(requests[0].url).to.equal('https://api.pymx5.com/v1/sites/events');
      expect(invisiblyEvents.event_data.pageViewId).to.exist;
      expect(invisiblyEvents.event_data.ver).to.equal(1);
      expect(invisiblyEvents.event_type).to.equal('PREBID_bidRequested');
      expect(invisiblyEvents.event_data.auctionId).to.equal(
        MOCK.BID_REQUESTED.auctionId
      );
      sinon.assert.callCount(invisiblyAdapter.track, 1);
    });

    // spec for bid response event
    it('bid response event', function() {
      invisiblyAdapter.enableAnalytics(MOCK.config);
      events.emit(constants.EVENTS.BID_RESPONSE, MOCK.BID_RESPONSE);
      invisiblyAdapter.flush();

      const invisiblyEvents = JSON.parse(requests[0].requestBody.substring(0));
      expect(requests.length).to.equal(1);
      expect(requests[0].url).to.equal('https://api.pymx5.com/v1/sites/events');
      expect(invisiblyEvents.event_data.pageViewId).to.exist;
      expect(invisiblyEvents.event_data.ver).to.equal(1);
      expect(invisiblyEvents.event_type).to.equal('PREBID_bidResponse');
      expect(invisiblyEvents.event_data.cpm).to.equal(MOCK.BID_REQUESTED.cpm);
      sinon.assert.callCount(invisiblyAdapter.track, 1);
    });

    // spec for no bid event
    it('no bid event', function() {
      invisiblyAdapter.enableAnalytics(MOCK.config);
      events.emit(constants.EVENTS.NO_BID, MOCK.NO_BID);
      invisiblyAdapter.flush();

      const invisiblyEvents = JSON.parse(requests[0].requestBody.substring(0));
      expect(requests.length).to.equal(1);
      expect(requests[0].url).to.equal('https://api.pymx5.com/v1/sites/events');
      expect(invisiblyEvents.event_data.pageViewId).to.exist;
      expect(invisiblyEvents.event_data.ver).to.equal(1);
      expect(invisiblyEvents.event_type).to.equal('PREBID_noBid');
      expect(invisiblyEvents.event_data.noBid.testKey).to.equal(
        MOCK.NO_BID.testKey
      );
      sinon.assert.callCount(invisiblyAdapter.track, 1);
    });

    // spec for bid won event
    it('bid won event', function() {
      invisiblyAdapter.enableAnalytics(MOCK.config);
      events.emit(constants.EVENTS.BID_WON, MOCK.BID_WON);
      invisiblyAdapter.flush();

      const invisiblyEvents = JSON.parse(requests[0].requestBody.substring(0));
      expect(requests.length).to.equal(1);
      expect(requests[0].url).to.equal('https://api.pymx5.com/v1/sites/events');
      expect(invisiblyEvents.event_data.pageViewId).to.exist;
      expect(invisiblyEvents.event_data.ver).to.equal(1);
      expect(invisiblyEvents.event_type).to.equal('PREBID_bidWon');
      sinon.assert.callCount(invisiblyAdapter.track, 1);
    });

    // spec for bidder done event
    it('bidder done event', function() {
      invisiblyAdapter.enableAnalytics(MOCK.config);
      events.emit(constants.EVENTS.BIDDER_DONE, MOCK.BIDDER_DONE);
      invisiblyAdapter.flush();

      const invisiblyEvents = JSON.parse(requests[0].requestBody.substring(0));
      expect(requests.length).to.equal(1);
      expect(requests[0].url).to.equal('https://api.pymx5.com/v1/sites/events');
      expect(invisiblyEvents.event_data.pageViewId).to.exist;
      expect(invisiblyEvents.event_data.ver).to.equal(1);
      expect(invisiblyEvents.event_type).to.equal('PREBID_bidderDone');
      expect(invisiblyEvents.event_data.bidderCode).to.equal(
        MOCK.BIDDER_DONE.bidderCode
      );
      expect(invisiblyEvents.event_data.bids.length).to.equal(
        MOCK.BIDDER_DONE.bids.length
      );
      sinon.assert.callCount(invisiblyAdapter.track, 1);
    });

    // spec for set targeting event
    it('set targeting event', function() {
      invisiblyAdapter.enableAnalytics(MOCK.config);
      events.emit(constants.EVENTS.SET_TARGETING, MOCK.SET_TARGETING);
      invisiblyAdapter.flush();

      const invisiblyEvents = JSON.parse(requests[0].requestBody.substring(0));
      expect(requests.length).to.equal(1);
      expect(requests[0].url).to.equal('https://api.pymx5.com/v1/sites/events');
      expect(invisiblyEvents.event_data.pageViewId).to.exist;
      expect(invisiblyEvents.event_data.ver).to.equal(1);
      expect(invisiblyEvents.event_type).to.equal('PREBID_setTargeting');
      expect(
        invisiblyEvents.event_data.targetings[BID1.adUnitCode]
      ).to.deep.equal(BID1.adserverTargeting);
      expect(
        invisiblyEvents.event_data.targetings[BID3.adUnitCode]
      ).to.deep.equal(BID3.adserverTargeting);
      sinon.assert.callCount(invisiblyAdapter.track, 1);
    });

    // spec for request bids event
    it('request bids event', function() {
      invisiblyAdapter.enableAnalytics(MOCK.config);
      events.emit(constants.EVENTS.REQUEST_BIDS, MOCK.REQUEST_BIDS);
      invisiblyAdapter.flush();

      const invisiblyEvents = JSON.parse(requests[0].requestBody.substring(0));
      expect(requests.length).to.equal(1);
      expect(requests[0].url).to.equal('https://api.pymx5.com/v1/sites/events');
      expect(invisiblyEvents.event_data.pageViewId).to.exist;
      expect(invisiblyEvents.event_data.ver).to.equal(1);
      expect(invisiblyEvents.event_type).to.equal('PREBID_requestBids');
      expect(invisiblyEvents.event_data.call).to.equal(MOCK.REQUEST_BIDS.call);
      sinon.assert.callCount(invisiblyAdapter.track, 1);
    });

    // spec for add ad units event
    it('add ad units event', function() {
      invisiblyAdapter.enableAnalytics(MOCK.config);
      events.emit(constants.EVENTS.ADD_AD_UNITS, MOCK.ADD_AD_UNITS);
      invisiblyAdapter.flush();

      const invisiblyEvents = JSON.parse(requests[0].requestBody.substring(0));
      expect(requests.length).to.equal(1);
      expect(requests[0].url).to.equal('https://api.pymx5.com/v1/sites/events');
      expect(invisiblyEvents.event_data.pageViewId).to.exist;
      expect(invisiblyEvents.event_data.ver).to.equal(1);
      expect(invisiblyEvents.event_type).to.equal('PREBID_addAdUnits');
      expect(invisiblyEvents.event_data.call).to.equal(MOCK.ADD_AD_UNITS.call);
      sinon.assert.callCount(invisiblyAdapter.track, 1);
    });

    // spec for ad render failed event
    it('ad render failed event', function() {
      invisiblyAdapter.enableAnalytics(MOCK.config);
      events.emit(constants.EVENTS.AD_RENDER_FAILED, MOCK.AD_RENDER_FAILED);
      invisiblyAdapter.flush();

      const invisiblyEvents = JSON.parse(requests[0].requestBody.substring(0));
      expect(requests.length).to.equal(1);
      expect(requests[0].url).to.equal('https://api.pymx5.com/v1/sites/events');
      expect(invisiblyEvents.event_data.pageViewId).to.exist;
      expect(invisiblyEvents.event_data.ver).to.equal(1);
      expect(invisiblyEvents.event_type).to.equal('PREBID_adRenderFailed');
      expect(invisiblyEvents.event_data.call).to.equal(
        MOCK.AD_RENDER_FAILED.call
      );
      sinon.assert.callCount(invisiblyAdapter.track, 1);
    });

    // spec for auction end event
    it('auction end event', function() {
      invisiblyAdapter.enableAnalytics(MOCK.config);
      events.emit(constants.EVENTS.AUCTION_END, MOCK.AUCTION_END);
      invisiblyAdapter.flush();

      const invisiblyEvents = JSON.parse(requests[0].requestBody.substring(0));
      expect(requests.length).to.equal(1);
      expect(requests[0].url).to.equal('https://api.pymx5.com/v1/sites/events');
      expect(invisiblyEvents.event_data.pageViewId).to.exist;
      expect(invisiblyEvents.event_data.ver).to.equal(1);
      expect(invisiblyEvents.event_type).to.equal('PREBID_auctionEnd');
      expect(invisiblyEvents.event_data.auctionId).to.equal(
        MOCK.AUCTION_END.auctionId
      );
      sinon.assert.callCount(invisiblyAdapter.track, 1);
    });

    // should not call sendEvent for events not supported by the adapter
    it('it should not call sendEvent for this event emit', function() {
      sinon.spy(invisiblyAdapter, 'sendEvent');
      invisiblyAdapter.enableAnalytics(MOCK.config);
      events.emit(constants.EVENTS.INVALID_EVENT, MOCK.INVALID_EVENT);
      invisiblyAdapter.flush();

      expect(requests.length).to.equal(0);
      sinon.assert.callCount(invisiblyAdapter.track, 0);
      sinon.assert.callCount(invisiblyAdapter.sendEvent, 0);
    });

    // spec to emit all events
    it('track all event without errors', function() {
      invisiblyAdapter.enableAnalytics(MOCK.config);

      events.emit(constants.EVENTS.AUCTION_INIT, MOCK.AUCTION_INIT);
      events.emit(constants.EVENTS.AUCTION_END, MOCK.AUCTION_END);
      events.emit(constants.EVENTS.BID_ADJUSTMENT, MOCK.BID_ADJUSTMENT);
      events.emit(constants.EVENTS.BID_TIMEOUT, MOCK.BID_TIMEOUT);
      events.emit(constants.EVENTS.BID_REQUESTED, MOCK.BID_REQUESTED);
      events.emit(constants.EVENTS.BID_RESPONSE, MOCK.BID_RESPONSE);
      events.emit(constants.EVENTS.NO_BID, MOCK.NO_BID);
      events.emit(constants.EVENTS.BID_WON, MOCK.BID_WON);
      events.emit(constants.EVENTS.BIDDER_DONE, MOCK.BIDDER_DONE);
      events.emit(constants.EVENTS.SET_TARGETING, MOCK.SET_TARGETING);
      events.emit(constants.EVENTS.REQUEST_BIDS, MOCK.REQUEST_BIDS);
      events.emit(constants.EVENTS.ADD_AD_UNITS, MOCK.ADD_AD_UNITS);
      events.emit(constants.EVENTS.AD_RENDER_FAILED, MOCK.AD_RENDER_FAILED);

      sinon.assert.callCount(invisiblyAdapter.track, 13);
    });
  });
});


text:
#include <memory>

#include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/delegates/xnnpack/xnnpack_delegate.h"

namespace tflite {
// Corresponding weak declaration found in lite/interpreter_builder.cc.
std::unique_ptr<TfLiteDelegate, void (*)(TfLiteDelegate*)>
AcquireXNNPACKDelegate(int num_threads) {
  auto opts = TfLiteXNNPackDelegateOptionsDefault();
  // Note that we don't want to use the thread pool for num_threads == 1.
  opts.num_threads = num_threads > 1 ? num_threads : 0;
  return std::unique_ptr<TfLiteDelegate, void (*)(TfLiteDelegate*)>(
      TfLiteXNNPackDelegateCreate(&opts), TfLiteXNNPackDelegateDelete);
}
}  // namespace tflite


text:
#ifndef TENSORFLOW_LITE_TOOLS_EVALUATION_STAGES_TFLITE_INFERENCE_STAGE_H_
#define TENSORFLOW_LITE_TOOLS_EVALUATION_STAGES_TFLITE_INFERENCE_STAGE_H_

#include <stdint.h>
#include <vector>

#include "tensorflow/core/util/stats_calculator.h"
#include "tensorflow/lite/interpreter.h"
#include "tensorflow/lite/kernels/register.h"
#include "tensorflow/lite/model.h"
#include "tensorflow/lite/tools/evaluation/evaluation_stage.h"
#include "tensorflow/lite/tools/evaluation/proto/evaluation_config.pb.h"

namespace tflite {
namespace evaluation {

struct TfLiteModelInfo {
  std::vector<const TfLiteTensor*> inputs;
  std::vector<const TfLiteTensor*> outputs;
};

// EvaluationStage to run inference using TFLite.
class TfliteInferenceStage : public EvaluationStage {
 public:
  explicit TfliteInferenceStage(const EvaluationStageConfig& config)
      : EvaluationStage(config) {}

  TfLiteStatus Init() override;

  TfLiteStatus Run() override;

  // EvaluationStageMetrics.num_runs denotes the number of inferences run.
  EvaluationStageMetrics LatestMetrics() override;

  ~TfliteInferenceStage() {}

  // Call before Run().
  // This class does not take ownership of raw_input_ptrs.
  void SetInputs(std::vector<void*>& raw_input_ptrs) {
    inputs_ = &raw_input_ptrs;
  }

  // Read-only view of a TfliteModelInfo. TfliteInferenceStage retains
  // ownership.
  // Only available after Init is done.
  const TfLiteModelInfo* GetModelInfo() const { return &model_info_; }

  // Provides a read-only view to the model's output tensor(s). Retains
  // ownership of object.
  const std::vector<void*>* GetOutputs() const { return &outputs_; }

 private:
  std::unique_ptr<FlatBufferModel> model_;
  std::unique_ptr<ops::builtin::BuiltinOpResolver> resolver_;
  std::unique_ptr<Interpreter> interpreter_;

  TfLiteModelInfo model_info_;
  std::vector<void*>* inputs_ = nullptr;
  std::vector<void*> outputs_;

  tensorflow::Stat<int64_t> latency_stats_;
};

}  // namespace evaluation
}  // namespace tflite

#endif  // TENSORFLOW_LITE_TOOLS_EVALUATION_STAGES_TFLITE_INFERENCE_STAGE_H_


text:
package com.cantalou.skin;

/**
 * 资源替换结束回调
 *
 * @author cantalou
 * @date 2016年2月29日 上午10:52:12
 */
public interface OnResourcesChangeFinishListener {
    public void onResourcesChangeFinish(boolean success);
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="VcsDirectoryMappings">
    <mapping directory="" vcs="Git" />
    <mapping directory="$PROJECT_DIR$/app/src/main/java/com/example/rubi/projectsgs" vcs="Git" />
  </component>
</project>


text:
title: Config.parentPath - detekt-api
---

[detekt-api](../../index.html) / [io.gitlab.arturbosch.detekt.api](../index.html) / [Config](index.html) / [parentPath](./parent-path.html)

# parentPath

`open val parentPath: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?`

Keeps track of which key was taken to [subConfig](sub-config.html) this configuration.
Sub-sequential calls to [subConfig](sub-config.html) are tracked with '>' as a separator.

May be null if this is the top most configuration object.


text:
<!DOCTYPE HTML>

	<meta name="viewport" content="width=device-width, initial-scale=1">

	<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" />

Simple Parenting

			Options
			Logout

Parent Profile

		First Name: Lilia

		Last Name: Kouchnir

		Age:39

		Home Number:519-897-7854

		Mobile Number: 226-471-9632

		email:lilia@gmail.com

Information about child:

		First Name: Emma

		Last Name: Kouchnir

		Grade:4

		  December 1,2015
          Marks

          Math
          A

          English
          A

          Music
          A

          Physic
          C !!!
		  Contact School

          Projects
          Done

			<input type="submit" id="edit" value="Edit" Onclick="window.location.href='editProfile.html'">

Happy to be a Parent


text:
'use strict';

/* global describe, beforeEach, afterEach, it */

import * as sinon from 'sinon';
import { assert } from 'chai';
import { spawn } from 'child_process';
import os from 'os';
import { CandyRed } from '../dist';

describe('index.js executable script', () => {
  let candyred = null;
  afterEach(() => {
    if (candyred) {
      candyred.kill('SIGKILL');
    }
  });
  it('should start Node-RED properly', function(done) {
    const env = Object.create(process.env);
    env.NODE_PALETTE_ENABLED = 'true';
    env.HOME = __dirname;
    candyred = spawn('node', [`${__dirname}/../dist/index.js`], { env });
    candyred.stdout.on('data', data => {
      const line = data.toString();
      if (line.indexOf('[info] Started flows') >= 0) {
        candyred.kill('SIGKILL');
      } else {
        console.log(line.trim());
      }
    });
    candyred.stderr.on('data', data => {
      const line = data.toString();
      console.log(`[stderr] ${line.trim()}`);
    });
    candyred.on('exit', code => {
      console.log(`Exit Code => ${code}`);
      assert.isNull(code);
      done();
    });
    this.timeout(30000);
  });
});

describe('CandyRed', () => {
  let sandbox;
  let cr = new CandyRed();

  beforeEach(() => {
    sandbox = sinon.createSandbox();
  });

  afterEach(() => {
    sandbox.restore();
  });

  describe('#_createCandyRedEditorTheme()', () => {
    it('should return titles containing hostname', () => {
      let theme = cr._createCandyRedEditorTheme();
      assert.equal('CANDY RED@' + os.hostname(), theme.page.title);
      assert.equal(' ** ' + os.hostname() + ' **', theme.header.title);
    });
    it('should return titles containing deviceId as well as hostname', () => {
      let theme = cr._createCandyRedEditorTheme('my:deviceId');
      assert.equal('CANDY RED@my:deviceId', theme.page.title);
      assert.equal(
        ' ** ' + os.hostname() + ' (my:deviceId) **',
        theme.header.title
      );
    });
  });

  describe('#_inspectBoardStatus()', () => {
    it('should not return any undefined values', done => {
      cr._inspectBoardStatus(__dirname + '/../package.json')
        .then(versions => {
          assert.isDefined(versions.candyRedv);
          done();
        })
        .catch(err => {
          done(err);
        });
    });
  });
});


text:
from django.contrib.auth.models import User
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import generics, mixins
from . import serializers

class FlagGameView(APIView):

    def get(self, request):
        return Response(serializers.flag_data())

class UserLogListView(mixins.RetrieveModelMixin, generics.GenericAPIView):
    queryset = User.objects.all()
    serializer_class = serializers.TravelUserLogSerializer
    lookup_field = 'username'

    def get(self, request, *args, **kwargs):
        return self.retrieve(request, *args, **kwargs)


text:
/**
 * LogEvent class
 */
'use strict';

module.exports = function LogEvent(context, caller, message) {

    this.name = caller.name;
    //this.location = caller.caller ? caller.caller.name : context.callee.caller.name;
    this.location = '';  // Damn you, strict mode!
    this.datetime = new Date();
    this.message = message;
    this.data = null;
    if (typeof message === 'string') {
        this.message = "";
        this.data = message;
    }
};


text:
ACCEPTED

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
null

#### Original name
Didymocarpus geitleri A. Weber

### Remarks
null


text:
require 'active_support/log_subscriber'

module ActiveRecord
  module LockingExtensions
    class LogSubscriber < ActiveSupport::LogSubscriber
      def deadlock_restart(event)
        info 'Deadlock causing restart'
        debug event[:exception]
      end

      def deadlock_retry(event)
        info 'Deadlock causing retry'
        debug event[:exception]
      end

      def duplicate_ignore(event)
        info 'Duplicate ignored'
        debug event[:exception]
      end

      def logger
        ActiveRecord::Base.logger
      end
    end
  end
end

ActiveRecord::LockingExtensions::LogSubscriber.attach_to :double_entry


text:
import Resolver from './util/resolver';
import { ROOT_ELEMENT } from './util/config';

const App = Ember.Application.create({
	rootElement: ROOT_ELEMENT,
	Resolver
});

import routeMap from './router';
App.Router.map(routeMap);

export default App;


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

 <meta http-equiv="Content-Type" content="text/html; charset=utf8" />
 <title>dogec0in webchat</title>

 <input type="button" style="width: 150px" value="Gambling Channel" onclick="joinchan('dogec0in-gamble')">
 <input type="button" style="width: 150px" value="Tip Fun Channel" onclick="joinchan('dogec0in-tip')">
 <input type="button" style="width: 150px" value="Trading Channel" onclick="joinchan('dogec0in-trade')">
 <input type="button" style="width: 150px" value="Moonopoly Channel" onclick="joinchan('dogec0in-moonopoly')">