text:
from django.core.urlresolvers import reverse

# lfs imports
from lfs.core.signals import order_submitted
from lfs.criteria import utils as criteria_utils
from lfs.customer import utils as customer_utils
from lfs.payment.models import PaymentMethod
from lfs.payment.settings import PM_ORDER_IMMEDIATELY
from lfs.payment.settings import PM_ORDER_ACCEPTED

# Load logger
import logging
logger = logging.getLogger(__name__)

def update_to_valid_payment_method(request, customer, save=False):
    """
    After this method has been called the given customer has a valid payment
    method.
    """
    valid_sms = get_valid_payment_methods(request)

    if customer.selected_payment_method not in valid_sms:
        customer.selected_payment_method = get_default_payment_method(request)
        if save:
            customer.save()

def get_valid_payment_methods(request):
    """
    Returns all valid payment methods (aka. selectable) for given request as
    list.
    """
    result = []
    for pm in PaymentMethod.objects.filter(active=True):
        if pm.is_valid(request):
            result.append(pm)
    return result

def get_default_payment_method(request):
    """
    Returns the default payment method for given request.
    """
    active_payment_methods = PaymentMethod.objects.filter(active=True)
    return criteria_utils.get_first_valid(request, active_payment_methods)

def get_selected_payment_method(request):
    """
    Returns the selected payment method for given request. This could either
    be an explicitly selected payment method of the current user or the default
    payment method.
    """
    customer = customer_utils.get_customer(request)
    if customer and customer.selected_payment_method:
        return customer.selected_payment_method
    else:
        return get_default_payment_method(request)

def get_payment_costs(request, payment_method):
    """
    Returns the payment price and tax for the given request.
    """
    if payment_method is None:
        return {
            "price": 0.0,
            "tax": 0.0
        }

    try:
        tax_rate = payment_method.tax.rate
    except AttributeError:
        tax_rate = 0.0

    price = criteria_utils.get_first_valid(request,
        payment_method.prices.all())
    # TODO: this assumes that payment price is given as gross price, we have to add payment processor here
    if price is None:
        price = payment_method.price
        tax = (tax_rate / (tax_rate + 100)) * price

        return {
            "price": price,
            "tax": tax
        }
    else:
        tax = (tax_rate / (tax_rate + 100)) * price.price

        return {
            "price": price.price,
            "tax": tax
        }

def process_payment(request):
    """
    Processes the payment depending on the selected payment method. Returns a
    dictionary with the success state, the next url and a optional error
    message.
    """
    from lfs.core.utils import import_symbol
    from lfs.order.utils import add_order
    from lfs.cart.utils import get_cart
    payment_method = get_selected_payment_method(request)

    if payment_method.module:
        payment_class = import_symbol(payment_method.module)
        payment_instance = payment_class(request)

        create_order_time = payment_instance.get_create_order_time()
        if create_order_time == PM_ORDER_IMMEDIATELY:
            order = add_order(request)
            if order is None:
                return {'accepted': True, 'next_url': reverse("lfs_shop_view")}
            payment_instance.order = order
            result = payment_instance.process()
            if result.get("order_state"):
                order.state = result.get("order_state")
                order.save()
            order_submitted.send(sender=order, request=request)
        else:
            cart = get_cart(request)
            payment_instance.cart = cart
            result = payment_instance.process()

        if result["accepted"]:
            if create_order_time == PM_ORDER_ACCEPTED:
                order = add_order(request)
                if result.get("order_state"):
                    order.state = result.get("order_state")
                    order.save()
                order_submitted.send(sender=order, request=request)
        return result
    else:
        order = add_order(request)
        order_submitted.send(sender=order, request=request)
        return {
            "accepted": True,
            "next_url": reverse("lfs_thank_you"),
        }

# DEPRECATED 0.8
def get_pay_link(request, payment_method, order):
    """
    Creates a pay link for the passed payment_method and order.

    This can be used to display the link within the order mail and/or the
    thank you page after a customer has payed.
    """
    from lfs.core.utils import import_symbol
    logger.info("Decprecated: lfs.payment.utils.get_pay_link: this function is deprecated. Please use Order.get_pay_link instead.")

    if payment_method.module:
        payment_class = import_symbol(payment_method.module)
        payment_instance = payment_class(request=request, order=order)
        try:
            return payment_instance.get_pay_link()
        except AttributeError:
            return ""
    else:
        return ""


text:
using System;
using System.Collections.Generic;
using System.Text;

namespace NetSort.UnitTests.EF
{
    public class EF_Score
    {
        [Sortable("value")]
        public int Value { get; set; }
    }
}

redpajama_set_name: RedPajamaGithub


text:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SolidWallSide1 : SolidWall_1 {

	private GameObject hmd_user;

	void Start () {
		crossedWall = false;
		inWall = false;
		//checkCrossBack = false;
		wallsEntered = new List<BoxCollider> ();
		hmd_user = transform.parent.gameObject;
	}

	void Update () {
		/*if (checkCrossBack == true) {
			if (IsInCorridor (transform.TransformPoint (GetComponent<BoxCollider> ().center)) == true) {
				ShowCell (hmd_user.GetComponent<HMD_user>().currentCell.transform);
				hmd_user.GetComponent<SolidWallFront>().ShowOutOfBoundsObjects(false);
				//print ("side in");
				crossedWall = false;
				//inWall = false;
				checkCrossBack = false;
			}
		}*/
		//check whether still in wall
		wallsEntered = CheckStayingInWall (wallsEntered);
		if (wallsEntered.Count == 0)
			inWall = false;
	}

	void OnTriggerEnter(Collider collider){
		if (collider.tag == "Wall") {
			inWall = true;
			wallsEntered.Add (collider as BoxCollider);
		}

		/*if (collider.tag == "CorridorBox"){
			//check whether coming back in corridor
			if (crossedWall == true && collider.gameObject == currentCorridor) {
				checkCrossBack = true;
			}
			//entering next corridor
			else if (crossedWall == false && inWall == false) {
				//currentCorridor = collider.gameObject;
			}
		}*/
	}

	void OnTriggerExit(Collider collider){
		//exiting the corridor
		if (collider.tag == "CorridorBox" && inWall == true
			&& crossedWall == false && collider.gameObject == currentCorridor) {
			ShowOnlyOneCorridor (hmd_user.GetComponent<HMD_user>().currentCell.transform);
			hmd_user.GetComponent<SolidWallFront1>().ShowOutOfBoundsObjects(true);
			hmd_user.GetComponent<HMD_user> ().trespassed (true);

			crossedWall = true;
			//checkCrossBack = false;
			//print ("side out");
		}
		//exiting wall?
		if (collider.tag == "Wall") {
			//if(IsInCorridor(transform.TransformPoint(GetComponent<BoxCollider>().center)) == true){
				inWall = false;
				wallsEntered.Remove (collider as BoxCollider);
			//}
		}
	}
}


text:
package mcjty.wailasupport;

import mcjty.container.GenericBlock;
import mcp.mobius.waila.api.IWailaConfigHandler;
import mcp.mobius.waila.api.IWailaDataAccessor;
import mcp.mobius.waila.api.IWailaDataProvider;
import mcp.mobius.waila.api.IWailaRegistrar;
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;

import java.util.List;

public class WailaCompatibility implements IWailaDataProvider {

    public static final WailaCompatibility INSTANCE = new WailaCompatibility();

    private WailaCompatibility() {}

    public static void load(IWailaRegistrar registrar) {
        registrar.registerHeadProvider(INSTANCE, GenericBlock.class);
        registrar.registerBodyProvider(INSTANCE, GenericBlock.class);
        registrar.registerTailProvider(INSTANCE, GenericBlock.class);
    }

    @Override
    public NBTTagCompound getNBTData(EntityPlayerMP player, TileEntity te, NBTTagCompound tag, World world, int x, int y, int z) {
        return tag;
    }

    @Override
    public ItemStack getWailaStack(IWailaDataAccessor accessor, IWailaConfigHandler config) {
        return null;
    }

    @Override
    public List<String> getWailaHead(ItemStack itemStack, List<String> currenttip, IWailaDataAccessor accessor, IWailaConfigHandler config) {
        return currenttip;
    }

    @Override
    public List<String> getWailaBody(ItemStack itemStack, List<String> currenttip, IWailaDataAccessor accessor, IWailaConfigHandler config) {
        Block block = accessor.getBlock();
        if (block instanceof WailaInfoProvider) {
            return ((WailaInfoProvider) block).getWailaBody(itemStack, currenttip, accessor, config);
        }
        return currenttip;
    }

    @Override
    public List<String> getWailaTail(ItemStack itemStack, List<String> currenttip, IWailaDataAccessor accessor, IWailaConfigHandler config) {
        return currenttip;
    }
}


text:
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Dicom.IO.Buffer;

namespace Dicom.Imaging {
	public enum DicomOverlayType {
		/// Graphic overlay
		Graphics,

		/// Region of Interest
		ROI
	}

	///
	/// DICOM image overlay class
	///
	public class DicomOverlayData {
		#region Private Members
		private ushort _group;

		private int _rows;
		private int _columns;
		private DicomOverlayType _type;
		private int _originX;
		private int _originY;
		private int _bitsAllocated;
		private int _bitPosition;
		private IByteBuffer _data;

		private string _description;
		private string _subtype;
		private string _label;

		private int _frames;
		private int _frameOrigin;
		#endregion

		#region Public Constructors
		///
		/// Initializes overlay from DICOM dataset and overlay group.
		///
		/// <param name="ds">Dataset</param>
		/// <param name="group">Overlay group</param>
		public DicomOverlayData(DicomDataset ds, ushort group) {
			_group = group;
			Load(ds);
		}
		#endregion

		#region Public Properties
		///
		/// Overlay group
		///
		public ushort Group {
			get { return _group; }
		}

		///
		/// Number of rows in overlay
		///
		public int Rows {
			get { return _rows; }
		}

		///
		/// Number of columns in overlay
		///
		public int Columns {
			get { return _columns; }
		}

		///
		/// Overlay type
		///
		public DicomOverlayType Type {
			get { return _type; }
		}

		///
		/// Position of the first column of an overlay
		///
		public int OriginX {
			get { return _originX; }
		}

		///
		/// Position of the first row of an overlay
		///
		public int OriginY {
			get { return _originY; }
		}

		///
		/// Number of bits allocated in overlay data
		///
		public int BitsAllocated {
			get { return _bitsAllocated; }
		}

		///
		/// Bit position of embedded overlay
		///
		public int BitPosition {
			get { return _bitPosition; }
		}

		///
		/// Overlay data
		///
		public IByteBuffer Data {
			get { return _data; }
		}

		///
		/// Description of overlay
		///
		public string Description {
			get { return _description; }
		}

		///
		/// Subtype
		///
		public string Subtype {
			get { return _subtype; }
		}

		///
		/// Overlay label
		///
		public string Label {
			get { return _label; }
		}

		///
		/// Number of frames
		///
		public int NumberOfFrames {
			get { return _frames; }
		}

		///
		/// First frame of overlay
		///
		public int OriginFrame {
			get { return _frameOrigin; }
		}
		#endregion

		#region Public Members
		///
		/// Gets the overlay data.
		///
		/// <param name="bg">Background color</param>
		/// <param name="fg">Foreground color</param>
		/// <returns>Overlay data</returns>
		public int[] GetOverlayDataS32(int bg, int fg) {
			int[] overlay = new int[Rows * Columns];
			BitArray bits = new BitArray(_data.Data);
			if (bits.Length < overlay.Length)
				throw new DicomDataException("Invalid overlay length: " + bits.Length);
			for (int i = 0, c = overlay.Length; i < c; i++) {
				if (bits.Get(i))
					overlay[i] = fg;
				else
					overlay[i] = bg;
			}
			return overlay;
		}

		///
		/// Gets all overlays in a DICOM dataset.
		///
		/// <param name="ds">Dataset</param>
		/// <returns>Array of overlays</returns>
		public static DicomOverlayData[] FromDataset(DicomDataset ds) {
			var groups = new List<ushort>();
			groups.AddRange(ds.Where(x => x.Tag.Group >= 0x6000 && x.Tag.Group <= 0x60FF && x.Tag.Element == 0x0010).Select(x => x.Tag.Group));
			var overlays = new List<DicomOverlayData>();
			foreach (var group in groups) {
				// ensure that 6000 group is actually an overlay group
				if (ds.Get<DicomElement>(new DicomTag(group, 0x0010)).ValueRepresentation != DicomVR.US)
					continue;

				try {
					DicomOverlayData overlay = new DicomOverlayData(ds, group);
					overlays.Add(overlay);
				} catch {
					// bail out if not an overlay group
				}
			}
			return overlays.ToArray();
		}
		#endregion

		#region Private Methods
		private DicomTag OverlayTag(DicomTag tag) {
			return new DicomTag(_group, tag.Element);
		}

		private void Load(DicomDataset ds) {
			_rows = ds.Get<ushort>(OverlayTag(DicomTag.OverlayRows));
			_columns = ds.Get<ushort>(OverlayTag(DicomTag.OverlayColumns));

			var type = ds.Get<string>(OverlayTag(DicomTag.OverlayType), "Unknown");
			if (type.StartsWith("R"))
				_type = DicomOverlayType.ROI;
			else
				_type = DicomOverlayType.Graphics;

			DicomTag tag = OverlayTag(DicomTag.OverlayOrigin);
			if (ds.Contains(tag)) {
				_originX = ds.Get<short>(tag, 0, 1);
				_originY = ds.Get<short>(tag, 1, 1);
			}

			_bitsAllocated = ds.Get<ushort>(OverlayTag(DicomTag.OverlayBitsAllocated), 0, 1);
			_bitPosition = ds.Get<ushort>(OverlayTag(DicomTag.OverlayBitPosition), 0, 0);

			tag = OverlayTag(DicomTag.OverlayData);
			if (ds.Contains(tag)) {
				var elem = ds.FirstOrDefault(x => x.Tag == tag) as DicomElement;
				_data = elem.Buffer;
			} else {
				// overlay embedded in high bits of pixel data
				if (ds.InternalTransferSyntax.IsEncapsulated)
					throw new DicomImagingException("Attempted to extract embedded overlay from compressed pixel data. Decompress pixel data before attempting this operation.");

				var pixels = DicomPixelData.Create(ds);

				// (1,1) indicates top left pixel of image
				int ox = Math.Max(0, _originX - 1);
				int oy = Math.Max(0, _originY - 1);
				int ow = Math.Min(_rows, pixels.Width - _rows - ox);
				int oh = Math.Min(_columns, pixels.Height - _columns - oy);

				var frame = pixels.GetFrame(0);

				// calculate length of output buffer
				var count = (_rows * _columns) / 8;
				if (((_rows * _columns) % 8) != 0)
					count++;
				if ((count & 1) != 0)
					count++;

				var bytes = new byte[count];
				var bits = new BitArray(bytes);
				int mask = 1 << _bitPosition;

				if (pixels.BitsAllocated == 8) {
					var data = ByteBufferEnumerator<byte>.Create(frame).ToArray();

					for (int y = oy; y < oh; y++) {
						int n = (y * pixels.Width) + ox;
						int i = (y - oy) * _columns;
						for (int x = ox; x < ow; x++) {
							if ((data[n] & mask) != 0)
								bits[i] = true;
							n++;
							i++;
						}
					}
				} else if (pixels.BitsAllocated == 16) {
					// we don't really care if the pixel data is signed or not
					var data = ByteBufferEnumerator<ushort>.Create(frame).ToArray();

					for (int y = oy; y < oh; y++) {
						int n = (y * pixels.Width) + ox;
						int i = (y - oy) * _columns;
						for (int x = ox; x < ow; x++) {
							if ((data[n] & mask) != 0)
								bits[i] = true;
							n++;
							i++;
						}
					}
				} else {
					throw new DicomImagingException("Unable to extract embedded overlay from pixel data with bits stored greater than 16.");
				}

				_data = new MemoryByteBuffer(bytes);
			}

			_description = ds.Get<string>(OverlayTag(DicomTag.OverlayDescription), String.Empty);
			_subtype = ds.Get<string>(OverlayTag(DicomTag.OverlaySubtype), String.Empty);
			_label = ds.Get<string>(OverlayTag(DicomTag.OverlayLabel), String.Empty);

			_frames = ds.Get<int>(OverlayTag(DicomTag.NumberOfFramesInOverlay), 0, 1);
			_frameOrigin = ds.Get<ushort>(OverlayTag(DicomTag.ImageFrameOrigin), 0, 1);

			//TODO: include ROI
		}
		#endregion
	}
}


text:
#include <znc/Translation.h>
#include <znc/FileUtils.h>

#ifdef HAVE_I18N
#include <boost/locale.hpp>
#endif

namespace {
std::map<CString, CTranslationInfo> FillTranslations() {
    std::map<CString, CTranslationInfo> mTranslations;
    CDir Dir;
    Dir.Fill(_DATADIR_ "/translations");
    for (CFile* pFile : Dir) {
        CString sName = pFile->GetShortName();
        CTranslationInfo& translation = mTranslations[sName];
        MCString msData;
        // TODO: make the file format more sensible than this
        msData.ReadFromDisk(pFile->GetLongName());
        translation.sSelfName = msData["SelfName"];
        // TODO: right-to-left support
    }
    return mTranslations;
}
}  // namespace

std::map<CString, CTranslationInfo> CTranslationInfo::GetTranslations() {
    static std::map<CString, CTranslationInfo> mTranslations =
        FillTranslations();
    return mTranslations;
}

CTranslation& CTranslation::Get() {
    static CTranslation translation;
    return translation;
}

CString CTranslation::Singular(const CString& sDomain, const CString& sContext,
                               const CString& sEnglish) {
#ifdef HAVE_I18N
    const std::locale& loc = LoadTranslation(sDomain);
    return boost::locale::translate(sContext, sEnglish).str(loc);
#else
    return sEnglish;
#endif
}
CString CTranslation::Plural(const CString& sDomain, const CString& sContext,
                             const CString& sEnglish, const CString& sEnglishes,
                             int iNum) {
#ifdef HAVE_I18N
    const std::locale& loc = LoadTranslation(sDomain);
    return boost::locale::translate(sContext, sEnglish, sEnglishes, iNum)
        .str(loc);
#else
    if (iNum == 1) {
        return sEnglish;
    } else {
        return sEnglishes;
    }
#endif
}

const std::locale& CTranslation::LoadTranslation(const CString& sDomain) {
    CString sLanguage = m_sLanguageStack.empty() ? "" : m_sLanguageStack.back();
    sLanguage.Replace("-", "_");
    if (sLanguage.empty()) sLanguage = "C";
#ifdef HAVE_I18N
    // Not using built-in support for multiple domains in single std::locale
    // via overloaded call to .str() because we need to be able to reload
    // translations from disk independently when a module gets updated
    auto& domain = m_Translations[sDomain];
    auto lang_it = domain.find(sLanguage);
    if (lang_it == domain.end()) {
        boost::locale::generator gen;
        gen.add_messages_path(LOCALE_DIR);
        gen.add_messages_domain(sDomain);
        std::tie(lang_it, std::ignore) =
            domain.emplace(sLanguage, gen(sLanguage + ".UTF-8"));
    }
    return lang_it->second;
#else
    // dummy, it's not used anyway
    return std::locale::classic();
#endif
}

void CTranslation::PushLanguage(const CString& sLanguage) {
    m_sLanguageStack.push_back(sLanguage);
}
void CTranslation::PopLanguage() { m_sLanguageStack.pop_back(); }

void CTranslation::NewReference(const CString& sDomain) {
    m_miReferences[sDomain]++;
}
void CTranslation::DelReference(const CString& sDomain) {
    if (!--m_miReferences[sDomain]) {
        m_Translations.erase(sDomain);
    }
}

CString CCoreTranslationMixin::t_s(const CString& sEnglish,
                                   const CString& sContext) {
    return CTranslation::Get().Singular("znc", sContext, sEnglish);
}

CInlineFormatMessage CCoreTranslationMixin::t_f(const CString& sEnglish,
                                                const CString& sContext) {
    return CInlineFormatMessage(t_s(sEnglish, sContext));
}

CInlineFormatMessage CCoreTranslationMixin::t_p(const CString& sEnglish,
                                                const CString& sEnglishes,
                                                int iNum,
                                                const CString& sContext) {
    return CInlineFormatMessage(CTranslation::Get().Plural(
        "znc", sContext, sEnglish, sEnglishes, iNum));
}

CDelayedTranslation CCoreTranslationMixin::t_d(const CString& sEnglish,
                                               const CString& sContext) {
    return CDelayedTranslation("znc", sContext, sEnglish);
}

CLanguageScope::CLanguageScope(const CString& sLanguage) {
    CTranslation::Get().PushLanguage(sLanguage);
}
CLanguageScope::~CLanguageScope() { CTranslation::Get().PopLanguage(); }

CString CDelayedTranslation::Resolve() const {
    return CTranslation::Get().Singular(m_sDomain, m_sContext, m_sEnglish);
}

CTranslationDomainRefHolder::CTranslationDomainRefHolder(const CString& sDomain)
    : m_sDomain(sDomain) {
    CTranslation::Get().NewReference(sDomain);
}
CTranslationDomainRefHolder::~CTranslationDomainRefHolder() {
    CTranslation::Get().DelReference(m_sDomain);
}


text:
<?php

namespace Etu\Core\ApiBundle\Entity;

use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Etu\Core\UserBundle\Entity\User;

/**
 * OauthAuthorization.
 *
 * @ORM\Table(name="oauth_authorizations")
 * @ORM\Entity
 */
class OauthAuthorization
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var OauthClient
     *
     * @ORM\ManyToOne(targetEntity="OauthClient")
     * @ORM\JoinColumn()
     */
    private $client;

    /**
     * @var User
     *
     * @ORM\ManyToOne(targetEntity="\Etu\Core\UserBundle\Entity\User")
     * @ORM\JoinColumn()
     */
    private $user;

    /**
     * @var \DateTime
     *
     * @ORM\Column(type="datetime", nullable=false)
     */
    private $createdAt;

    /**
     * @var OauthScope[]
     *
     * @ORM\ManyToMany(targetEntity="OauthScope")
     * @ORM\JoinTable(name="oauth_authorizations_scopes")
     */
    private $scopes;

    /**
     * Constructor.
     *
     * @param OauthClient      $client
     * @param User             $user
     * @param array|Collection $scopes
     */
    public function __construct(OauthClient $client, User $user, $scopes)
    {
        $this->client = $client;
        $this->user = $user;
        $this->createdAt = new \DateTime();
        $this->scopes = $scopes;
    }

    /**
     * @param OauthAuthorizationCode $code
     *
     * @return OauthAuthorization
     */
    public static function createFromAuthorizationCode(OauthAuthorizationCode $code)
    {
        return new self($code->getClient(), $code->getUser(), $code->getScopes());
    }

    /**
     * Get id.
     *
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set createdAt.
     *
     * @param \DateTime $createdAt
     *
     * @return OauthAuthorization
     */
    public function setCreatedAt($createdAt)
    {
        $this->createdAt = $createdAt;

        return $this;
    }

    /**
     * Get createdAt.
     *
     * @return \DateTime
     */
    public function getCreatedAt()
    {
        return $this->createdAt;
    }

    /**
     * Set client.
     *
     * @param OauthClient $client
     *
     * @return OauthAuthorization
     */
    public function setClient(OauthClient $client = null)
    {
        $this->client = $client;

        return $this;
    }

    /**
     * Get client.
     *
     * @return OauthClient
     */
    public function getClient()
    {
        return $this->client;
    }

    /**
     * Set user.
     *
     * @param User $user
     *
     * @return OauthAuthorization
     */
    public function setUser(User $user = null)
    {
        $this->user = $user;

        return $this;
    }

    /**
     * Get user.
     *
     * @return User
     */
    public function getUser()
    {
        return $this->user;
    }

    /**
     * Add scopes.
     *
     * @param OauthScope $scopes
     *
     * @return OauthAuthorization
     */
    public function addScope(OauthScope $scopes)
    {
        $this->scopes[] = $scopes;

        return $this;
    }

    /**
     * Remove scopes.
     *
     * @param OauthScope $scopes
     */
    public function removeScope(OauthScope $scopes)
    {
        $this->scopes->removeElement($scopes);
    }

    /**
     * Get scopes.
     *
     * @return \Doctrine\Common\Collections\Collection|OauthScope[]
     */
    public function getScopes()
    {
        return $this->scopes;
    }
}


text:
package org.apache.solr.common.params;

/**
 *
 *
 **/
public interface EventParams {
  /** Event param for things like newSearcher, firstSearcher**/
  public static final String EVENT = "event";
  public static final String NEW_SEARCHER = "newSearcher";
  public static final String FIRST_SEARCHER = "firstSearcher";
}


text:
package cool.arch.monadicexceptions;

import java.util.function.DoubleToLongFunction;

/**
 *
 */
@FunctionalInterface
public interface ThrowableDoubleToLongFunction {

	/**
	 * @param value
	 * @return
	 * @throws Exception
	 */
	long applyAsLong(double value) throws Exception;

	/**
	 * @param function
	 * @return
	 */
	public static DoubleToLongFunction asDoubleToLongFunction(final ThrowableDoubleToLongFunction function) {
		return t -> {
			long result;

			try {
				result = function.applyAsLong(t);
			} catch (Exception e) {
				throw new MonadicException(e);
			}

			return result;
		};
	}
}


text:
var lib = require('./lib');
lib.callExternalAPI('1', function(data){
        console.log('data',data)
      });


text:
<!doctype html>

	<title> Lotus Group | On-Demand Design and Consulting Services</title>
	<meta charset="utf-8" />
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />

	<meta name="description" content="State College based consulting firm in Website Design and Mobile App developement. We also provide consulting on Engineering and Data Mining Projects.">
	<meta name="keywords" content="state college,Penn State, Consulting, Website Design, Data, Engineering, Parallel Computing, Lotus Consulting, lotus web consulting">
	<meta name="author" content="Hoofar Pourzand">
	<meta name="application-name" content="lotus consulting">
	<link href="https://lotustech.io" rel="canonical">
	<link rel="icon" type="image/png" href="img/favicon.ico">

	<link rel="stylesheet" type="text/css" href="assets/css/styles-3-3-6.css" />
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">

	<link rel="stylesheet" type="text/css" href="styles.css" />

<meta property="og:title" content="Lotus Industries and Group Consulting" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://lotustech.io/" />
<meta property="og:image" content="https://lotustech.io/img/lotus-web-consulting.jpg" />
<meta property="og:description" content="State College based Consulting Firm in Web Developement. We also focus on Parallel Computing and Engineering projects." />
<meta property="og:site_name" content="Lotus Industries and Consulting Group" />
<meta property="fb:app_id" content="413978035393689" />
<meta property="admins" content="" />
<meta property="fb:creator_uid" content="hoofar.pourzand" />
<meta property="fb:link" content="https://www.facebook.com/LotusICG" />

<meta name="twitter:card" content="State College, PA based Web Design and Developement Consulting Firm. ">
<meta name="twitter:site" content="hoofar.pourzand">
<meta name="twitter:title" content="Lotus Industries and Consulting Group">
<meta name="twitter:description" content="Web Design and Developement. System Adminstrator services. Consulting services.">
<meta name="twitter:creator" content="@hoofar.pourzand">

<meta name="twitter:image" content="https://lotustech.io/img/lotus-web-consulting.jpg" />

				lotus group

   our focus

      team

 join us

 testimonials

 contact us

ON-DEMAND

DESIGN &

 SERVICES

 OUR FOCUS

	 First 30 minute Project Review is Free.

 We focus on Data Mining and Parallel Computing Technologies. That includes Parallel R, Python scripting and Networking.

Data Visualization and parallel Scientific Computing is a bit narrow for State College! We also do small projects on a flat fee basis.
		  	Python and R are our favorites. We also accept projects in C, Database Prototyping and few Engineering scripting languages like Matlab.

Design and Developement of Local brands. If you are in State College, from Photoshoot to logo-design to Web launch and CRM we like to help you.
		  	 If it's in Happy Valley we want to be a part of it!

 team

Hoofar P.

CEO, Founder

Google Scholar, Penn State ACI

Emil I.

iOS Developer, Associate

iOS Engineer

Alexandr. T.

Android Developer, Associate

Android Developer

Stephen Zheng.

Office Business Assistant, Alumni

PSU Finance Grad

Sepideh O.

Designer, Associate

NY Univ. Grad

Could be You!

 Designer/Developer/Engineer, Summer Intern

 join us

	<form method="POST">

					<input type="text"  class="form-control" placeholder="Name"  name="nameinput" />

					<input type="email"  class="form-control" placeholder="Your PSU email..." name="emailinput" />

				<textarea name="textarea"  name="mailbody" class="form-control" placeholder="Anything flies! Just say it..."></textarea>

				I'm a
				 <select class="form-control" >
					<option> Freshman</option>
					<option value="1">Junior </option>
					<option value="2">Others </option>
				</select>
				<select class="form-control" >
					<option> Engineering PSU Student</option>
					<option value="1">Design Major </option>
					<option value="2">Mathematics Major </option>
					<option value="3">Others</option>
				</select>
	<input type="submit" value="Send" class="btn btn-success btn-lg />

	</form>

 testimonials

Particle Swarm Optimization Project, Matlab

When we run the code [PSO, after your modification and optimization], the code finds the solution in the mid-air and grabs it like
											the movie [Martian] when they rescued Matt Damon in the Martian.

 Saad M Al-Dalimi
 Selangor, Malaysia

 LET'S GET IN TOUCH

 You have a project that you like us to have a look at?

	Email us or Call us! We'll get back to you in a day!

		© 2013-2016 | State College | Phone: (814) 237-0074


text:
 API

navigator.device.capture

captureAudio( )
captureImage( )
captureVideo( )

<video id="capturedVideo" class="capturedMedia" width="640" height="480" controls></video>
<audio id="capturedAudio" class="capturedMedia" style="width:400px"></audio>


text:
package org.spongepowered.api.event.block.tileentity;

import org.spongepowered.api.block.tileentity.carrier.Furnace;
import org.spongepowered.api.event.Cancellable;
import org.spongepowered.api.event.cause.CauseTracked;
import org.spongepowered.api.event.inventory.AffectItemStackEvent;
import org.spongepowered.api.item.inventory.ItemStackSnapshot;

import java.util.List;

public interface SmeltEvent extends TargetTileEntityEvent, CauseTracked {

    @Override
    Furnace getTargetTile();

    /**
     * @return The ingredient
     */
    ItemStackSnapshot getFuel();

    interface Start extends SmeltEvent, AffectItemStackEvent, Cancellable {}

    interface ConsumeFuel extends SmeltEvent, AffectItemStackEvent {}

    interface Tick extends SmeltEvent, AffectItemStackEvent, Cancellable {}

    interface Interrupt extends SmeltEvent {
        /**
         * Gets an immutable {@link List} of {@link ItemStackSnapshot}s that are the result
         * of the smelt.
         * @return The smelt items
         */
        List<ItemStackSnapshot> getSmeltedItems();
    }

    interface Finish extends SmeltEvent {
        /**
         * Gets an immutable {@link List} of {@link ItemStackSnapshot}s that are the result
         * of the smelt.
         * @return The smelt items
         */
        List<ItemStackSnapshot> getSmeltedItems();
    }
}


text:
<?php _e( 'Change Avatar', 'commentpress-core' ) ?>

<?php do_action( 'bp_before_profile_avatar_upload_content' ) ?>

<?php if ( !(int)bp_get_option( 'bp-disable-avatar-uploads' ) ) : ?>

<?php _e( 'Your avatar will be used on your profile and throughout the site. If there is a Gravatar associated with your account email we will use that, or you can upload an image from your computer.', 'commentpress-core') ?>

	<form action="" method="post" id="avatar-upload-form" class="standard-form" enctype="multipart/form-data">

		<?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?>

			<?php wp_nonce_field( 'bp_avatar_upload' ) ?>

<?php _e( 'Click below to select a JPG, GIF or PNG format photo from your computer and then click \'Upload Image\' to proceed.', 'commentpress-core' ) ?>

				<input type="file" name="file" id="file" />
				<input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'commentpress-core' ) ?>" />
				<input type="hidden" name="action" id="action" value="bp_avatar_upload" />

			<?php if ( bp_get_user_has_avatar() ) : ?>

<?php _e( "If you'd like to delete your current avatar but not upload a new one, please use the delete avatar button.", 'commentpress-core' ) ?>

<a class="button edit" href="<?php bp_avatar_delete_link() ?>" title="<?php _e( 'Delete Avatar', 'commentpress-core' ) ?>"><?php _e( 'Delete My Avatar', 'commentpress-core' ) ?>

			<?php endif; ?>

		<?php endif; ?>

		<?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?>

<?php _e( 'Crop Your New Avatar', 'commentpress-core' ) ?>

			<img src="<?php bp_avatar_to_crop() ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'commentpress-core' ) ?>" />

				<img src="<?php bp_avatar_to_crop() ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'commentpress-core' ) ?>" />

			<input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'commentpress-core' ) ?>" />

			<input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src() ?>" />
			<input type="hidden" id="x" name="x" />
			<input type="hidden" id="y" name="y" />
			<input type="hidden" id="w" name="w" />
			<input type="hidden" id="h" name="h" />

			<?php wp_nonce_field( 'bp_avatar_cropstore' ) ?>

		<?php endif; ?>

	</form>

<?php else : ?>

<?php _e( 'Your avatar will be used on your profile and throughout the site. To change your avatar, please create an account with Gravatar using the same email address as you used to register with this site.', 'commentpress-core' ) ?>

<?php endif; ?>

<?php do_action( 'bp_after_profile_avatar_upload_content' ) ?>


text:
function fileTitle(path)
	-- Find the name of the file without extension (that would be in Lua)
	local strVar
	local intVar1 = -1
	for intVar = #path,1,-1 do
		if string.sub(path, intVar, intVar) == "." then
	    	intVar1 = intVar
		end
		if string.sub(path, intVar, intVar) == "\\" or string.sub(path, intVar, intVar) == "/" then
	    	strVar = string.sub(path, intVar + 1, intVar1-1)
	    	break
		end
	end
	if not strVar then
		if intVar1 ~= -1 then
			strVar = path:sub(1,intVar1-1)
		else
			strVar = path
		end
	end
	return strVar
end

local luaCode = {}
local args = {...}
local configFile = args[1] or "Config.lua"
print("Many2One version 1.14.09.19"
print("Usage: lua many2one.lua [configFile]")
print("For usage and help see:  http://milindsweb.amved.com/Many2One.html")
print(" ")
local f=io.open(configFile,"r")
if f~=nil then
	f:close()
	-- load the configuration file
	dofile(configFile)
	if not fileList then
		print("No fileList table defined by the configuration file. Exiting")
	else
		local mf = mainFile or fileList[1]
		for i = 1,#fileList do
			-- Convert all files except the main file to strings
			if fileList[i] ~= mf then
				f = io.open(fileList[i],"r")
				if f ~=nil then
					local fileStr = f:read("*a")
					luaCode[fileTitle(fileList[i])] = fileStr
					f:close()
				end
			end
		end	-- for i = 1,#fileList do
		-- Add the files in the begining of the main file
		local mainFilePre
		if loadstring then
			mainFilePre = [[__MANY2ONEFILES={}
			function requireLuaString(str)
				if not package.loaded[str] then
					package.loaded[str] = true
					local res = loadstring(__MANY2ONEFILES[str])
					res = res(str)
					if res ~= nil then
						package.loaded[str] = res
						_G[str] = str
					end
				end
				return package.loaded[str]
			end
			]]
		else
			mainFilePre = [[__MANY2ONEFILES={}
			function requireLuaString(str)
				if not package.loaded[str] then
					package.loaded[str] = true
					local res = load(__MANY2ONEFILES[str])
					res = res(str)
					if res ~= nil then
						package.loaded[str] = res
					end
				end
				return package.loaded[str]
			end
			]]
		end
		local addedFiles = {}
		-- Now find and replace  require in all the read files with the custom code
		for k,v in pairs(luaCode) do
			local added = nil
			for k1,v1 in pairs(luaCode) do
				local pre,post = v:find("require%([%\"%']"..k1.."[%\"%']%)")
				if pre and not added then
					luaCode[k] = "local requireLuaString = requireLuaString\n"..v
				end
				if pre then
					luaCode[k] = luaCode[k]:gsub("require%([%\"%']"..k1.."[%\"%']%)","requireLuaString('"..k1.."')")
					if not addedFiles[k1] then
						addedFiles[k1] = true
					end
				end
			end
		end
		-- Add all the required files in the beginning of Main file in MailFilePre
		for k,v in pairs(addedFiles) do
			mainFilePre = mainFilePre.."__MANY2ONEFILES['"..k.."']="..string.format("%q",luaCode[k]).."\n"
		end
		-- Now write the main code output file
		local of = outputFile or "output.lua"
		local fo = io.open(of,"w+")
		f = io.open(mf,"r")
		local mainFileStr = f:read("*a")
		f:close()
		-- Replace all require in main file with custom code
		for k,v in pairs(luaCode) do
			local pre,post = mainFileStr:find("require%([%\"%']"..k.."[%\"%']%)")
			if pre then
				mainFileStr = mainFileStr:gsub("require%([%\"%']"..k.."[%\"%']%)","requireLuaString('"..k.."')")
				if not addedFiles[k] then
					mainFilePre = mainFilePre.."__MANY2ONEFILES['"..k.."']="..string.format("%q",v).."\n"
					addedFiles[k] = true
				end
			end
		end
		mainFileStr = mainFilePre..mainFileStr
		fo:write(mainFileStr)
		fo:close()
	end		-- if not fileList then ends
else
	print("No Configuration file found. Exiting.")
end		-- if f~=nil then ends


text:
package org.apache.http.protocol;

import java.io.IOException;

import org.apache.http.HttpEntity;
import org.apache.http.HttpException;
import org.apache.http.HttpResponse;
import org.apache.http.HttpResponseInterceptor;
import org.apache.http.HttpStatus;
import org.apache.http.HttpVersion;
import org.apache.http.ProtocolException;
import org.apache.http.ProtocolVersion;
import org.apache.http.annotation.Immutable;
import org.apache.http.util.Args;

/**
 * ResponseContent is the most important interceptor for outgoing responses.
 * It is responsible for delimiting content length by adding
 * Content-Length or Transfer-Content headers based
 * on the properties of the enclosed entity and the protocol version.
 * This interceptor is required for correct functioning of server side protocol
 * processors.
 *
 * @since 4.0
 */
@Immutable
public class ResponseContent implements HttpResponseInterceptor {

    private final boolean overwrite;

    /**
     * Default constructor. The Content-Length or Transfer-Encoding
     * will cause the interceptor to throw {@link ProtocolException} if already present in the
     * response message.
     */
    public ResponseContent() {
        this(false);
    }

    /**
     * Constructor that can be used to fine-tune behavior of this interceptor.
     *
     * @param overwrite If set to true the Content-Length and
     * Transfer-Encoding headers will be created or updated if already present.
     * If set to false the Content-Length and
     * Transfer-Encoding headers will cause the interceptor to throw
     * {@link ProtocolException} if already present in the response message.
     *
     * @since 4.2
     */
     public ResponseContent(final boolean overwrite) {
         super();
         this.overwrite = overwrite;
    }

    /**
     * Processes the response (possibly updating or inserting) Content-Length and Transfer-Encoding headers.
     * @param response The HttpResponse to modify.
     * @param context Unused.
     * @throws ProtocolException If either the Content-Length or Transfer-Encoding headers are found.
     * @throws IllegalArgumentException If the response is null.
     */
    public void process(final HttpResponse response, final HttpContext context)
            throws HttpException, IOException {
        Args.notNull(response, "HTTP response");
        if (this.overwrite) {
            response.removeHeaders(HTTP.TRANSFER_ENCODING);
            response.removeHeaders(HTTP.CONTENT_LEN);
        } else {
            if (response.containsHeader(HTTP.TRANSFER_ENCODING)) {
                throw new ProtocolException("Transfer-encoding header already present");
            }
            if (response.containsHeader(HTTP.CONTENT_LEN)) {
                throw new ProtocolException("Content-Length header already present");
            }
        }
        final ProtocolVersion ver = response.getStatusLine().getProtocolVersion();
        final HttpEntity entity = response.getEntity();
        if (entity != null) {
            final long len = entity.getContentLength();
            if (entity.isChunked() && !ver.lessEquals(HttpVersion.HTTP_1_0)) {
                response.addHeader(HTTP.TRANSFER_ENCODING, HTTP.CHUNK_CODING);
            } else if (len >= 0) {
                response.addHeader(HTTP.CONTENT_LEN, Long.toString(entity.getContentLength()));
            }
            // Specify a content type if known
            if (entity.getContentType() != null && !response.containsHeader(
                    HTTP.CONTENT_TYPE )) {
                response.addHeader(entity.getContentType());
            }
            // Specify a content encoding if known
            if (entity.getContentEncoding() != null && !response.containsHeader(
                    HTTP.CONTENT_ENCODING)) {
                response.addHeader(entity.getContentEncoding());
            }
        } else {
            final int status = response.getStatusLine().getStatusCode();
            if (status != HttpStatus.SC_NO_CONTENT
                    && status != HttpStatus.SC_NOT_MODIFIED
                    && status != HttpStatus.SC_RESET_CONTENT) {
                response.addHeader(HTTP.CONTENT_LEN, "0");
            }
        }
    }

}


text:
package com.elmakers.mine.bukkit.tasks;

import com.elmakers.mine.bukkit.magic.MagicController;

public class BatchUpdateTask implements Runnable {
    private final MagicController controller;

    public BatchUpdateTask(MagicController controller) {
        this.controller = controller;
    }

    @Override
    public void run() {
        controller.processPendingBatches();
    }
}


text:
class InvalidResourceName(Exception):

    """Raised when attempted a non existent resource."""

class InvalidOperation(Exception):

    """Raised when attempted a non existent operation."""


text:
find_path(oscpack_INCLUDE_DIR oscpack/osc/OscTypes.h PATHS
    /usr/local/include
    /opt/local/include
  )

#find_library can't seem to find a 64-bit binary if the 32-bit isn't there

set(oscpack_LIB_PATHS /usr/local/lib /opt/local/lib /usr/lib64)
find_library(oscpack_LIB NAMES oscpack PATHS ${oscpack_LIB_PATHS})

if (oscpack_LIB AND oscpack_INCLUDE_DIR)
  set(oscpack_FOUND TRUE)
  set(oscpack_LIBS ${oscpack_LIB})
else ()
  set(oscpack_FOUND FALSE)
endif ()

if (oscpack_FOUND)
  if (NOT oscpack_FIND_QUIETLY)
    message(STATUS "Found oscpack: ${oscpack_LIBS}")
  endif ()
else ()
  if (oscpack_FIND_REQUIRED)
      message(FATAL_ERROR "Could NOT find oscpack library.")
  endif ()
  message(STATUS "oscpack NOT found.")
endif ()

mark_as_advanced(
    oscpack_LIB
    oscpack_INCLUDE_DIR
  )


text:
<?php /* Smarty version Smarty-3.1.19, created on 2016-06-02 18:19:54
         compiled from "/Applications/MAMP/htdocs/victor_espinet/prestashop/admin312fiugpn/themes/default/template/controllers/categories/helpers/list/list_header.tpl" */ ?>
<?php /*%%SmartyHeaderCode:8348985057505caa8ca761-89557845%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' =>
  array (
    '6b72fe71171e3d9f7fa03f69da82f57c5a4da50d' =>
    array (
      0 => '/Applications/MAMP/htdocs/victor_espinet/prestashop/admin312fiugpn/themes/default/template/controllers/categories/helpers/list/list_header.tpl',
      1 => 1452091828,
      2 => 'file',
    ),
    '797fd4bcb0e39f5185dc2ea61bec4f9fd4d8aca0' =>
    array (
      0 => '/Applications/MAMP/htdocs/victor_espinet/prestashop/admin312fiugpn/themes/default/template/helpers/list/list_header.tpl',
      1 => 1452091828,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '8348985057505caa8ca761-89557845',
  'function' =>
  array (
  ),
  'variables' =>
  array (
    'ajax' => 0,
    'is_order_position' => 0,
    'list_id' => 0,
    'order_way' => 0,
    'simple_header' => 0,
    'name_controller' => 0,
    'hookName' => 0,
    'sql' => 0,
    'link' => 0,
    'action' => 0,
    'page' => 0,
    'selected_pagination' => 0,
    'icon' => 0,
    'title' => 0,
    'toolbar_btn' => 0,
    'list_total' => 0,
    'k' => 0,
    'table' => 0,
    'btn' => 0,
    'sql_manager' => 0,
    'show_toolbar' => 0,
    'bulk_actions' => 0,
    'has_bulk_actions' => 0,
    'fields_display' => 0,
    'y' => 0,
    'param' => 0,
    'use_overflow' => 0,
    'table_id' => 0,
    'table_dnd' => 0,
    'params' => 0,
    'order_by' => 0,
    'key' => 0,
    'hint' => 0,
    'show_filters' => 0,
    'currentIndex' => 0,
    'token' => 0,
    'identifier' => 0,
    'shop_link_type' => 0,
    'has_actions' => 0,
    'row_hover' => 0,
    'option_value' => 0,
    'option_display' => 0,
    'filters_has_value' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.19',
  'unifunc' => 'content_57505cab070592_39527102',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_57505cab070592_39527102')) {function content_57505cab070592_39527102($_smarty_tpl) {?><?php if (!is_callable('smarty_function_math')) include '/Applications/MAMP/htdocs/victor_espinet/prestashop/tools/smarty/plugins/function.math.php';
?>
<?php if ($_smarty_tpl->tpl_vars['ajax']->value) {?>

<?php }?>

<?php if ($_smarty_tpl->tpl_vars['is_order_position']->value) {?>

<?php }?>
<?php if (!$_smarty_tpl->tpl_vars['simple_header']->value) {?>

<?php }?>

<?php if (!$_smarty_tpl->tpl_vars['simple_header']->value) {?>

	<?php if (isset($_smarty_tpl->tpl_vars['delete_category']->value)&&$_smarty_tpl->tpl_vars['delete_category']->value) {?>

			<form action="<?php echo $_smarty_tpl->tpl_vars['REQUEST_URI']->value;?>
" method="post">

				<?php if ($_smarty_tpl->tpl_vars['need_delete_mode']->value) {?>
					<?php echo smartyTranslate(array('s'=>'What do you want to do with the products associated with this category?'),$_smarty_tpl);?>

				<?php } else { ?>
					<?php echo smartyTranslate(array('s'=>'Deleting multiple categories'),$_smarty_tpl);?>

				<?php }?>

			<?php if ($_smarty_tpl->tpl_vars['need_delete_mode']->value) {?>

						<input type="radio" name="deleteMode" value="linkanddisable" id="deleteMode_linkanddisable" checked="checked" />
						<?php echo smartyTranslate(array('s'=>'I want to associate the products without other categories to the parent category, then disable these products for now. I re-enable them when they are moved in their new category.'),$_smarty_tpl);?>
 <?php echo smartyTranslate(array('s'=>'(Recommended)'),$_smarty_tpl);?>

						<input type="radio" name="deleteMode" value="link" id="deleteMode_link" />
						<?php echo smartyTranslate(array('s'=>'I want to associate the products without other categories to the parent category, and keep them enabled.'),$_smarty_tpl);?>

						<input type="radio" name="deleteMode" value="delete" id="deleteMode_delete" />
						<?php echo smartyTranslate(array('s'=>'I want to remove the products which are listed only within this category and no others.'),$_smarty_tpl);?>

			<?php } else { ?>

<?php echo smartyTranslate(array('s'=>'Deleting this category will remove products linked only within this category and no others. Are you sure you want to continue?'),$_smarty_tpl);?>

				<input type="hidden" name="deleteMode" value="delete" id="deleteMode_delete" />

			<?php }?>
			<?php  $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['value']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['POST']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) {
$_smarty_tpl->tpl_vars['value']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['value']->key;
?>
				<?php if ($_smarty_tpl->tpl_vars['key']->value!='deleteMode') {?>
					<?php if (is_array($_smarty_tpl->tpl_vars['value']->value)) {?>
						<?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['value']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
?>
							<input type="hidden" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8', true);?>
[]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['val']->value, ENT_QUOTES, 'UTF-8', true);?>
" />
						<?php } ?>
					<?php } else { ?>
						<input type="hidden" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8', true);?>
" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['value']->value, ENT_QUOTES, 'UTF-8', true);?>
" />
					<?php }?>
				<?php }?>
			<?php } ?>

					<button type="submit" name="cancel" class="btn btn-default">

						<?php echo smartyTranslate(array('s'=>'Cancel'),$_smarty_tpl);?>

					</button>
					<button type="submit" class="btn btn-default">

						<?php echo smartyTranslate(array('s'=>'Delete'),$_smarty_tpl);?>

					</button>

			</form>

	<?php }?>

<?php }?>

		<?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(0, null, 0);?>
		<?php  $_smarty_tpl->tpl_vars['category'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['category']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['categories_tree']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['category']->key => $_smarty_tpl->tpl_vars['category']->value) {
$_smarty_tpl->tpl_vars['category']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['category']->key;
?>

			<?php if ($_smarty_tpl->tpl_vars['i']->value++==0) {?>

				<?php $_smarty_tpl->tpl_vars['params_url'] = new Smarty_variable('', null, 0);?>
			<?php } elseif (isset($_smarty_tpl->tpl_vars['category']->value['id_category'])) {?>
				<?php ob_start();?><?php echo intval($_smarty_tpl->tpl_vars['category']->value['id_category']);?>
<?php $_tmp1=ob_get_clean();?><?php $_smarty_tpl->tpl_vars['params_url'] = new Smarty_variable("&id_category=".$_tmp1."&viewcategory", null, 0);?>
			<?php }?>
			<?php if (isset($_smarty_tpl->tpl_vars['category']->value['id_category'])&&$_smarty_tpl->tpl_vars['category']->value['id_category']==$_smarty_tpl->tpl_vars['categories_tree_current_id']->value) {?>
				<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category']->value['name'], ENT_QUOTES, 'UTF-8', true);?>

			<?php } else { ?>
				<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['current']->value, ENT_QUOTES, 'UTF-8', true);?>
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['params_url']->value, ENT_QUOTES, 'UTF-8', true);?>
&token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category']->value['name'], ENT_QUOTES, 'UTF-8', true);?>

			<?php }?>

		<?php } ?>

<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>'displayAdminListBefore'),$_smarty_tpl);?>

<?php if (isset($_smarty_tpl->tpl_vars['name_controller']->value)) {?>
	<?php $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null); ob_start(); ?>display<?php echo ucfirst($_smarty_tpl->tpl_vars['name_controller']->value);?>
ListBefore<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
	<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>$_smarty_tpl->tpl_vars['hookName']->value),$_smarty_tpl);?>

<?php } elseif (isset($_GET['controller'])) {?>
	<?php $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null); ob_start(); ?>display<?php echo htmlentities(ucfirst($_GET['controller']));?>
ListBefore<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
	<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>$_smarty_tpl->tpl_vars['hookName']->value),$_smarty_tpl);?>

<?php }?>

<div class="alert alert-warning" id="<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
-empty-filters-alert" style="display:none;"><?php echo smartyTranslate(array('s'=>'Please fill at least one field to perform a search in this list.'),$_smarty_tpl);?>

<?php if (isset($_smarty_tpl->tpl_vars['sql']->value)&&$_smarty_tpl->tpl_vars['sql']->value) {?>
	<form id="sql_form_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['list_id']->value, ENT_QUOTES, 'UTF-8', true);?>
" action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminRequestSql'), ENT_QUOTES, 'UTF-8', true);?>
&addrequest_sql" method="post" class="hide">
		<input type="hidden" id="sql_query_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['list_id']->value, ENT_QUOTES, 'UTF-8', true);?>
" name="sql" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sql']->value, ENT_QUOTES, 'UTF-8', true);?>
"/>
		<input type="hidden" id="sql_name_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['list_id']->value, ENT_QUOTES, 'UTF-8', true);?>
" name="name" value=""/>
	</form>
<?php }?>

	<form method="post" action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['action']->value, ENT_QUOTES, 'UTF-8', true);?>
" class="form-horizontal clearfix" id="form-<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
">

<?php if (!$_smarty_tpl->tpl_vars['simple_header']->value) {?>
	<input type="hidden" id="submitFilter<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
" name="submitFilter<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
" value="0"/>
	<input type="hidden" name="page" value="<?php echo intval($_smarty_tpl->tpl_vars['page']->value);?>
"/>
	<input type="hidden" name="selected_pagination" value="<?php echo intval($_smarty_tpl->tpl_vars['selected_pagination']->value);?>
"/>

			<?php if (isset($_smarty_tpl->tpl_vars['icon']->value)) {?><i class="<?php echo $_smarty_tpl->tpl_vars['icon']->value;?>
"> <?php }?><?php if (is_array($_smarty_tpl->tpl_vars['title']->value)) {?><?php echo end($_smarty_tpl->tpl_vars['title']->value);?>
<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['title']->value;?>
<?php }?>
			<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value)&&count($_smarty_tpl->tpl_vars['toolbar_btn']->value)>0) {?>
				<?php echo $_smarty_tpl->tpl_vars['list_total']->value;?>

				<?php  $_smarty_tpl->tpl_vars['btn'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['btn']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['toolbar_btn']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['btn']->key => $_smarty_tpl->tpl_vars['btn']->value) {
$_smarty_tpl->tpl_vars['btn']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['btn']->key;
?>
					<?php if ($_smarty_tpl->tpl_vars['k']->value!='modules-list'&&$_smarty_tpl->tpl_vars['k']->value!='back') {?>
						<a id="desc-<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
-<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['imgclass'])) {?><?php echo $_smarty_tpl->tpl_vars['btn']->value['imgclass'];?>
<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['k']->value;?>
<?php }?>" class="list-toolbar-btn<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['target'])&&$_smarty_tpl->tpl_vars['btn']->value['target']) {?> _blank<?php }?>"<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['href'])) {?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['href'], ENT_QUOTES, 'UTF-8', true);?>
"<?php }?><?php if (isset($_smarty_tpl->tpl_vars['btn']->value['js'])&&$_smarty_tpl->tpl_vars['btn']->value['js']) {?> onclick="<?php echo $_smarty_tpl->tpl_vars['btn']->value['js'];?>
"<?php }?>>
							<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="<?php echo smartyTranslate(array('s'=>$_smarty_tpl->tpl_vars['btn']->value['desc']),$_smarty_tpl);?>
" data-html="true" data-placement="top">
								<i class="process-icon-<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['imgclass'])) {?><?php echo $_smarty_tpl->tpl_vars['btn']->value['imgclass'];?>
<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['k']->value;?>
<?php }?><?php if (isset($_smarty_tpl->tpl_vars['btn']->value['class'])) {?> <?php echo $_smarty_tpl->tpl_vars['btn']->value['class'];?>
<?php }?>">

					<?php }?>
				<?php } ?>

						<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="<?php echo smartyTranslate(array('s'=>'Refresh list'),$_smarty_tpl);?>
" data-html="true" data-placement="top">

				<?php if (isset($_smarty_tpl->tpl_vars['sql']->value)&&$_smarty_tpl->tpl_vars['sql']->value) {?>
					<?php $_smarty_tpl->tpl_vars['sql_manager'] = new Smarty_variable(Profile::getProfileAccess(Context::getContext()->employee->id_profile,Tab::getIdFromClassName('AdminRequestSql')), null, 0);?>

					<?php if ($_smarty_tpl->tpl_vars['sql_manager']->value['view']==1) {?>
						<a class="list-toolbar-btn" href="javascript:void(0);" onclick="$('.leadin').first().append('
' + $('#sql_query_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['list_id']->value, ENT_QUOTES, 'UTF-8', true);?>
').val() + '
'); $(this).attr('onclick', '');">
							<span class="label-tooltip" data-toggle="tooltip" data-original-title="<?php echo smartyTranslate(array('s'=>'Show SQL query'),$_smarty_tpl);?>
" data-html="true" data-placement="top" >

						<a class="list-toolbar-btn" href="javascript:void(0);" onclick="$('#sql_name_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['list_id']->value, ENT_QUOTES, 'UTF-8', true);?>
').val(createSqlQueryName()); $('#sql_query_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['list_id']->value, ENT_QUOTES, 'UTF-8', true);?>
').val($('#sql_query_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['list_id']->value, ENT_QUOTES, 'UTF-8', true);?>
').val().replace(/\s+limit\s+[0-9,\s]+$/ig, '').trim()); $('#sql_form_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['list_id']->value, ENT_QUOTES, 'UTF-8', true);?>
').submit();">
							<span class="label-tooltip" data-toggle="tooltip" data-original-title="<?php echo smartyTranslate(array('s'=>'Export to SQL Manager'),$_smarty_tpl);?>
" data-html="true" data-placement="top" >

					<?php }?>
				<?php }?>

			<?php }?>

		<?php if ($_smarty_tpl->tpl_vars['show_toolbar']->value) {?>

		<?php }?>
<?php } elseif ($_smarty_tpl->tpl_vars['simple_header']->value) {?>

		<?php if (isset($_smarty_tpl->tpl_vars['title']->value)) {?>
<?php if (isset($_smarty_tpl->tpl_vars['icon']->value)) {?><i class="<?php echo $_smarty_tpl->tpl_vars['icon']->value;?>
"> <?php }?><?php if (is_array($_smarty_tpl->tpl_vars['title']->value)) {?><?php echo end($_smarty_tpl->tpl_vars['title']->value);?>
<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['title']->value;?>
<?php }?>
<?php }?>
<?php }?>

	<?php if ($_smarty_tpl->tpl_vars['bulk_actions']->value&&$_smarty_tpl->tpl_vars['has_bulk_actions']->value) {?>
		<?php $_smarty_tpl->tpl_vars['y'] = new Smarty_variable(2, null, 0);?>
	<?php } else { ?>
		<?php $_smarty_tpl->tpl_vars['y'] = new Smarty_variable(1, null, 0);?>
	<?php }?>

	<div class="table-responsive-row clearfix<?php if (isset($_smarty_tpl->tpl_vars['use_overflow']->value)&&$_smarty_tpl->tpl_vars['use_overflow']->value) {?> overflow-y<?php }?>">
		<table<?php if ($_smarty_tpl->tpl_vars['table_id']->value) {?> id="table-<?php echo $_smarty_tpl->tpl_vars['table_id']->value;?>
"<?php }?> class="table<?php if ($_smarty_tpl->tpl_vars['table_dnd']->value) {?> tableDnD<?php }?> <?php echo $_smarty_tpl->tpl_vars['table']->value;?>
" >

					<?php if ($_smarty_tpl->tpl_vars['bulk_actions']->value&&$_smarty_tpl->tpl_vars['has_bulk_actions']->value) {?>

					<?php }?>
					<?php  $_smarty_tpl->tpl_vars['params'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['params']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['fields_display']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['params']->key => $_smarty_tpl->tpl_vars['params']->value) {
$_smarty_tpl->tpl_vars['params']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['params']->key;
?>
					<th class="<?php if (isset($_smarty_tpl->tpl_vars['params']->value['class'])) {?><?php echo $_smarty_tpl->tpl_vars['params']->value['class'];?>
<?php }?><?php if (isset($_smarty_tpl->tpl_vars['params']->value['align'])) {?> <?php echo $_smarty_tpl->tpl_vars['params']->value['align'];?>
<?php }?>">
						<span class="title_box<?php if (isset($_smarty_tpl->tpl_vars['order_by']->value)&&($_smarty_tpl->tpl_vars['key']->value==$_smarty_tpl->tpl_vars['order_by']->value)) {?> active<?php }?>">
							<?php if (isset($_smarty_tpl->tpl_vars['params']->value['hint'])) {?>
								<span class="label-tooltip" data-toggle="tooltip"
									title="
										<?php if (is_array($_smarty_tpl->tpl_vars['params']->value['hint'])) {?>
											<?php  $_smarty_tpl->tpl_vars['hint'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['hint']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['params']->value['hint']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['hint']->key => $_smarty_tpl->tpl_vars['hint']->value) {
$_smarty_tpl->tpl_vars['hint']->_loop = true;
?>
												<?php if (is_array($_smarty_tpl->tpl_vars['hint']->value)) {?>
													<?php echo $_smarty_tpl->tpl_vars['hint']->value['text'];?>

												<?php } else { ?>
													<?php echo $_smarty_tpl->tpl_vars['hint']->value;?>

												<?php }?>
											<?php } ?>
										<?php } else { ?>
											<?php echo $_smarty_tpl->tpl_vars['params']->value['hint'];?>

										<?php }?>
									">
									<?php echo $_smarty_tpl->tpl_vars['params']->value['title'];?>

							<?php } else { ?>
								<?php echo $_smarty_tpl->tpl_vars['params']->value['title'];?>

							<?php }?>
							<?php if ((!isset($_smarty_tpl->tpl_vars['params']->value['orderby'])||$_smarty_tpl->tpl_vars['params']->value['orderby'])&&!$_smarty_tpl->tpl_vars['simple_header']->value&&$_smarty_tpl->tpl_vars['show_filters']->value) {?>
								<a <?php if (isset($_smarty_tpl->tpl_vars['order_by']->value)&&($_smarty_tpl->tpl_vars['key']->value==$_smarty_tpl->tpl_vars['order_by']->value)&&($_smarty_tpl->tpl_vars['order_way']->value=='DESC')) {?>class="active"<?php }?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);?>
&<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
Orderby=<?php echo urlencode($_smarty_tpl->tpl_vars['key']->value);?>
&<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
Orderway=desc&token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
<?php if (isset($_GET[$_smarty_tpl->tpl_vars['identifier']->value])) {?>&<?php echo $_smarty_tpl->tpl_vars['identifier']->value;?>
=<?php echo intval($_GET[$_smarty_tpl->tpl_vars['identifier']->value]);?>
<?php }?>">

								<a <?php if (isset($_smarty_tpl->tpl_vars['order_by']->value)&&($_smarty_tpl->tpl_vars['key']->value==$_smarty_tpl->tpl_vars['order_by']->value)&&($_smarty_tpl->tpl_vars['order_way']->value=='ASC')) {?>class="active"<?php }?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);?>
&<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
Orderby=<?php echo urlencode($_smarty_tpl->tpl_vars['key']->value);?>
&<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
Orderway=asc&token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
<?php if (isset($_GET[$_smarty_tpl->tpl_vars['identifier']->value])) {?>&<?php echo $_smarty_tpl->tpl_vars['identifier']->value;?>
=<?php echo intval($_GET[$_smarty_tpl->tpl_vars['identifier']->value]);?>
<?php }?>">

							<?php }?>

					<?php } ?>
					<?php if ($_smarty_tpl->tpl_vars['shop_link_type']->value) {?>

							<?php if ($_smarty_tpl->tpl_vars['shop_link_type']->value=='shop') {?>
								<?php echo smartyTranslate(array('s'=>'Shop'),$_smarty_tpl);?>

							<?php } else { ?>
								<?php echo smartyTranslate(array('s'=>'Shop group'),$_smarty_tpl);?>

							<?php }?>

					<?php }?>
					<?php if ($_smarty_tpl->tpl_vars['has_actions']->value||$_smarty_tpl->tpl_vars['show_filters']->value) {?>
						<?php if (!$_smarty_tpl->tpl_vars['simple_header']->value) {?><?php }?>
					<?php }?>

			<?php if (!$_smarty_tpl->tpl_vars['simple_header']->value&&$_smarty_tpl->tpl_vars['show_filters']->value) {?>
				<tr class="nodrag nodrop filter <?php if ($_smarty_tpl->tpl_vars['row_hover']->value) {?>row_hover<?php }?>">
					<?php if ($_smarty_tpl->tpl_vars['has_bulk_actions']->value) {?>

							--

					<?php }?>

					<?php  $_smarty_tpl->tpl_vars['params'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['params']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['fields_display']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['params']->key => $_smarty_tpl->tpl_vars['params']->value) {
$_smarty_tpl->tpl_vars['params']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['params']->key;
?>
						<th <?php if (isset($_smarty_tpl->tpl_vars['params']->value['align'])) {?> class="<?php echo $_smarty_tpl->tpl_vars['params']->value['align'];?>
" <?php }?>>
							<?php if (isset($_smarty_tpl->tpl_vars['params']->value['search'])&&!$_smarty_tpl->tpl_vars['params']->value['search']) {?>
								--
							<?php } else { ?>
								<?php if ($_smarty_tpl->tpl_vars['params']->value['type']=='bool') {?>
									<select class="filter fixed-width-sm center" name="<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
Filter_<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
">
										<option value="">-</option>
										<option value="1" <?php if ($_smarty_tpl->tpl_vars['params']->value['value']==1) {?> selected="selected" <?php }?>><?php echo smartyTranslate(array('s'=>'Yes'),$_smarty_tpl);?>
</option>
										<option value="0" <?php if ($_smarty_tpl->tpl_vars['params']->value['value']==0&&$_smarty_tpl->tpl_vars['params']->value['value']!='') {?> selected="selected" <?php }?>><?php echo smartyTranslate(array('s'=>'No'),$_smarty_tpl);?>
</option>
									</select>
								<?php } elseif ($_smarty_tpl->tpl_vars['params']->value['type']=='date'||$_smarty_tpl->tpl_vars['params']->value['type']=='datetime') {?>

											<input type="text" class="filter datepicker date-input form-control" id="local_<?php echo $_smarty_tpl->tpl_vars['params']->value['id_date'];?>
_0" name="local_<?php echo $_smarty_tpl->tpl_vars['params']->value['name_date'];?>
[0]"  placeholder="<?php echo smartyTranslate(array('s'=>'From'),$_smarty_tpl);?>
" />
											<input type="hidden" id="<?php echo $_smarty_tpl->tpl_vars['params']->value['id_date'];?>
_0" name="<?php echo $_smarty_tpl->tpl_vars['params']->value['name_date'];?>
[0]" value="<?php if (isset($_smarty_tpl->tpl_vars['params']->value['value'][0])) {?><?php echo $_smarty_tpl->tpl_vars['params']->value['value'][0];?>
<?php }?>">

											<input type="text" class="filter datepicker date-input form-control" id="local_<?php echo $_smarty_tpl->tpl_vars['params']->value['id_date'];?>
_1" name="local_<?php echo $_smarty_tpl->tpl_vars['params']->value['name_date'];?>
[1]"  placeholder="<?php echo smartyTranslate(array('s'=>'To'),$_smarty_tpl);?>
" />
											<input type="hidden" id="<?php echo $_smarty_tpl->tpl_vars['params']->value['id_date'];?>
_1" name="<?php echo $_smarty_tpl->tpl_vars['params']->value['name_date'];?>
[1]" value="<?php if (isset($_smarty_tpl->tpl_vars['params']->value['value'][1])) {?><?php echo $_smarty_tpl->tpl_vars['params']->value['value'][1];?>
<?php }?>">

								<?php } elseif ($_smarty_tpl->tpl_vars['params']->value['type']=='select') {?>
									<?php if (isset($_smarty_tpl->tpl_vars['params']->value['filter_key'])) {?>
										<select class="filter center" onchange="$('#submitFilterButton<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
').focus();$('#submitFilterButton<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
').click();" name="<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
Filter_<?php echo $_smarty_tpl->tpl_vars['params']->value['filter_key'];?>
" <?php if (isset($_smarty_tpl->tpl_vars['params']->value['width'])) {?> style="width:<?php echo $_smarty_tpl->tpl_vars['params']->value['width'];?>
px"<?php }?>>
											<option value="" <?php if ($_smarty_tpl->tpl_vars['params']->value['value']=='') {?> selected="selected" <?php }?>>-</option>
											<?php if (isset($_smarty_tpl->tpl_vars['params']->value['list'])&&is_array($_smarty_tpl->tpl_vars['params']->value['list'])) {?>
												<?php  $_smarty_tpl->tpl_vars['option_display'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['option_display']->_loop = false;
 $_smarty_tpl->tpl_vars['option_value'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['params']->value['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['option_display']->key => $_smarty_tpl->tpl_vars['option_display']->value) {
$_smarty_tpl->tpl_vars['option_display']->_loop = true;
 $_smarty_tpl->tpl_vars['option_value']->value = $_smarty_tpl->tpl_vars['option_display']->key;
?>
													<option value="<?php echo $_smarty_tpl->tpl_vars['option_value']->value;?>
" <?php if ((string)$_smarty_tpl->tpl_vars['option_display']->value===(string)$_smarty_tpl->tpl_vars['params']->value['value']||(string)$_smarty_tpl->tpl_vars['option_value']->value===(string)$_smarty_tpl->tpl_vars['params']->value['value']) {?> selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['option_display']->value;?>
</option>
												<?php } ?>
											<?php }?>
										</select>
									<?php }?>
								<?php } else { ?>
									<input type="text" class="filter" name="<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
Filter_<?php if (isset($_smarty_tpl->tpl_vars['params']->value['filter_key'])) {?><?php echo $_smarty_tpl->tpl_vars['params']->value['filter_key'];?>
<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['key']->value;?>
<?php }?>" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['params']->value['value'], ENT_QUOTES, 'UTF-8', true);?>
" <?php if (isset($_smarty_tpl->tpl_vars['params']->value['width'])&&$_smarty_tpl->tpl_vars['params']->value['width']!='auto') {?> style="width:<?php echo $_smarty_tpl->tpl_vars['params']->value['width'];?>
px"<?php }?> />
								<?php }?>
							<?php }?>

					<?php } ?>

					<?php if ($_smarty_tpl->tpl_vars['shop_link_type']->value) {?>
						--
					<?php }?>
					<?php if ($_smarty_tpl->tpl_vars['has_actions']->value||$_smarty_tpl->tpl_vars['show_filters']->value) {?>

							<?php if ($_smarty_tpl->tpl_vars['show_filters']->value) {?>

								<button type="submit" id="submitFilterButton<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
" name="submitFilter" class="btn btn-default" data-list-id="<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
">
									 <?php echo smartyTranslate(array('s'=>'Search'),$_smarty_tpl);?>

								</button>
								<?php if ($_smarty_tpl->tpl_vars['filters_has_value']->value) {?>
									<button type="submit" name="submitReset<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
" class="btn btn-warning">
										 <?php echo smartyTranslate(array('s'=>'Reset'),$_smarty_tpl);?>

									</button>
								<?php }?>

							<?php }?>

					<?php }?>

			<?php }?>

<?php }} ?>


text:
<!DOCTYPE html>

    <title>Notification Extension Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset='utf-8'>

Kingfisher Docs (78% documented)

View on GitHub

Install in Dash

        Kingfisher Reference

        Notification Extension Reference

            Classes

                AnimatedImageView

                ImageCache

                – CacheCheckResult

                ImageDownloader

                ImagePrefetcher

                Kingfisher

                KingfisherManager

                RetrieveImageTask

            Global Variables

                KingfisherDiskCacheCleanedHashKey

                KingfisherErrorDomain

                KingfisherErrorStatusCodeKey

            Enums

                CacheType

                ContentMode

                ImageProcessItem

                ImageTransition

                ImageTransition

                IndicatorType

                KingfisherError

                KingfisherOptionsInfoItem

            Extensions

                CGSize

                Collection

                Data

                Image

                ImageView

                Notification

                String

                UIButton

                URL

            Functions

                >>(_:_:)

            Protocols

                AuthenticationChallengeResponsable

                CIImageProcessor

                CacheSerializer

                ImageDownloadRequestModifier

                ImageDownloaderDelegate

                ImageProcessor

                Indicator

                KingfisherCompatible

                Resource

            Structs

                AnyModifier

                BlackWhiteProcessor

                BlurImageProcessor

                CGSizeProxy

                ColorControlsProcessor

                CroppingImageProcessor

                DataProxy

                DefaultCacheSerializer

                DefaultImageProcessor

                Filter

                FormatIndicatedCacheSerializer

                ImageResource

                OverlayImageProcessor

                RectCorner

                ResizingImageProcessor

                RetrieveImageDownloadTask

                RoundCornerImageProcessor

                StringProxy

                TintImageProcessor

            Typealiases

                ImageDownloaderCompletionHandler

                ImageDownloaderProgressBlock

                KingfisherOptionsInfo

                PrefetcherCompletionHandler

                PrefetcherProgressBlock

                RetrieveImageDiskTask

                Transformer

Notification

struct Notification : ReferenceConvertible, Equatable, Hashable

                    KingfisherDidCleanDiskCache

This notification will be sent when the disk cache got cleaned either there are cached files expired or the total size exceeding the max allowed size. The manually invoking of clearDiskCache method will not trigger this notification.

The object of this notification is the ImageCache object which sends the notification.

A list of removed hashes (files) could be retrieved by accessing the array under KingfisherDiskCacheCleanedHashKey key in userInfo of the notification object you received. By checking the array, you could know the hash codes of files are removed.

The main purpose of this notification is supplying a chance to maintain some necessary information on the cached files. See this wiki for a use case on it.

Declaration

Swift

public static var KingfisherDidCleanDiskCache = Notification.Name.init("com.onevcat.Kingfisher.KingfisherDidCleanDiskCache")

                        Show on GitHub

© 2017 Wei Wang. All rights reserved. (Last updated: 2017-06-16)

Generated by jazzy ♪♫ v0.8.2, a Realm project.


text:
<?xml version="1.0" encoding="UTF-8"?>
<billStatus>
  <bill>
    <billType>S</billType>
    <subjects>
      <billSubjects>
        <legislativeSubjects />
        <policyArea>
          <name>Economics and Public Finance</name>
        </policyArea>
      </billSubjects>
    </subjects>
    <recordedVotes />
    <policyArea>
      <name>Economics and Public Finance</name>
    </policyArea>
    <sponsors>
      <item>
        <party>D</party>
        <fullName>Sen. Schatz, Brian [D-HI]</fullName>
        <lastName>Schatz</lastName>
        <identifiers>
          <lisID>2173</lisID>
          <bioguideId>S001194</bioguideId>
          <gpoId />
        </identifiers>
        <middleName />
        <firstName>Brian</firstName>
        <bioguideId>S001194</bioguideId>
        <state>HI</state>
        <byRequestType />
      </item>
    </sponsors>
    <actions>
      <actionByCounts>
        <senate>2</senate>
      </actionByCounts>
      <actionTypeCounts>
        <introducedInSenate>1</introducedInSenate>
        <referredToCommittee>1</referredToCommittee>
      </actionTypeCounts>
      <item>
        <actionDate>2017-09-19</actionDate>
        <committee>
          <name>Finance Committee</name>
          <systemCode>ssfi00</systemCode>
        </committee>
        <links />
        <sourceSystem>
          0
          <name>Senate</name>
        </sourceSystem>
        <text>Read twice and referred to the Committee on Finance.</text>
        <type>IntroReferral</type>
      </item>
      <item>
        <links />
        <type>IntroReferral</type>
        <actionCode>10000</actionCode>
        <sourceSystem>
          9
          <name>Library of Congress</name>
        </sourceSystem>
        <committee />
        <text>Introduced in Senate</text>
        <actionDate>2017-09-19</actionDate>
      </item>
    </actions>
    <summaries>
      <billSummaries />
    </summaries>
    <introducedDate>2017-09-19</introducedDate>
    <committees>
      <billCommittees>
        <item>
          <subcommittees />
          <type>Standing</type>
          <systemCode>ssfi00</systemCode>
          <chamber>Senate</chamber>
          <activities>
            <item>
              <name>Referred to</name>
              <date>2017-09-19T22:10:54Z</date>
            </item>
          </activities>
          <name>Finance Committee</name>
        </item>
      </billCommittees>
    </committees>
    <title>End the Threat of Default Act</title>
    <congress>115</congress>
    <calendarNumbers />
    <relatedBills>
      <item>
        <relationshipDetails>
          <item>
            <type>Related bill</type>
            <identifiedBy>CRS</identifiedBy>
          </item>
        </relationshipDetails>
        <latestTitle>To repeal the debt ceiling.</latestTitle>
        <type>HR</type>
        <number>3693</number>
        <latestAction>
          <text>Referred to the House Committee on Ways and Means.</text>
          <actionDate>2017-09-07</actionDate>
        </latestAction>
        <congress>115</congress>
      </item>
    </relatedBills>
    <latestAction>
      <actionDate>2017-09-19</actionDate>
      <text>Read twice and referred to the Committee on Finance.</text>
      <links />
    </latestAction>
    <createDate>2017-09-20T00:41:19Z</createDate>
    <updateDate>2017-10-03T04:30:40Z</updateDate>
    <cboCostEstimates />
    <laws />
    <billNumber>1846</billNumber>
    <version>1.0.0</version>
    <titles>
      <item>
        <parentTitleType />
        <chamberName />
        <title>End the Threat of Default Act</title>
        <titleType>Short Titles as Introduced</titleType>
        <chamberCode />
      </item>
      <item>
        <parentTitleType />
        <chamberName />
        <title>A bill to repeal the debt ceiling.</title>
        <titleType>Official Title as Introduced</titleType>
        <chamberCode />
      </item>
      <item>
        <parentTitleType />
        <chamberName />
        <title>End the Threat of Default Act</title>
        <titleType>Display Title</titleType>
        <chamberCode />
      </item>
      <item>
        <parentTitleType />
        <chamberName />
        <title>End the Threat of Default Act</title>
        <titleType>(Extracted from GPO) Short Titles as Introduced</titleType>
        <chamberCode />
      </item>
    </titles>
    <cosponsors>
      <item>
        <middleName>A.</middleName>
        <firstName>Christopher</firstName>
        <fullName>Sen. Coons, Christopher A. [D-DE]</fullName>
        <bioguideId>C001088</bioguideId>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-09-19</sponsorshipDate>
        <party>D</party>
        <lastName>Coons</lastName>
        <state>DE</state>
        <sponsorshipWithdrawnDate />
        <identifiers>
          <gpoId>8297</gpoId>
          <lisID>1984</lisID>
          <bioguideId>C001088</bioguideId>
        </identifiers>
      </item>
      <item>
        <middleName>F.</middleName>
        <firstName>Michael</firstName>
        <fullName>Sen. Bennet, Michael F. [D-CO]</fullName>
        <bioguideId>B001267</bioguideId>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-09-19</sponsorshipDate>
        <party>D</party>
        <lastName>Bennet</lastName>
        <state>CO</state>
        <sponsorshipWithdrawnDate />
        <identifiers>
          <bioguideId>B001267</bioguideId>
          <lisID>1965</lisID>
          <gpoId>8302</gpoId>
        </identifiers>
      </item>
    </cosponsors>
    <notes />
    <amendments />
    <committeeReports />
    <originChamber>Senate</originChamber>
  </bill>
  <dublinCore xmlns:dc="http://purl.org/dc/elements/1.1/">
    <dc:format>text/xml</dc:format>
    <dc:language>EN</dc:language>
    <dc:rights>Pursuant to Title 17 Section 105 of the United States Code, this file is not subject to copyright protection and is in the public domain.</dc:rights>
    <dc:contributor>Congressional Research Service, Library of Congress</dc:contributor>
    <dc:description>This file contains bill summaries and statuses for federal legislation. A bill summary describes the most significant provisions of a piece of legislation and details the effects the legislative text may have on current law and federal programs. Bill summaries are authored by the Congressional Research Service (CRS) of the Library of Congress. As stated in Public Law 91-510 (2 USC 166 (d)(6)), one of the duties of CRS is "to prepare summaries and digests of bills and resolutions of a public general nature introduced in the Senate or House of Representatives". For more information, refer to the User Guide that accompanies this file.</dc:description>
  </dublinCore>
</billStatus>


text:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <item name="recyclerview" type="id" />
    <item name="refresh_header_view" type="id" />
    <item name="refresh_footer_view" type="id" />
    <item name="refresh_scroll_view" type="id" />
</resources>


text:
/**
 * @fileoverview This file is generated by the Angular 2 template compiler.
 * Do not edit.
 * @suppress {suspiciousCode,uselessCode,missingProperties}
 */
 /* tslint:disable */

import * as import0 from './menu';
import * as import1 from '@angular/core/src/change_detection/change_detection';
import * as import2 from '@angular/core/src/linker/view';
import * as import3 from '@angular/core/src/linker/view_utils';
import * as import4 from '@angular/core/src/render/api';
import * as import5 from '@angular/core/src/metadata/view';
import * as import6 from '@angular/core/src/linker/query_list';
import * as import7 from '@angular/core/src/linker/view_type';
import * as import8 from '@angular/core/src/linker/component_factory';
import * as import9 from './menu-controller';
import * as import10 from '@angular/core/src/linker/element_ref';
import * as import11 from '../../config/config';
import * as import12 from '../../platform/platform';
import * as import13 from '../../util/keyboard';
import * as import14 from '@angular/core/src/zone/ng_zone';
import * as import15 from '../../gestures/gesture-controller';
import * as import16 from '../../util/dom-controller';
import * as import17 from '../app/app';
import * as import18 from '../backdrop/backdrop.ngfactory';
import * as import19 from '../backdrop/backdrop';
export class Wrapper_Menu {
  /*private*/ _eventHandler:Function;
  context:import0.Menu;
  /*private*/ _changed:boolean;
  /*private*/ _expr_0:any;
  /*private*/ _expr_1:any;
  /*private*/ _expr_2:any;
  /*private*/ _expr_3:any;
  /*private*/ _expr_4:any;
  /*private*/ _expr_5:any;
  /*private*/ _expr_6:any;
  /*private*/ _expr_7:any;
  subscription0:any;
  subscription1:any;
  subscription2:any;
  constructor(p0:any,p1:any,p2:any,p3:any,p4:any,p5:any,p6:any,p7:any,p8:any,p9:any) {
    this._changed = false;
    this.context = new import0.Menu(p0,p1,p2,p3,p4,p5,p6,p7,p8,p9);
    this._expr_0 = import1.UNINITIALIZED;
    this._expr_1 = import1.UNINITIALIZED;
    this._expr_2 = import1.UNINITIALIZED;
    this._expr_3 = import1.UNINITIALIZED;
    this._expr_4 = import1.UNINITIALIZED;
    this._expr_5 = import1.UNINITIALIZED;
    this._expr_6 = import1.UNINITIALIZED;
    this._expr_7 = import1.UNINITIALIZED;
  }
  ngOnDetach(view:import2.AppView<any>,componentView:import2.AppView<any>,el:any):void {
  }
  ngOnDestroy():void {
    this.context.ngOnDestroy();
    (this.subscription0 && this.subscription0.unsubscribe());
    (this.subscription1 && this.subscription1.unsubscribe());
    (this.subscription2 && this.subscription2.unsubscribe());
  }
  check_content(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
    if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_0,currValue))) {
      this._changed = true;
      this.context.content = currValue;
      this._expr_0 = currValue;
    }
  }
  check_id(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
    if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_1,currValue))) {
      this._changed = true;
      this.context.id = currValue;
      this._expr_1 = currValue;
    }
  }
  check_side(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
    if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_2,currValue))) {
      this._changed = true;
      this.context.side = currValue;
      this._expr_2 = currValue;
    }
  }
  check_type(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
    if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_3,currValue))) {
      this._changed = true;
      this.context.type = currValue;
      this._expr_3 = currValue;
    }
  }
  check_enabled(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
    if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_4,currValue))) {
      this._changed = true;
      this.context.enabled = currValue;
      this._expr_4 = currValue;
    }
  }
  check_swipeEnabled(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
    if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_5,currValue))) {
      this._changed = true;
      this.context.swipeEnabled = currValue;
      this._expr_5 = currValue;
    }
  }
  check_persistent(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
    if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_6,currValue))) {
      this._changed = true;
      this.context.persistent = currValue;
      this._expr_6 = currValue;
    }
  }
  check_maxEdgeStart(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
    if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_7,currValue))) {
      this._changed = true;
      this.context.maxEdgeStart = currValue;
      this._expr_7 = currValue;
    }
  }
  ngDoCheck(view:import2.AppView<any>,el:any,throwOnChange:boolean):boolean {
    var changed:any = this._changed;
    this._changed = false;
    if (!throwOnChange) { if ((view.numberOfChecks === 0)) { this.context.ngOnInit(); } }
    return changed;
  }
  checkHost(view:import2.AppView<any>,componentView:import2.AppView<any>,el:any,throwOnChange:boolean):void {
  }
  handleEvent(eventName:string,$event:any):boolean {
    var result:boolean = true;
    return result;
  }
  subscribe(view:import2.AppView<any>,_eventHandler:any,emit0:boolean,emit1:boolean,emit2:boolean):void {
    this._eventHandler = _eventHandler;
    if (emit0) { (this.subscription0 = this.context.ionDrag.subscribe(_eventHandler.bind(view,'ionDrag'))); }
    if (emit1) { (this.subscription1 = this.context.ionOpen.subscribe(_eventHandler.bind(view,'ionOpen'))); }
    if (emit2) { (this.subscription2 = this.context.ionClose.subscribe(_eventHandler.bind(view,'ionClose'))); }
  }
}
var renderType_Menu_Host:import4.RenderComponentType = import3.createRenderComponentType('',0,import5.ViewEncapsulation.None,([] as any[]),{});
class View_Menu_Host0 extends import2.AppView<any> {
  _el_0:any;
  compView_0:import2.AppView<import0.Menu>;
  _Menu_0_3:Wrapper_Menu;
  _query_Content_0_0:import6.QueryList<any>;
  constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView<any>,parentIndex:number,parentElement:any) {
    super(View_Menu_Host0,renderType_Menu_Host,import7.ViewType.HOST,viewUtils,parentView,parentIndex,parentElement,import1.ChangeDetectorStatus.CheckAlways);
  }
  createInternal(rootSelector:string):import8.ComponentRef<any> {
    this._el_0 = import3.selectOrCreateRenderHostElement(this.renderer,'ion-menu',new import3.InlineArray2(2,'role','navigation'),rootSelector,(null as any));
    this.compView_0 = new View_Menu0(this.viewUtils,this,0,this._el_0);
    this._Menu_0_3 = new Wrapper_Menu(this.injectorGet(import9.MenuController,this.parentIndex),new import10.ElementRef(this._el_0),this.injectorGet(import11.Config,this.parentIndex),this.injectorGet(import12.Platform,this.parentIndex),this.renderer,this.injectorGet(import13.Keyboard,this.parentIndex),this.injectorGet(import14.NgZone,this.parentIndex),this.injectorGet(import15.GestureController,this.parentIndex),this.injectorGet(import16.DomController,this.parentIndex),this.injectorGet(import17.App,this.parentIndex));
    this._query_Content_0_0 = new import6.QueryList<any>();
    this._query_Content_0_0.reset(([] as any[]));
    this._Menu_0_3.context.menuContent = this._query_Content_0_0.first;
    this.compView_0.create(this._Menu_0_3.context);
    this.init(this._el_0,((<any>this.renderer).directRenderer? (null as any): [this._el_0]),(null as any));
    return new import8.ComponentRef_<any>(0,this,this._el_0,this._Menu_0_3.context);
  }
  injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
    if (((token === import0.Menu) && (0 === requestNodeIndex))) { return this._Menu_0_3.context; }
    return notFoundResult;
  }
  detectChangesInternal(throwOnChange:boolean):void {
    if (this._Menu_0_3.ngDoCheck(this,this._el_0,throwOnChange)) { this.compView_0.markAsCheckOnce(); }
    this.compView_0.detectChanges(throwOnChange);
  }
  destroyInternal():void {
    this.compView_0.destroy();
    this._Menu_0_3.ngOnDestroy();
  }
  visitRootNodesInternal(cb:any,ctx:any):void {
    cb(this._el_0,ctx);
  }
  visitProjectableNodesInternal(nodeIndex:number,ngContentIndex:number,cb:any,ctx:any):void {
    if (((nodeIndex == 0) && (ngContentIndex == 0))) {  }
  }
}
export const MenuNgFactory:import8.ComponentFactory<import0.Menu> = new import8.ComponentFactory<import0.Menu>('ion-menu',View_Menu_Host0,import0.Menu);
const styles_Menu:any[] = ([] as any[]);
var renderType_Menu:import4.RenderComponentType = import3.createRenderComponentType('',1,import5.ViewEncapsulation.None,styles_Menu,{});
export class View_Menu0 extends import2.AppView<import0.Menu> {
  _viewQuery_Backdrop_0:import6.QueryList<any>;
  _el_0:any;
  _el_1:any;
  _Backdrop_1_3:import18.Wrapper_Backdrop;
  constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView<any>,parentIndex:number,parentElement:any) {
    super(View_Menu0,renderType_Menu,import7.ViewType.COMPONENT,viewUtils,parentView,parentIndex,parentElement,import1.ChangeDetectorStatus.CheckOnce);
  }
  createInternal(rootSelector:string):import8.ComponentRef<any> {
    const parentRenderNode:any = this.renderer.createViewRoot(this.parentElement);
    this._viewQuery_Backdrop_0 = new import6.QueryList<any>();
    this._el_0 = import3.createRenderElement(this.renderer,parentRenderNode,'div',new import3.InlineArray2(2,'class','menu-inner'),(null as any));
    this.projectNodes(this._el_0,0);
    this._el_1 = import3.createRenderElement(this.renderer,parentRenderNode,'ion-backdrop',new import3.InlineArray8(6,'disable-activated','','role','presentation','tappable',''),(null as any));
    this._Backdrop_1_3 = new import18.Wrapper_Backdrop(new import10.ElementRef(this._el_1),this.renderer);
    this._viewQuery_Backdrop_0.reset([this._Backdrop_1_3.context]);
    this.context.backdrop = this._viewQuery_Backdrop_0.first;
    this.init((null as any),((<any>this.renderer).directRenderer? (null as any): [
      this._el_0,
      this._el_1
    ]
    ),(null as any));
    return (null as any);
  }
  injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
    if (((token === import19.Backdrop) && (1 === requestNodeIndex))) { return this._Backdrop_1_3.context; }
    return notFoundResult;
  }
  detectChangesInternal(throwOnChange:boolean):void {
    this._Backdrop_1_3.ngDoCheck(this,this._el_1,throwOnChange);
  }
}