text:
//
// This path was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See http://java.sun.com/xml/jaxb
// Any modifications to this path will be lost upon recompilation of the source schema.
// Generated on: 2010.03.15 at 03:58:18 PM CET
//

package org.opencb.commons.bioformats.network.psi.v253jaxb;

import javax.xml.bind.annotation.XmlRegistry;

/**
 * This object contains factory methods for each
 * Java content interface and Java element interface
 * generated in the org.bioinfo.formats.arser.psimi package.
 *
An ObjectFactory allows you to programatically
 * construct new instances of the Java representation
 * for XML content. The Java representation of XML
 * content can consist of schema derived interfaces
 * and classes representing the binding of schema
 * type definitions, element declarations and model
 * groups.  Factory methods for each of these are
 * provided in this class.
 */
@XmlRegistry
public class ObjectFactory {

    /**
     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.bioinfo.formats.arser.psimi
     */
    public ObjectFactory() {
    }

    /**
     * Create an instance of {@link FeatureElementType }
     */
    public FeatureElementType createFeatureElementType() {
        return new FeatureElementType();
    }

    /**
     * Create an instance of {@link InteractionElementType.ParameterList.Parameter }
     */
    public InteractionElementType.ParameterList.Parameter createInteractionElementTypeParameterListParameter() {
        return new InteractionElementType.ParameterList.Parameter();
    }

    /**
     * Create an instance of {@link BibrefType }
     */
    public BibrefType createBibrefType() {
        return new BibrefType();
    }

    /**
     * Create an instance of {@link EntrySet.Entry.Source }
     */
    public EntrySet.Entry.Source createEntrySetEntrySource() {
        return new EntrySet.Entry.Source();
    }

    /**
     * Create an instance of {@link InteractionElementType.InferredInteractionList.InferredInteraction }
     */
    public InteractionElementType.InferredInteractionList.InferredInteraction createInteractionElementTypeInferredInteractionListInferredInteraction() {
        return new InteractionElementType.InferredInteractionList.InferredInteraction();
    }

    /**
     * Create an instance of {@link InteractorElementType.Organism }
     */
    public InteractorElementType.Organism createInteractorElementTypeOrganism() {
        return new InteractorElementType.Organism();
    }

    /**
     * Create an instance of {@link OpenCvType }
     */
    public OpenCvType createOpenCvType() {
        return new OpenCvType();
    }

    /**
     * Create an instance of {@link ParticipantType.FeatureList }
     */
    public ParticipantType.FeatureList createParticipantTypeFeatureList() {
        return new ParticipantType.FeatureList();
    }

    /**
     * Create an instance of {@link ExperimentType.HostOrganismList.HostOrganism }
     */
    public ExperimentType.HostOrganismList.HostOrganism createExperimentTypeHostOrganismListHostOrganism() {
        return new ExperimentType.HostOrganismList.HostOrganism();
    }

    /**
     * Create an instance of {@link EntrySet.Entry.AvailabilityList }
     */
    public EntrySet.Entry.AvailabilityList createEntrySetEntryAvailabilityList() {
        return new EntrySet.Entry.AvailabilityList();
    }

    /**
     * Create an instance of {@link BaseLocationType }
     */
    public BaseLocationType createBaseLocationType() {
        return new BaseLocationType();
    }

    /**
     * Create an instance of {@link EntrySet.Entry.InteractionList }
     */
    public EntrySet.Entry.InteractionList createEntrySetEntryInteractionList() {
        return new EntrySet.Entry.InteractionList();
    }

    /**
     * Create an instance of {@link AttributeListType }
     */
    public AttributeListType createAttributeListType() {
        return new AttributeListType();
    }

    /**
     * Create an instance of {@link ConfidenceType }
     */
    public ConfidenceType createConfidenceType() {
        return new ConfidenceType();
    }

    /**
     * Create an instance of {@link CvType }
     */
    public CvType createCvType() {
        return new CvType();
    }

    /**
     * Create an instance of {@link ExperimentRefListType }
     */
    public ExperimentRefListType createExperimentRefListType() {
        return new ExperimentRefListType();
    }

    /**
     * Create an instance of {@link InteractionElementType }
     */
    public InteractionElementType createInteractionElementType() {
        return new InteractionElementType();
    }

    /**
     * Create an instance of {@link ConfidenceListType }
     */
    public ConfidenceListType createConfidenceListType() {
        return new ConfidenceListType();
    }

    /**
     * Create an instance of {@link ExperimentType }
     */
    public ExperimentType createExperimentType() {
        return new ExperimentType();
    }

    /**
     * Create an instance of {@link EntrySet.Entry.InteractorList }
     */
    public EntrySet.Entry.InteractorList createEntrySetEntryInteractorList() {
        return new EntrySet.Entry.InteractorList();
    }

    /**
     * Create an instance of {@link FullNameType }
     */
    public FullNameType createFullNameType() {
        return new FullNameType();
    }

    /**
     * Create an instance of {@link ParticipantType.ExperimentalInteractorList }
     */
    public ParticipantType.ExperimentalInteractorList createParticipantTypeExperimentalInteractorList() {
        return new ParticipantType.ExperimentalInteractorList();
    }

    /**
     * Create an instance of {@link PositionType }
     */
    public PositionType createPositionType() {
        return new PositionType();
    }

    /**
     * Create an instance of {@link InteractionElementType.ParameterList }
     */
    public InteractionElementType.ParameterList createInteractionElementTypeParameterList() {
        return new InteractionElementType.ParameterList();
    }

    /**
     * Create an instance of {@link ParticipantType.ParticipantIdentificationMethodList.ParticipantIdentificationMethod }
     */
    public ParticipantType.ParticipantIdentificationMethodList.ParticipantIdentificationMethod createParticipantTypeParticipantIdentificationMethodListParticipantIdentificationMethod() {
        return new ParticipantType.ParticipantIdentificationMethodList.ParticipantIdentificationMethod();
    }

    /**
     * Create an instance of {@link XrefType }
     */
    public XrefType createXrefType() {
        return new XrefType();
    }

    /**
     * Create an instance of {@link ParticipantType.ParticipantIdentificationMethodList }
     */
    public ParticipantType.ParticipantIdentificationMethodList createParticipantTypeParticipantIdentificationMethodList() {
        return new ParticipantType.ParticipantIdentificationMethodList();
    }

    /**
     * Create an instance of {@link ParticipantType.ExperimentalPreparationList.ExperimentalPreparation }
     */
    public ParticipantType.ExperimentalPreparationList.ExperimentalPreparation createParticipantTypeExperimentalPreparationListExperimentalPreparation() {
        return new ParticipantType.ExperimentalPreparationList.ExperimentalPreparation();
    }

    /**
     * Create an instance of {@link ParticipantType.HostOrganismList.HostOrganism }
     */
    public ParticipantType.HostOrganismList.HostOrganism createParticipantTypeHostOrganismListHostOrganism() {
        return new ParticipantType.HostOrganismList.HostOrganism();
    }

    /**
     * Create an instance of {@link InteractionElementType.InferredInteractionList }
     */
    public InteractionElementType.InferredInteractionList createInteractionElementTypeInferredInteractionList() {
        return new InteractionElementType.InferredInteractionList();
    }

    /**
     * Create an instance of {@link ParameterType }
     */
    public ParameterType createParameterType() {
        return new ParameterType();
    }

    /**
     * Create an instance of {@link ExperimentType.HostOrganismList }
     */
    public ExperimentType.HostOrganismList createExperimentTypeHostOrganismList() {
        return new ExperimentType.HostOrganismList();
    }

    /**
     * Create an instance of {@link ParticipantType.ExperimentalRoleList }
     */
    public ParticipantType.ExperimentalRoleList createParticipantTypeExperimentalRoleList() {
        return new ParticipantType.ExperimentalRoleList();
    }

    /**
     * Create an instance of {@link ConfidenceListType.Confidence }
     */
    public ConfidenceListType.Confidence createConfidenceListTypeConfidence() {
        return new ConfidenceListType.Confidence();
    }

    /**
     * Create an instance of {@link DbReferenceType }
     */
    public DbReferenceType createDbReferenceType() {
        return new DbReferenceType();
    }

    /**
     * Create an instance of {@link IntervalType }
     */
    public IntervalType createIntervalType() {
        return new IntervalType();
    }

    /**
     * Create an instance of {@link InteractionElementType.ParticipantList }
     */
    public InteractionElementType.ParticipantList createInteractionElementTypeParticipantList() {
        return new InteractionElementType.ParticipantList();
    }

    /**
     * Create an instance of {@link InteractorElementType }
     */
    public InteractorElementType createInteractorElementType() {
        return new InteractorElementType();
    }

    /**
     * Create an instance of {@link InteractionElementType.ExperimentList }
     */
    public InteractionElementType.ExperimentList createInteractionElementTypeExperimentList() {
        return new InteractionElementType.ExperimentList();
    }

    /**
     * Create an instance of {@link EntrySet.Entry.ExperimentList }
     */
    public EntrySet.Entry.ExperimentList createEntrySetEntryExperimentList() {
        return new EntrySet.Entry.ExperimentList();
    }

    /**
     * Create an instance of {@link ParticipantType.ParameterList.Parameter }
     */
    public ParticipantType.ParameterList.Parameter createParticipantTypeParameterListParameter() {
        return new ParticipantType.ParameterList.Parameter();
    }

    /**
     * Create an instance of {@link NamesType.Alias }
     */
    public NamesType.Alias createNamesTypeAlias() {
        return new NamesType.Alias();
    }

    /**
     * Create an instance of {@link AttributeListType.Attribute }
     */
    public AttributeListType.Attribute createAttributeListTypeAttribute() {
        return new AttributeListType.Attribute();
    }

    /**
     * Create an instance of {@link EntrySet.Entry }
     */
    public EntrySet.Entry createEntrySetEntry() {
        return new EntrySet.Entry();
    }

    /**
     * Create an instance of {@link NamesType }
     */
    public NamesType createNamesType() {
        return new NamesType();
    }

    /**
     * Create an instance of {@link EntrySet.Entry.InteractionList.Interaction }
     */
    public EntrySet.Entry.InteractionList.Interaction createEntrySetEntryInteractionListInteraction() {
        return new EntrySet.Entry.InteractionList.Interaction();
    }

    /**
     * Create an instance of {@link ParticipantType.HostOrganismList }
     */
    public ParticipantType.HostOrganismList createParticipantTypeHostOrganismList() {
        return new ParticipantType.HostOrganismList();
    }

    /**
     * Create an instance of {@link ParticipantType.ExperimentalInteractorList.ExperimentalInteractor }
     */
    public ParticipantType.ExperimentalInteractorList.ExperimentalInteractor createParticipantTypeExperimentalInteractorListExperimentalInteractor() {
        return new ParticipantType.ExperimentalInteractorList.ExperimentalInteractor();
    }

    /**
     * Create an instance of {@link ParticipantType.ExperimentalPreparationList }
     */
    public ParticipantType.ExperimentalPreparationList createParticipantTypeExperimentalPreparationList() {
        return new ParticipantType.ExperimentalPreparationList();
    }

    /**
     * Create an instance of {@link InteractionElementType.InferredInteractionList.InferredInteraction.Participant }
     */
    public InteractionElementType.InferredInteractionList.InferredInteraction.Participant createInteractionElementTypeInferredInteractionListInferredInteractionParticipant() {
        return new InteractionElementType.InferredInteractionList.InferredInteraction.Participant();
    }

    /**
     * Create an instance of {@link ParticipantType }
     */
    public ParticipantType createParticipantType() {
        return new ParticipantType();
    }

    /**
     * Create an instance of {@link EntrySet }
     */
    public EntrySet createEntrySet() {
        return new EntrySet();
    }

    /**
     * Create an instance of {@link LabelType }
     */
    public LabelType createLabelType() {
        return new LabelType();
    }

    /**
     * Create an instance of {@link FeatureElementType.FeatureRangeList }
     */
    public FeatureElementType.FeatureRangeList createFeatureElementTypeFeatureRangeList() {
        return new FeatureElementType.FeatureRangeList();
    }

    /**
     * Create an instance of {@link AvailabilityType }
     */
    public AvailabilityType createAvailabilityType() {
        return new AvailabilityType();
    }

    /**
     * Create an instance of {@link ParticipantType.ExperimentalRoleList.ExperimentalRole }
     */
    public ParticipantType.ExperimentalRoleList.ExperimentalRole createParticipantTypeExperimentalRoleListExperimentalRole() {
        return new ParticipantType.ExperimentalRoleList.ExperimentalRole();
    }

    /**
     * Create an instance of {@link ParticipantType.ParameterList }
     */
    public ParticipantType.ParameterList createParticipantTypeParameterList() {
        return new ParticipantType.ParameterList();
    }

    /**
     * Create an instance of {@link BioSourceType }
     */
    public BioSourceType createBioSourceType() {
        return new BioSourceType();
    }

}


text:
#include  <Uefi.h>
#include  <Library/BaseLib.h>
#include  <Library/BaseMemoryLib.h>

#include  <LibConfig.h>

#include  <wchar.h>

/** The wcslen function computes the length of the wide string pointed to by s.

    @return   The wcslen function returns the number of wide characters that
              precede the terminating null wide character.
**/
size_t wcslen(const wchar_t *s)
{
  return (size_t)StrLen( (CONST CHAR16 *)s);
}

/** The wmemset function copies the value of c into each of the first n wide
    characters of the object pointed to by s.

    @return   The wmemset function returns the value of s.
**/
wchar_t *wmemset(wchar_t *s, wchar_t c, size_t n)
{
  return (wchar_t *)SetMem16( s, (UINTN)(n * sizeof(wchar_t)), (UINT16)c);
}

redpajama_set_name: RedPajamaGithub


text:
<?php
global $lang;

$lang['nb_NO']['FaqsPageEntry']['QUESTIONLABEL'] = 'Spørsmål';
$lang['nb_NO']['FaqsPageEntry']['ANSWERLABEL'] = 'Svar';
$lang['nb_NO']['FaqsPageEntry']['COUNTHITSLABEL'] = 'Tell treff?';
$lang['nb_NO']['FaqsPageEntry']['HITSLABEL'] = 'Antall treff';
$lang['nb_NO']['FaqsPageEntry']['RELATEDLABEL'] = 'Relaterte spørsmål';

$lang['nb_NO']['FaqsHolder']['SEARCHTITLE'] = 'Søk';
$lang['nb_NO']['FaqsHolder']['SEARCHSELCATEGORY'] = 'Kategori';
$lang['nb_NO']['FaqsHolder']['SEARCHALLCATEGORIES'] = 'Alle kategorier';
$lang['nb_NO']['FaqsHolder']['SEARCHBUTTONLABEL'] = 'Søk';
$lang['nb_NO']['FaqsHolder']['SEARCHRESULTS'] = 'Søkeresultater';

$lang['nb_NO']['FaqsHolder.ss']['GOTOFAQ'] = 'Vis dokument';
$lang['nb_NO']['FaqsHolder.ss']['VIEWFAQSCOMMENTS'] = 'Vis kommentarer';
$lang['nb_NO']['FaqsHolder.ss']['NOFAQSENTRIES'] = 'Fant ingen oppføringer';
$lang['nb_NO']['FaqsHolder.ss']['GOTOPREVIOUSPAGE'] = 'Vis den forrige sida';
$lang['nb_NO']['FaqsHolder.ss']['GOTONEXTPAGE'] = 'Vis den neste sida';
$lang['nb_NO']['FaqsHolder.ss']['PREVIOUSPAGE'] = 'Forrige';
$lang['nb_NO']['FaqsHolder.ss']['NEXTPAGE'] = 'Neste';
$lang['nb_NO']['FaqsHolder.ss']['VIEWPAGENUM'] = 'Vis sidetall';
$lang['nb_NO']['FaqsPage.ss']['RELATEDFAQ'] = 'Relatert';

$lang['nb_NO']['FaqsSearchResults.ss']['READMORE'] = 'Les mer … ';
$lang['nb_NO']['FaqsSearchResults.ss']['NORESULTSFAQS'] = 'Beklager, men søket ga ingen resultater.';

$lang['nb_NO']['FaqsTopWidget']['TITLE'] = 'Populære spørsmål';
$lang['nb_NO']['FaqsTopWidget']['LIMIT'] = 'Antall spørsmål som skal vises';
$lang['nb_NO']['FaqsTopWidget']['LABEL'] = 'Skjermelementtittel';

$lang['nb_NO']['FaqsSearchWidget']['TITLE'] = 'Søk i spørsmål';
$lang['nb_NO']['FaqsSearchWidget']['LIMIT'] = 'Oppføringer etter side';
$lang['nb_NO']['FaqsSearchWidget']['LABEL'] = 'Skjermelementtittel';
?>


text:
package org.kuali.rice.kim.api.identity.external;

import org.apache.commons.lang.StringUtils;
import org.kuali.rice.core.api.CoreConstants;
import org.kuali.rice.core.api.mo.AbstractDataTransferObject;
import org.kuali.rice.core.api.mo.ModelBuilder;
import org.w3c.dom.Element;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import java.io.Serializable;
import java.util.Collection;

@XmlRootElement(name = EntityExternalIdentifierType.Constants.ROOT_ELEMENT_NAME)
@XmlAccessorType(XmlAccessType.NONE)
@XmlType(name = EntityExternalIdentifierType.Constants.TYPE_NAME, propOrder = {
    EntityExternalIdentifierType.Elements.CODE,
    EntityExternalIdentifierType.Elements.NAME,
    EntityExternalIdentifierType.Elements.SORT_CODE,
    EntityExternalIdentifierType.Elements.ACTIVE,
    EntityExternalIdentifierType.Elements.ENCRYPTION_REQUIRED,
    CoreConstants.CommonElements.VERSION_NUMBER,
    CoreConstants.CommonElements.OBJECT_ID,
    CoreConstants.CommonElements.FUTURE_ELEMENTS
})
public final class EntityExternalIdentifierType extends AbstractDataTransferObject
    implements EntityExternalIdentifierTypeContract
{
    @XmlElement(name = Elements.CODE, required = true)
    private final String code;
    @XmlElement(name = Elements.NAME, required = false)
    private final String name;
    @XmlElement(name = Elements.SORT_CODE, required = false)
    private final String sortCode;
    @XmlElement(name = Elements.ENCRYPTION_REQUIRED, required = false)
    private final boolean encryptionRequired;
    @XmlElement(name = CoreConstants.CommonElements.VERSION_NUMBER, required = false)
    private final Long versionNumber;
    @XmlElement(name = CoreConstants.CommonElements.OBJECT_ID, required = false)
    private final String objectId;
    @XmlElement(name = Elements.ACTIVE, required = false)
    private final boolean active;
    @SuppressWarnings("unused")
    @XmlAnyElement
    private final Collection<Element> _futureElements = null;

    /**
     * Private constructor used only by JAXB.
     *
     */
    private EntityExternalIdentifierType() {
        this.name = null;
        this.code = null;
        this.sortCode = null;
        this.versionNumber = null;
        this.objectId = null;
        this.active = false;
        this.encryptionRequired = false;
    }

    private EntityExternalIdentifierType(Builder builder) {
        this.name = builder.getName();
        this.code = builder.getCode();
        this.sortCode = builder.getSortCode();
        this.encryptionRequired = builder.isEncryptionRequired();
        this.versionNumber = builder.getVersionNumber();
        this.objectId = builder.getObjectId();
        this.active = builder.isActive();
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getSortCode() {
        return this.sortCode;
    }

    @Override
    public boolean isEncryptionRequired() {
        return this.encryptionRequired;
    }

    @Override
    public Long getVersionNumber() {
        return this.versionNumber;
    }

    @Override
    public String getObjectId() {
        return this.objectId;
    }

    @Override
    public boolean isActive() {
        return this.active;
    }

    /**
     * A builder which can be used to construct {@link CodedAttribute} instances.  Enforces the constraints of the {@link CodedAttributeContract}.
     *
     */
    public final static class Builder
        implements Serializable, ModelBuilder, EntityExternalIdentifierTypeContract
    {

        private String name;
        private String code;
        private String sortCode;
        private boolean encryptionRequired;
        private Long versionNumber;
        private String objectId;
        private boolean active;

        private Builder(String code) {
            setCode(code);
        }

        public static Builder create(String code) {
            return new Builder(code);
        }

        public static Builder create(EntityExternalIdentifierTypeContract contract) {
            if (contract == null) {
                throw new IllegalArgumentException("contract was null");
            }
            Builder builder = create(contract.getCode());
            builder.setName(contract.getName());
            builder.setSortCode(contract.getSortCode());
            builder.setEncryptionRequired(contract.isEncryptionRequired());
            builder.setVersionNumber(contract.getVersionNumber());
            builder.setObjectId(contract.getObjectId());
            builder.setActive(contract.isActive());
            return builder;
        }

        public EntityExternalIdentifierType build() {
            return new EntityExternalIdentifierType(this);
        }

        @Override
        public String getName() {
            return this.name;
        }

        @Override
        public String getCode() {
            return this.code;
        }

        @Override
        public String getSortCode() {
            return this.sortCode;
        }

        @Override
        public boolean isEncryptionRequired() {
            return this.encryptionRequired;
        }

        @Override
        public Long getVersionNumber() {
            return this.versionNumber;
        }

        @Override
        public String getObjectId() {
            return this.objectId;
        }

        @Override
        public boolean isActive() {
            return this.active;
        }

        public void setName(String name) {
            this.name = name;
        }

        public void setCode(String code) {
            if (StringUtils.isWhitespace(code)) {
                throw new IllegalArgumentException("code is empty");
            }
            this.code = code;
        }

        public void setSortCode(String sortCode) {
            this.sortCode = sortCode;
        }

        public void setEncryptionRequired(boolean encryptionRequired) {
            this.encryptionRequired = encryptionRequired;
        }

        public void setVersionNumber(Long versionNumber) {
            this.versionNumber = versionNumber;
        }

        public void setObjectId(String objectId) {
            this.objectId = objectId;
        }

        public void setActive(boolean active) {
            this.active = active;
        }

    }

    /**
     * Defines some internal constants used on this class.
     *
     */
    static class Constants {

        final static String ROOT_ELEMENT_NAME = "entityExternalIdentifierType";
        final static String TYPE_NAME = "entityExternalIdentifierTypeType";
    }

    /**
     * A private class which exposes constants which define the XML element names to use when this object is marshalled to XML.
     *
     */
    static class Elements {

        final static String NAME = "name";
        final static String CODE = "code";
        final static String SORT_CODE = "sortCode";
        final static String ACTIVE = "active";
        final static String ENCRYPTION_REQUIRED = "encryptionRequired";

    }

}


text:
/*
 * This file is generated by jOOQ.
 */
package com.rpkit.moderation.bukkit.database.jooq.tables;

import com.rpkit.moderation.bukkit.database.jooq.Keys;
import com.rpkit.moderation.bukkit.database.jooq.RpkitModeration;
import com.rpkit.moderation.bukkit.database.jooq.tables.records.RpkitVanishedRecord;

import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row1;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableOptions;
import org.jooq.UniqueKey;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;

/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class RpkitVanished extends TableImpl<RpkitVanishedRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * The reference instance of rpkit_moderation.rpkit_vanished
     */
    public static final RpkitVanished RPKIT_VANISHED = new RpkitVanished();

    /**
     * The class holding records for this type
     */
    @Override
    public Class<RpkitVanishedRecord> getRecordType() {
        return RpkitVanishedRecord.class;
    }

    /**
     * The column
     * rpkit_moderation.rpkit_vanished.minecraft_profile_id.
     */
    public final TableField<RpkitVanishedRecord, Integer> MINECRAFT_PROFILE_ID = createField(DSL.name("minecraft_profile_id"), SQLDataType.INTEGER.nullable(false), this, "");

    private RpkitVanished(Name alias, Table<RpkitVanishedRecord> aliased) {
        this(alias, aliased, null);
    }

    private RpkitVanished(Name alias, Table<RpkitVanishedRecord> aliased, Field<?>[] parameters) {
        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
    }

    /**
     * Create an aliased rpkit_moderation.rpkit_vanished table
     * reference
     */
    public RpkitVanished(String alias) {
        this(DSL.name(alias), RPKIT_VANISHED);
    }

    /**
     * Create an aliased rpkit_moderation.rpkit_vanished table
     * reference
     */
    public RpkitVanished(Name alias) {
        this(alias, RPKIT_VANISHED);
    }

    /**
     * Create a rpkit_moderation.rpkit_vanished table reference
     */
    public RpkitVanished() {
        this(DSL.name("rpkit_vanished"), null);
    }

    public <O extends Record> RpkitVanished(Table<O> child, ForeignKey<O, RpkitVanishedRecord> key) {
        super(child, key, RPKIT_VANISHED);
    }

    @Override
    public Schema getSchema() {
        return aliased() ? null : RpkitModeration.RPKIT_MODERATION;
    }

    @Override
    public UniqueKey<RpkitVanishedRecord> getPrimaryKey() {
        return Keys.KEY_RPKIT_VANISHED_PRIMARY;
    }

    @Override
    public RpkitVanished as(String alias) {
        return new RpkitVanished(DSL.name(alias), this);
    }

    @Override
    public RpkitVanished as(Name alias) {
        return new RpkitVanished(alias, this);
    }

    /**
     * Rename this table
     */
    @Override
    public RpkitVanished rename(String name) {
        return new RpkitVanished(DSL.name(name), null);
    }

    /**
     * Rename this table
     */
    @Override
    public RpkitVanished rename(Name name) {
        return new RpkitVanished(name, null);
    }

    // -------------------------------------------------------------------------
    // Row1 type methods
    // -------------------------------------------------------------------------

    @Override
    public Row1<Integer> fieldsRow() {
        return (Row1) super.fieldsRow();
    }
}


text:
    Brian Williams is a security engineer working for WhiteHat Security in Houston, Texas. When he's not hacking, he enjoys gaming, watching streams on Twitch, and hanging out in Houston coffee shops.

    Felt like leaving a comment? Feel free to email me or send me a message on Twitter.


text:
<?php declare(strict_types = 1);

namespace SlevomatCodingStandard\Sniffs\TypeHints;

use SlevomatCodingStandard\Sniffs\TestCase;

class NullableTypeForNullDefaultValueSniffTest extends TestCase
{

	public function testNoErrors(): void
	{
		$report = self::checkFile(__DIR__ . '/data/nullableTypeForNullDefaultValueNoErrors.php');
		self::assertNoSniffErrorInFile($report);
	}

	public function testErrors(): void
	{
		$report = self::checkFile(__DIR__ . '/data/nullableTypeForNullDefaultValueErrors.php');

		self::assertSame(15, $report->getErrorCount());

		$code = NullableTypeForNullDefaultValueSniff::CODE_NULLABILITY_TYPE_MISSING;
		self::assertSniffError($report, 3, $code);
		self::assertSniffError($report, 8, $code);
		self::assertSniffError($report, 12, $code);
		self::assertSniffError($report, 17, $code);
		self::assertSniffError($report, 24, $code);
		self::assertSniffError($report, 29, $code);
		self::assertSniffError($report, 34, $code);
		self::assertSniffError($report, 39, $code);
		self::assertSniffError($report, 44, $code);
		self::assertSniffError($report, 49, $code);
		self::assertSniffError($report, 54, $code);
		self::assertSniffError($report, 59, $code);
		self::assertSniffError($report, 64, $code);
		self::assertSniffError($report, 69, $code);
		self::assertSniffError($report, 73, $code);
	}

	public function testFixable(): void
	{
		$report = self::checkFile(
			__DIR__ . '/data/fixableNullableTypeForNullDefaultValue.php',
			[],
			[NullableTypeForNullDefaultValueSniff::CODE_NULLABILITY_TYPE_MISSING]
		);
		self::assertAllFixedInFile($report);
	}

}


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<TITLE>
Serialized Form (DataFu 1.1.0)
</TITLE>

<META NAME="date" CONTENT="2013-11-06">

<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">

      Overview
      Package
      Class
      Use
      Tree
      Deprecated
      Index
      Help

 PREV
 NEXT

  FRAMES
 NO FRAMES

  All Classes

Serialized Form

Package datafu.pig.util

Class datafu.pig.util.DataFuException extends java.lang.RuntimeException implements Serializable

serialVersionUID: 1L

Serialized Fields

fieldAliases

java.util.Map<K,V> fieldAliases

data

java.lang.Object data

Class datafu.pig.util.FieldNotFound extends org.apache.pig.backend.executionengine.ExecException implements Serializable

serialVersionUID: 1L

      Overview
      Package
      Class
      Use
      Tree
      Deprecated
      Index
      Help

 PREV
 NEXT

  FRAMES
 NO FRAMES

  All Classes

Matthew Hayes, Sam Shah


text:
<?php

namespace Google\AdsApi\Dfp\v201705;

/**
 * This file was generated from WSDL. DO NOT EDIT.
 */
class LineItemErrorReason
{
    const ALREADY_STARTED = 'ALREADY_STARTED';
    const UPDATE_RESERVATION_NOT_ALLOWED = 'UPDATE_RESERVATION_NOT_ALLOWED';
    const ALL_ROADBLOCK_NOT_ALLOWED = 'ALL_ROADBLOCK_NOT_ALLOWED';
    const CREATIVE_SET_ROADBLOCK_NOT_ALLOWED = 'CREATIVE_SET_ROADBLOCK_NOT_ALLOWED';
    const FRACTIONAL_PERCENTAGE_NOT_ALLOWED = 'FRACTIONAL_PERCENTAGE_NOT_ALLOWED';
    const DISCOUNT_NOT_ALLOWED = 'DISCOUNT_NOT_ALLOWED';
    const UPDATE_CANCELED_LINE_ITEM_NOT_ALLOWED = 'UPDATE_CANCELED_LINE_ITEM_NOT_ALLOWED';
    const UPDATE_PENDING_APPROVAL_LINE_ITEM_NOT_ALLOWED = 'UPDATE_PENDING_APPROVAL_LINE_ITEM_NOT_ALLOWED';
    const UPDATE_ARCHIVED_LINE_ITEM_NOT_ALLOWED = 'UPDATE_ARCHIVED_LINE_ITEM_NOT_ALLOWED';
    const CREATE_OR_UPDATE_LEGACY_DFP_LINE_ITEM_TYPE_NOT_ALLOWED = 'CREATE_OR_UPDATE_LEGACY_DFP_LINE_ITEM_TYPE_NOT_ALLOWED';
    const COPY_LINE_ITEM_FROM_DIFFERENT_COMPANY_NOT_ALLOWED = 'COPY_LINE_ITEM_FROM_DIFFERENT_COMPANY_NOT_ALLOWED';
    const INVALID_SIZE_FOR_PLATFORM = 'INVALID_SIZE_FOR_PLATFORM';
    const INVALID_LINE_ITEM_TYPE_FOR_PLATFORM = 'INVALID_LINE_ITEM_TYPE_FOR_PLATFORM';
    const INVALID_WEB_PROPERTY_FOR_PLATFORM = 'INVALID_WEB_PROPERTY_FOR_PLATFORM';
    const INVALID_WEB_PROPERTY_FOR_ENVIRONMENT = 'INVALID_WEB_PROPERTY_FOR_ENVIRONMENT';
    const AFMA_BACKFILL_NOT_ALLOWED = 'AFMA_BACKFILL_NOT_ALLOWED';
    const UPDATE_ENVIRONMENT_TYPE_NOT_ALLOWED = 'UPDATE_ENVIRONMENT_TYPE_NOT_ALLOWED';
    const COMPANIONS_NOT_ALLOWED = 'COMPANIONS_NOT_ALLOWED';
    const ROADBLOCKS_WITH_NONROADBLOCKS_NOT_ALLOWED = 'ROADBLOCKS_WITH_NONROADBLOCKS_NOT_ALLOWED';
    const CANNOT_UPDATE_TO_OR_FROM_CREATIVE_SET_ROADBLOCK = 'CANNOT_UPDATE_TO_OR_FROM_CREATIVE_SET_ROADBLOCK';
    const UPDATE_FROM_BACKFILL_LINE_ITEM_TYPE_NOT_ALLOWED = 'UPDATE_FROM_BACKFILL_LINE_ITEM_TYPE_NOT_ALLOWED';
    const UPDATE_TO_BACKFILL_LINE_ITEM_TYPE_NOT_ALLOWED = 'UPDATE_TO_BACKFILL_LINE_ITEM_TYPE_NOT_ALLOWED';
    const UPDATE_BACKFILL_WEB_PROPERTY_NOT_ALLOWED = 'UPDATE_BACKFILL_WEB_PROPERTY_NOT_ALLOWED';
    const INVALID_COMPANION_DELIVERY_OPTION_FOR_ENVIRONMENT_TYPE = 'INVALID_COMPANION_DELIVERY_OPTION_FOR_ENVIRONMENT_TYPE';
    const COMPANION_BACKFILL_REQUIRES_VIDEO = 'COMPANION_BACKFILL_REQUIRES_VIDEO';
    const COMPANION_DELIVERY_OPTION_REQUIRE_PREMIUM = 'COMPANION_DELIVERY_OPTION_REQUIRE_PREMIUM';
    const DUPLICATE_MASTER_SIZES = 'DUPLICATE_MASTER_SIZES';
    const INVALID_PRIORITY_FOR_LINE_ITEM_TYPE = 'INVALID_PRIORITY_FOR_LINE_ITEM_TYPE';
    const INVALID_ENVIRONMENT_TYPE = 'INVALID_ENVIRONMENT_TYPE';
    const INVALID_ENVIRONMENT_TYPE_FOR_PLATFORM = 'INVALID_ENVIRONMENT_TYPE_FOR_PLATFORM';
    const INVALID_TYPE_FOR_AUTO_EXTENSION = 'INVALID_TYPE_FOR_AUTO_EXTENSION';
    const VIDEO_INVALID_ROADBLOCKING = 'VIDEO_INVALID_ROADBLOCKING';
    const BACKFILL_TYPE_NOT_ALLOWED = 'BACKFILL_TYPE_NOT_ALLOWED';
    const INVALID_BACKFILL_LINK_TYPE = 'INVALID_BACKFILL_LINK_TYPE';
    const DIFFERENT_BACKFILL_ACCOUNT = 'DIFFERENT_BACKFILL_ACCOUNT';
    const COMPANION_DELIVERY_OPTIONS_NOT_ALLOWED_WITH_BACKFILL = 'COMPANION_DELIVERY_OPTIONS_NOT_ALLOWED_WITH_BACKFILL';
    const INVALID_WEB_PROPERTY_FOR_ADX_BACKFILL = 'INVALID_WEB_PROPERTY_FOR_ADX_BACKFILL';
    const INVALID_SIZE_FOR_ENVIRONMENT = 'INVALID_SIZE_FOR_ENVIRONMENT';
    const TARGET_PLATOFRM_NOT_ALLOWED = 'TARGET_PLATOFRM_NOT_ALLOWED';
    const INVALID_LINE_ITEM_CURRENCY = 'INVALID_LINE_ITEM_CURRENCY';
    const LINE_ITEM_CANNOT_HAVE_MULTIPLE_CURRENCIES = 'LINE_ITEM_CANNOT_HAVE_MULTIPLE_CURRENCIES';
    const CANNOT_CHANGE_CURRENCY = 'CANNOT_CHANGE_CURRENCY';
    const INVALID_FOR_OFFLINE = 'INVALID_FOR_OFFLINE';
    const INVALID_LINE_ITEM_DATE_TIME = 'INVALID_LINE_ITEM_DATE_TIME';
    const INVALID_COST_PER_UNIT_FOR_CPA = 'INVALID_COST_PER_UNIT_FOR_CPA';
    const UPDATE_CPA_COST_TYPE_NOT_ALLOWED = 'UPDATE_CPA_COST_TYPE_NOT_ALLOWED';
    const UPDATE_VCPM_COST_TYPE_NOT_ALLOWED = 'UPDATE_VCPM_COST_TYPE_NOT_ALLOWED';
    const MASTER_COMPANION_LINE_ITEM_CANNOT_HAVE_VCPM_COST_TYPE = 'MASTER_COMPANION_LINE_ITEM_CANNOT_HAVE_VCPM_COST_TYPE';
    const DUPLICATED_UNIT_TYPE = 'DUPLICATED_UNIT_TYPE';
    const MULTIPLE_GOAL_TYPE_NOT_ALLOWED = 'MULTIPLE_GOAL_TYPE_NOT_ALLOWED';
    const INVALID_UNIT_TYPE_COMBINATION_FOR_SECONDARY_GOALS = 'INVALID_UNIT_TYPE_COMBINATION_FOR_SECONDARY_GOALS';
    const INVALID_CREATIVE_TARGETING_NAME = 'INVALID_CREATIVE_TARGETING_NAME';
    const INVALID_CREATIVE_CUSTOM_TARGETING_MATCH_TYPE = 'INVALID_CREATIVE_CUSTOM_TARGETING_MATCH_TYPE';
    const INVALID_CREATIVE_ROTATION_TYPE_WITH_CREATIVE_TARGETING = 'INVALID_CREATIVE_ROTATION_TYPE_WITH_CREATIVE_TARGETING';
    const CANNOT_OVERBOOK_WITH_CREATIVE_TARGETING = 'CANNOT_OVERBOOK_WITH_CREATIVE_TARGETING';
    const PLACEHOLDERS_DO_NOT_MATCH_PROPOSAL = 'PLACEHOLDERS_DO_NOT_MATCH_PROPOSAL';
    const UNSUPPORTED_LINE_ITEM_TYPE_FOR_THIS_API_VERSION = 'UNSUPPORTED_LINE_ITEM_TYPE_FOR_THIS_API_VERSION';
    const NATIVE_CREATIVE_TEMPLATE_REQUIRED = 'NATIVE_CREATIVE_TEMPLATE_REQUIRED';
    const CANNOT_HAVE_CREATIVE_TEMPLATE = 'CANNOT_HAVE_CREATIVE_TEMPLATE';
    const CANNOT_INCLUDE_NATIVE_CREATIVE_TEMPLATE = 'CANNOT_INCLUDE_NATIVE_CREATIVE_TEMPLATE';
    const CANNOT_INCLUDE_NATIVE_PLACEHOLDER_WITHOUT_TEMPLATE_ID = 'CANNOT_INCLUDE_NATIVE_PLACEHOLDER_WITHOUT_TEMPLATE_ID';
    const NO_SIZE_WITH_DURATION = 'NO_SIZE_WITH_DURATION';
    const UNKNOWN = 'UNKNOWN';

}


text:
package org.qipki.crypto.x509;

import java.security.cert.X509Certificate;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.bouncycastle.asn1.x509.AuthorityKeyIdentifier;
import org.bouncycastle.asn1.x509.BasicConstraints;
import org.bouncycastle.asn1.x509.DistributionPoint;
import org.bouncycastle.asn1.x509.GeneralName;
import org.bouncycastle.asn1.x509.GeneralNames;
import org.bouncycastle.asn1.x509.NameConstraints;
import org.bouncycastle.asn1.x509.PolicyInformation;
import org.bouncycastle.asn1.x509.ReasonFlags;
import org.bouncycastle.jce.PKCS10CertificationRequest;
import org.joda.time.Interval;
import org.qi4j.api.common.Optional;

public interface X509ExtensionsReader
{

    List<X509ExtensionHolder> extractRequestedExtensions( PKCS10CertificationRequest pkcs10 );

    Map.Entry<X509GeneralName, String> asImmutableMapEntry( GeneralName generalName );

    Map<X509GeneralName, String> asMap( @Optional GeneralNames generalNames );

    AuthorityKeyIdentifier getAuthorityKeyIdentifier( X509Certificate cert );

    BasicConstraints getBasicConstraints( X509Certificate cert );

    DistributionPoint[] getCRLDistributionPoints( X509Certificate cert );

    Set<PolicyInformation> getCertificatePolicies( X509Certificate cert );

    GeneralNames getIssuerAlternativeNames( X509Certificate cert );

    Set<KeyUsage> getKeyUsages( X509Certificate cert );

    Set<ExtendedKeyUsage> getExtendedKeyUsages( X509Certificate cert );

    Set<NetscapeCertType> getNetscapeCertTypes( X509Certificate cert );

    String getNetscapeCertComment( X509Certificate cert );

    NameConstraints getNameConstraints( X509Certificate cert );

    Set<PolicyConstraint> getPolicyConstraints( X509Certificate cert );

    Set<PolicyMapping> getPolicyMappings( X509Certificate cert );

    Interval getPrivateKeyUsagePeriod( X509Certificate cert );

    Set<RevocationReason> getRevocationReasons( ReasonFlags reasonFlags );

    GeneralNames getSubjectAlternativeNames( X509Certificate cert );

    byte[] getSubjectKeyIdentifier( X509Certificate cert );

}


text:
package com.planet_ink.coffee_mud.Behaviors;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.planet_ink.coffee_mud.Behaviors.interfaces.*;
import com.planet_ink.coffee_mud.CharClasses.interfaces.*;
import com.planet_ink.coffee_mud.Commands.interfaces.*;
import com.planet_ink.coffee_mud.Common.interfaces.*;
import com.planet_ink.coffee_mud.Exits.interfaces.*;
import com.planet_ink.coffee_mud.Items.interfaces.*;
import com.planet_ink.coffee_mud.Libraries.interfaces.TrackingLibrary;
import com.planet_ink.coffee_mud.Locales.interfaces.*;
import com.planet_ink.coffee_mud.MOBS.interfaces.*;
import com.planet_ink.coffee_mud.Races.interfaces.*;

import java.util.*;

@SuppressWarnings({"unchecked","rawtypes"})
public class ProtectedCitizen extends ActiveTicker
{
	@Override public String ID(){return "ProtectedCitizen";}
	@Override protected int canImproveCode(){return Behavior.CAN_MOBS;}
	protected static String zapper=null;
	protected static String defcityguard="cityguard";
	protected static String[] defclaims={"Help! I'm being attacked!","Help me!!"};
	protected String cityguard=null;
	protected String[] claims=null;
	protected int radius=7;
	protected int maxAssistance=1;
	protected boolean wander=false;

	public ProtectedCitizen()
	{
		super();
		minTicks=1; maxTicks=3; chance=99; radius=7; maxAssistance=1;
		tickReset();
	}

	@Override
	public String accountForYourself()
	{
		return "whiney citizen";
	}

	@Override
	public void setParms(String parms)
	{
		super.setParms(parms);
		cityguard=null;
		zapper=null;
		wander=parms.toUpperCase().indexOf("WANDER")>=0;
		radius=CMParms.getParmInt(parms,"radius",radius);
		maxAssistance=CMParms.getParmInt(parms,"maxassists",maxAssistance);
		claims=null;
	}

	public String getCityguardName()
	{
		if(cityguard!=null) return "-NAME \"+"+cityguard+"\"";
		if(zapper!=null) return zapper;
		final String s=getParmsNoTicks();
		if(s.length()==0)
		{ cityguard=defcityguard; return "-NAME \"+"+cityguard+"\"";}
		char c=';';
		int x=s.indexOf(c);
		if(x<0){ c='/'; x=s.indexOf(c);}
		if(x<0)
		{ cityguard=defcityguard; return "-NAME \"+"+cityguard+"\"";}
		cityguard=s.substring(0,x).trim();
		if(cityguard.length()==0)
		{ cityguard=defcityguard; return "-NAME \"+"+cityguard+"\"";}
		if((cityguard.indexOf('+')>0)
		||(cityguard.indexOf('-')>0)
		||(cityguard.indexOf('>')>0)
		||(cityguard.indexOf('<')>0)
		||(cityguard.indexOf('=')>0))
		{
			zapper=cityguard;
			cityguard=null;
			return zapper;
		}
		return cityguard;
	}

	public String[] getClaims()
	{
		if(claims!=null) return claims;
		String s=getParmsNoTicks();
		if(s.length()==0)
		{ claims=defclaims; return claims;}

		char c=';';
		int x=s.indexOf(c);
		if(x<0){ c='/'; x=s.indexOf(c);}
		if(x<0)
		{ claims=defclaims; return claims;}
		s=s.substring(x+1).trim();
		if(s.length()==0)
		{ claims=defclaims; return claims;}
		final Vector V=new Vector();
		x=s.indexOf(c);
		while(x>=0)
		{
			final String str=s.substring(0,x).trim();
			s=s.substring(x+1).trim();
			if(str.length()>0)V.addElement(str);
			x=s.indexOf(c);
		}
		if(s.length()>0)V.addElement(s);
		claims=new String[V.size()];
		for(int i=0;i<V.size();i++)
			claims[i]=(String)V.elementAt(i);
		return claims;
	}

	public boolean assistMOB(MOB mob)
	{
		int assistance=0;
		for(int i=0;i<mob.location().numInhabitants();i++)
		{
			final MOB M=mob.location().fetchInhabitant(i);
			if((M!=null)
			&&(M!=mob)
			&&(M.getVictim()==mob.getVictim()))
			   assistance++;
		}
		if(assistance>=maxAssistance)
			return false;

		final String claim=getClaims()[CMLib.dice().roll(1,getClaims().length,-1)].trim();
		if(claim.startsWith(","))
			mob.doCommand(CMParms.parse("EMOTE \""+claim.substring(1).trim()+"\""),Command.METAFLAG_FORCED);
		else
			mob.doCommand(CMParms.parse("YELL \""+claim+"\""),Command.METAFLAG_FORCED);

		final Room thisRoom=mob.location();
		final Vector V=new Vector();
		TrackingLibrary.TrackingFlags flags;
		flags = new TrackingLibrary.TrackingFlags()
				.plus(TrackingLibrary.TrackingFlag.OPENONLY);
		if(!wander) flags.plus(TrackingLibrary.TrackingFlag.AREAONLY);
		CMLib.tracking().getRadiantRooms(thisRoom,V,flags,null,radius,null);
		for(int v=0;v<V.size();v++)
		{
			final Room R=(Room)V.elementAt(v);
			MOB M=null;
			if(R.getArea().Name().equals(mob.location().getArea().Name()))
				for(int i=0;i<R.numInhabitants();i++)
				{
					final MOB M2=R.fetchInhabitant(i);
					if((M2!=null)
					&&(M2.mayIFight(mob.getVictim()))
					&&(M2!=mob.getVictim())
					&&(CMLib.flags().aliveAwakeMobileUnbound(M2,true)
					&&(!M2.isInCombat())
					&&(CMLib.flags().isMobile(M2))
					&&(CMLib.masking().maskCheck(getCityguardName(),M2,false))
					&&(!BrotherHelper.isBrother(mob.getVictim(),M2,false))
					&&(canFreelyBehaveNormal(M2))
					&&(!CMLib.flags().isATrackingMonster(M2))
					&&(CMLib.flags().canHear(M2))))
					{
						M=M2; break;
					}
				}
			if(M!=null)
			{
				if(R==mob.location())
					CMLib.combat().postAttack(M,mob.getVictim(),M.fetchWieldedItem());
				else
				{
					final int dir=CMLib.tracking().radiatesFromDir(R,V);
					if(dir>=0)
						CMLib.tracking().walk(M,dir,false,false);
				}
			}
		}
		return true;
	}

	@Override
	public boolean tick(Tickable ticking, int tickID)
	{
		super.tick(ticking,tickID);
		if(canAct(ticking,tickID))
		{
			if((ticking instanceof MOB)&&(((MOB)ticking).isInCombat()))
				assistMOB((MOB)ticking);
		}
		return true;
	}
}


text:
module LatencyStats
  class ActionsController < ::LatencyStats::ApplicationController

    def index
      @page_title = I18n.t('latency_stats.action_metrics')

      collector = LatencyStats::Collector.instance
      metrics = collector.action_metrics

      respond_to do |format|
        format.html { @presenter = MetricsPresenter.new(metrics, self) }
        format.csv do
          send_data(
            LatencyStats::Exporter.export_actions(metrics),
            type: "text/csv",
            filename: "Actions_#{Time.now.strftime('%Y%m%d%H%M%S')}.csv"
          )
        end
      end
    end

    def show
      @page_title = params[:id]
      collector = LatencyStats::Collector.instance
      histogram = collector.histogram(params[:id])

      respond_to do |format|
        format.html { @presenter = HistogramPresenter.new(histogram) }
        format.csv do
          send_data(
            LatencyStats::Exporter.export_histogram(histogram),
            type: "text/csv",
            filename: "#{params[:id]}_#{Time.now.strftime('%Y%m%d%H%M%S')}.csv"
          )
        end
      end
    end
  end
end


text:
import { home } from 'homeController';
import { gallery } from 'galleryController';
import { earthquakes } from 'earthquakesController';
import { weather } from 'weatherController';
import { upload } from 'uploadController';
import { single } from 'singleController';

(function routing() {

    let router = new Navigo(null, true);
        router.on('/', earthquakes)
        .on('/home', home)
        .on('/gallery', gallery)
        .on('/earthquakes', earthquakes)
        .on('/weather/:id', weather)
        .on('/upload', upload)
        .on('/single/:id', single)
        //TO DO single has to be with id
        .resolve();
}());


text:
This tools is use for calculate IP address, netmask.
/30-/32 have bugs not fixed yet.


text:
using Caliburn.Micro;

namespace Xemio.SmartNotes.Client.Windows.Views.Content.Search
{
    public class SearchViewModel : Screen
    {
        public SearchViewModel()
        {
        }
    }
}


text:
from abc import ABCMeta, abstractmethod

class JSONAPIRequestInterface(object):
    _metaclass__ = ABCMeta

    @abstractmethod
    def get_json_api_version(self):
        return

    @abstractmethod
    def get_json(self, force=False):
        return

    @abstractmethod
    def get_includes(self):
        return

    @abstractmethod
    def get_requested_fields(self):
        return


text:
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) > [sip.js](./sip.js.md) > [IncomingRequest](./sip.js.incomingrequest.md) > [message](./sip.js.incomingrequest.message.md)

## IncomingRequest.message property

The incoming message.

<b>Signature:</b>

```typescript
readonly message: IncomingRequestMessage;
```


text:
// @flow
import type {AppState} from '../common/constants';
import isEmpty from 'lodash/isEmpty';

export const getServiceById = (state: AppState, serviceId: string) =>
  state.service.byId[serviceId];

export const getAll = (state: AppState/*, props: Object*/) =>
  state.service.all.map((serviceId) => getServiceById(state, serviceId));

export const getServicesObject = (state: AppState) =>
  state.service.byId;

export const getIsFetchingService = (state: AppState) =>
  state.service.isFetching;

export const getIsLoading = (state: AppState) =>
  state.service.isFetching && isEmpty(state.service.all);


text:
/*

JavaScript:  Pregnancy Calculator
February 28, 1999

This calculator was created by Charles Hu for the Medical College of
Wisconsin General Internal Medicine Clinic.  This calculator may not be
copied without consent from the author.  Please contact him at
chuckhu@hotmail.com or chuckhu@mcw.edu

*/

var ie4 = (document.all && !document.getElementById)? true : false;
var ns6 = (document.getElementById)? true : false;

var dayName = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
var monName = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");

	//  Create array of maximum days
	var maxDays = new Array(12);

	maxDays[0] = 31;	// January has 31 days
	maxDays[1] = 28;
	maxDays[2] = 31;
	maxDays[3] = 30;
	maxDays[4] = 31;
	maxDays[5] = 30;
	maxDays[6] = 31;
	maxDays[7] = 31;
	maxDays[8] = 30;
	maxDays[9] = 31;
	maxDays[10] = 30;
	maxDays[11] = 31;

/*

Get values from LMP date dropdowns, calculates value for lmpfield (field127)

*/
function whatDay(form,isEdd,lmpfield) {

    var lmpReliability = eval(getLabel("selectfield126")).value;
    var month = eval(getLabel("month0")).selectedIndex -1;
    var date = eval(getLabel("date0")).selectedIndex;
	var year = eval(getLabel("year0")).selectedIndex;
	var yearVal = eval(getLabel("year0")).options[year].text;
	var today = new Date();
	thisYear = today.getYear();

    //  Year 2000 test
	if (thisYear < 300) {thisYear = thisYear + 1900}

	//  Change dates selection to reflect maxDays in selected month
	if (month == 1) {		//  February
		if ((yearVal / 4) == Math.floor(yearVal/4)) {
			if ((yearVal / 100) == Math.floor(yearVal/100)) {
				if ((yearVal / 400) == Math.floor(yearVal/400)) {newDays = 29;}
				else {newDays = 28;}
			} else {newDays = 29;}
		} else {newDays = 28;}
	} else {newDays = maxDays[month]}

	//daysObject = form.date;
	daysObject = eval(getLabel("date0"))
	curDays = daysObject.length-1;
	//alert("date: " + date + " year: " + year +  " curDays: " + curDays + " newDays: " + newDays);
	if (curDays > newDays) {
    	for (i=0; i<(curDays - newDays); i++) {
			daysObject.options[daysObject.options.length - 1] = null
		}
		// if (date > newDays) {daysObject.selectedIndex = (daysObject.options.length - 1);}
	}
	if (newDays > curDays) {
		for (i=curDays; i < newDays; i++) {
		    len = daysObject.options.length-1
		    // alert("i" + i + "len: " + len);
			newOption = new Option(len + 1);
			daysObject.options[i+1] = newOption;
		}
	}

	//  What year was selected?
	if (year == 1) {year = thisYear - 1;}	// Last year
		else {
			if ((isEdd == 2) && (year == 2)) {year = thisYear + 1}	// Next year
				else {year = thisYear;}		// This year
		}

	//  The choices for EDD year are off by 1, compared to LMP choices
	if (isEdd == 1) {year = year + 1}

	var whatDate = new Date(monName[month] + " " + date + ", " + year + " 12:00:00");
    // alert("chosen date: " + whatDate + " \nToday: " + today);
    if (whatDate > today) {
        alert("LMP date is in the future - please change to a date in the past.");
    }
    //fill out the lmpfield for the zeprs form
    // some formatting of month value

    if (month < 9)
    {
        var zeprslmpmonth = "0"+(month+1);
    }
    else
    {
        var zeprslmpmonth = (month+1);
    }
    if (date < 10)
    {
        var zeprslmpdate = "0"+(date);
    }
    else
    {
        var zeprslmpdate = (date) ;
    }
    var zeprslmpdate = year + "-" + zeprslmpmonth+ "-" + zeprslmpdate;
    //lmpfield.value = zeprslmpdate;
    eval(getLabel(lmpfield)).value = zeprslmpdate;

	var eddNum;
	if (form.name == "DueDate") {eddNum = 0} else
		if (form.name == "eddForm") {eddNum = 1} else
		if (form.name == "weeksPreg") {eddNum = 2}

	if (isEdd == 2) {
		return true
	} else {
		eval(getLabel("calcYet")).value = 0
			//  Since the LMP or EDD is being changed, we can't calculate EGA yet.
	}

    eval(getLabel("calcYet")).value = ""
	return true
}

/*
Gets values from the LMP date dropdowns;
sends them to display() function for display of EDD
*/

function dueDate(form, lmpField, egaField, eddField, eddNice) {

    var LMPmonth = eval(getLabel("month0")).selectedIndex - 1;
    var LMPdate = eval(getLabel("date0")).selectedIndex;
    var LMPyear = eval(getLabel("year0")).selectedIndex;

    if (LMPyear == -1) {
        alert("Please select a year.");
        form.year.focus();
        return false;
    }

    eval(getLabel("calcYet")).value = 1;
    //  Now that we're calculating EDD, we may also
    //  calculate EGA later

    var today = new Date();
    var field1 = eval(getLabel("field1")).value;

    if (field1 != "") {
        var dvals = field1.split("-");
        var year = dvals[0];
        var month = dvals[1];
        var day = dvals[2];
        today.setFullYear(year);
        today.setMonth(month - 1);
        today.setDate(day);
    }

    thisYear = today.getYear();
    //  Year 2000 test
    if (thisYear < 300) {
        thisYear = thisYear + 1900
    }

    //  What year was selected?
    if (LMPyear == 1) {
        LMPyear = thisYear - 1;
        // Last year
    } else {
        LMPyear = thisYear;
        // This year
    }

    if (!checkDate(LMPmonth, LMPdate, LMPyear)) {
        alert("dueDate function: " + monName[LMPmonth] + " has " + maxDays[LMPmonth] +
              " days.");
        form.date.focus();
        return false;
    }

    var lmp = new Date(monName[LMPmonth] + " " + LMPdate + ", " +
                       LMPyear + " 12:00:00");

    var lmpTime = lmp.getTime();

    eval(getLabel("lmpdate")).value = lmp.getTime();
    //var concep = 14;	// conception occurs at 2 weeks (14 days)
    //var first = 84;	// end of first trimester at 12 weeks
    //var second = 189;	// end of second trimester
    var edd = 280;
    // estimated due date

    msPerDay = 24 * 60 * 60 * 1000;
    // Number of milliseconds per day
    var elapsed = (today.getTime() - lmp.getTime()) / msPerDay;
    elapsed = Math.round(elapsed);
    // alert("field1: " + field1 + " today's date: " + (today.getMonth() + 1) + "/" + today.getDate() + " elapsed: " + elapsed);
    if (elapsed > 315) {
        alert("The value entered for LMP was > 45 weeks ago - please re-enter.");
    } else {
        //  The '1' at the third position indicates this is EDD
        //alert("lmp.getTime(): " + lmp.getTime() + " edd: " + edd + " elapsed: " + elapsed + " lmpField: " + lmpField + " egaField: " + egaField + " eddField: " + eddField + " eddNice: " + eddNice );
        displayEGA(lmpTime, edd, 1, 0, lmpField, "Date", egaField, eddField, eddNice);
        //displayEGA(lmpTime, edd, 1, 0);
    }
    return true;
}

/*
Calculates EDD and displays it
*/
function displayEGA(whatDate,numDays,isEdd,isLMP,lmpField,queryType,egaField,eddField,eddNice) {
	var today = new Date();
    var field1 = eval(getLabel("field1")).value;

    if (field1 != "") {
        var dvals = field1.split("-");
        var year = dvals[0];
        var month = dvals[1];
        var day = dvals[2];
        today.setFullYear(year);
        today.setMonth(month-1);
        today.setDate(day);
    }
    if (queryType == "Date") {
	var lmp = new Date(whatDate);
        // /alert ("whatDate: "+whatDate+" numDays"+numDays+" isEdd: "+isEdd+" isLMP: "+isLMP+ " lmpField: " + lmpField + " egaField: " + egaField + " eddField: " + eddField + " eddNice: " + eddNice );
    // var futureDate = lmp.getTime() + (numDays * 24*60*60*1000);
	} else {
        // alert("non-date");
    var egaSeconds = today.getTime() - (whatDate * 24*60*60*1000);
	var lmp = new Date(egaSeconds);
	var egalmpyear = "20" + String(lmp.getYear()).substring(1,3);
	var egalmpmonth = lmp.getMonth()+1;
	if (egalmpmonth <10) {
	egalmpmonthFixed = "0" + egalmpmonth;
	} else {
	egalmpmonthFixed = egalmpmonth;
	}
	if (lmp.getDate() <10) {
	egalmpdate = "0" + lmp.getDate();
	} else {
	egalmpdate = lmp.getDate();
	}
	eval(getLabel("lmpdate")).value = lmp.getTime();
	var zeprslmpdate = egalmpyear + "-" + egalmpmonthFixed+ "-" + egalmpdate;
    eval(getLabel(lmpField)).value = zeprslmpdate;
	}
	var futureDate = lmp.getTime() + (numDays * 24*60*60*1000);

	//  convert lmp to milliseconds, and add appropriate msec
    if (queryType == "Date") {
	var future = new Date(whatDate);
    } else {
    var future = new Date();
    }
	future.setTime(futureDate);  // convert from msec to actual date
	future.setHours(12);		// set the time to 12:00 pm

	var futureDay = dayName[future.getDay()];
	var futureMonth = monName[future.getMonth()];
	var futureYear = future.getYear();
    // alert(futureDay+"/"+futureMonth+"/"+futureYear);
	if (isEdd == 1) {		// Change the EDD selection boxes
        eval(getLabel("month1")).value = future.getMonth()+1;
         // eval(getLabel("date1")).value = future.getDate() - 1;
        eval(getLabel("date1")).value = future.getDate();
         //eval(getLabel("year1")).value = yearChoice;
        // eval(getLabel("year1")).value = futureYear;
        eval(getLabel("year1")).value = "20" + String(futureYear).substring(1,3);
        eval(getLabel("eddDate")).value = future.getTime();
        displayEDD(eddField, eddNice)
	}
	//alert("eddField = "+eddFieldval+" eddFieldval = " + eval(getLabel(eddFieldval)));

	//  Calculate # weeks pregnant, based on today's date
	if ((isEdd == 1) || (isLMP == 1)) {
		// First, reset all values in the purple box

        eval(getLabel("weeks")).value = "";
		today.setHours(13);

        /* Since LMP is set to 12:00 noon, we must set
           today's time temporarily to 1:00 pm, so that
           if today date = LMP date, then
           today's time is GREATER than LMP time
        */

		var todaydate = today.getTime();
		//var lmpdate = document.DueDate.theDate.value;
		var lmpdate = eval(getLabel("lmpdate")).value;
		//var edd = document.eddForm.theDate.value;
		var edd = eval(getLabel("eddDate")).value;

		edd = Number(edd) + 10 *7*24*60*60*1000;
				//  Allow for up to 50 weeks EGA

		if ((todaydate > lmpdate) &&
			(todaydate < edd)) {
				// Check that today's date is BETWEEN
				// the LMP and EDD
                // Don't do this when using the EGA dropdown for ultrasound
                if (queryType == "Date") {
                 eval(getLabel("weeks")).value = calcEGA(lmpdate,todaydate);
                 eval(getLabel(egaField)).value = calcEGAdays(lmpdate,todaydate);
                 } else {
                 eval(getLabel("weeks")).value = calcEGA(lmpdate,todaydate);
                 }
		    }
		return true
	}

	//  Year-2000 compliance test
	if (futureYear < 300) {
		futureYear = futureYear + 1900
	}

	var futureDisplay = futureDay + ", " + futureMonth + " " +
		future.getDate() + ", " + futureYear;

	return futureDisplay;
}

function checkDate(month,day,year) {
	//  Reset February's "maxdays"
	maxDays[1] = 28;

	//  Check February leap year
	//  Years divisible by 100 are NOT leap years (1700, 1800, 1900),
	//  	except years divisible by 400 (2000, 2400) are leap years.

	if ((month == 1) && ((year % 4) == 0)) {
		if (((year % 100) == 0) && ((year % 400) != 0)) {
			maxDays[1] = 28;
		} else {
			maxDays[1] = 29;
		}
	}

	if (day > maxDays[month]) {
	// alert("month: " + month + " day: " + day +" maxDays[month]: " + maxDays[month]);
		return false;
	}

	return true;
}

function calcEGA(lmpDate,desDate) {
	var daysEGA = (desDate - lmpDate) / (1000*60*60*24);
	var EGA = Math.floor(daysEGA / 7);
	var EGAfrac = Math.round(daysEGA % 7);
		//  Daylight Savings Time (DST) makes this calculation
		//  veer slightly off from being integer.

	if (EGAfrac == 7) {	//  Another correction for DST
		EGAfrac = 0;
		EGA = EGA + 1;
	}

	if (EGAfrac == 0) {
		return EGA
	}

	EGA = EGA + " " + EGAfrac + "/7";
	//alert("lmpDate: "+lmpDate+" desDate:"+desDate+" EGA:"+EGA);
	return EGA
}

function calcEGAweeksDays(lmpDate,desDate) {
	var daysEGA = (desDate - lmpDate) / (1000*60*60*24);
	var EGA = Math.floor(daysEGA / 7);
	var EGAfrac = Math.round(daysEGA % 7);
		//  Daylight Savings Time (DST) makes this calculation
		//  veer slightly off from being integer.

	if (EGAfrac == 7) {	//  Another correction for DST
		EGAfrac = 0;
		EGA = EGA + 1;
	}

	if (EGAfrac == 0) {
		return EGA
	}

	EGA = EGA + " " + EGAfrac + "/7";
	//alert("lmpDate: "+lmpDate+" desDate:"+desDate+" EGA:"+EGA);
	return EGA
}

function calcEGAdays(lmpDate,desDate) {
	var daysEGA = (desDate - lmpDate) / (1000*60*60*24);
	daysEGA = Math.round(daysEGA)
	return daysEGA
}

function weekstoDate(form) {
	if (document.weeksPreg.calcYet.value == 0) {
		alert("Please calculate a \"Last Menstrual Period\" " +
			"or an \"Estimated Due Date\" first.");
		return false
	}

	var add = form.weeks.value;

	if (add.indexOf("/") != -1) {		// Is "add" a fraction?
		add = evalFrac(add);
		if (add == false) {
			return false
		}
	}

	if (add == "pi") {
		alert("Pi = 3.14159265358979323...  " +
		"This calculator was created by Charles Hu.");
	}

        if ((add == "") || (isNaN(add)) || (add < 0) || (add > 50)) {
                alert("WARNING: Please enter a valid number of weeks.");
                form.weeks.value = "";
                form.weeks.focus();
                return false
        }

	//  Adding milliseconds
	//var lmpDate = Number(document.DueDate.theDate.value);
	var lmpDate = Number(eval(getLabel("lmpdate")));
	var egaMsec = lmpDate + (add * 7*24*60*60*1000);

	var today = new Date();
	var todayYr = today.getYear();

	//  Convert the EGA to a date
	var ega = new Date();
	ega.setTime(egaMsec);
	var egaYr = ega.getYear();

	if (egaYr < 300) {egaYr = egaYr + 1900}
	if (todayYr < 300) {todayYr = todayYr + 1900}

	var egaYear = (egaYr - todayYr) + 1;

	form.month.selectedIndex = ega.getMonth();
	form.date.selectedIndex = ega.getDate() - 1;
	form.year.selectedIndex = egaYear;
	return true
}

function evalFrac(frac) {
	var slash = frac.indexOf("/");

	if (frac.charAt(slash + 1) != 7) {	// Is denominator 7?
		alert("Weeks are expressed in fractions of 7.");
		document.weeksPreg.weeks.focus();
		return false;
	}

	//  Check numerator
	if ((Number(frac.charAt(slash-1)) > 6) ||
	   //isNaN(chaz) || frac.chuckhu(swish)
	   (isNaN(frac.charAt(slash-1)))) {
		alert("Please enter a proper fraction.");
		document.weeksPreg.weeks.focus();
		return false;
	}

	if ((frac.charAt(slash-2) != " ") && (frac.indexOf("/") != 1))
		{alert("Please enter a proper fraction.");
		document.weeksPreg.weeks.focus();
		return false;
	}

	//  Evaluate the fraction
	var top = Number(frac.charAt(slash-1));
	var fraction = top / 7;

	//  Anything before the fraction?
	if (frac.indexOf("/") == 1) {
		if (fraction == 0) {
			fraction = 0.001
				//  Prevents script from interpreting
				//  this as a 'false' value
		}
		return fraction
	}

	var fullNum = frac.substring(0,frac.indexOf(" "));
	if (isNaN(fullNum)) {
		alert("Please enter a proper number of weeks.");
		document.weeksPreg.weeks.focus();
		return false
	}

	frac = Number(fullNum) + fraction;
		if (frac == 0) {frac = 0.001}
	return frac;
}

function getLMP(form) {
	var eddMonth = form.month.selectedIndex-1;
	var eddDate = form.date.selectedIndex + 1;
	var eddYear = form.year.selectedIndex;

	if (eddYear == -1) {
		alert("Please select a year.");
		form.year.focus();
		return false;
	}

	document.weeksPreg.calcYet.value = 1;
		//  Now that we're calculating LMP, we may also
		//  calculate EGA later

	var today = new Date();
	thisYear = today.getYear();

	//  Year 2000 test
	if (thisYear < 300) {
		thisYear = thisYear + 1900
	}

	//  What year was selected?

	if (eddYear == 0) {
		eddYear = thisYear;	// This year
	} else {
		eddYear = thisYear + 1;	// Next year
	}

	if (!checkDate(eddMonth,eddDate,eddYear)) {
		alert(monName[eddMonth] + " has " + maxDays[eddMonth] +
			" days.");
		form.date.focus();
		return false;
	}

	var edd = new Date(monName[eddMonth] + " " + eddDate + ", " +
		eddYear + " 12:00:00");

	form.theDate.value = edd.getTime();

	var lmp = -280;		// estimated due date
	//var concep = -266;	// conception occurs at 2 weeks (14 days)
	//var first = -196;	// end of first trimester at 12 weeks
	//var second = -91;	// end of second trimester

	//  The last "1" indicates this is LMP
	displayEGA(edd.getTime(),lmp,0,1,"Date");

	return true;
}

function resetForm() {
	document.DueDate.reset();
	document.eddForm.reset();
	document.weeksPreg.reset();
	return true
}

function dateSelect(Month,dd,Year,isEdd,lmpField) {
var today = new Date();

//
// JavaScript:  Choose Year
//
// we don't need whatDay for edd dropdown
if (isEdd == 0)
{
document.writeln("<select id=\"year" + isEdd + "\" name=\"year\" " +
	"onChange=\"whatDay(this.form," + isEdd + ",'" + lmpField + "');calculateEDD();\">\n");
}
else
{
    document.writeln("<select id=\"year" + isEdd + "\" name=\"year\" onChange=\"displayEDD()\">");
}
//	For dates before the year 2000 (ex. 1999), the year
//	is stored as "xx" (ex. 99).  However, for dates on or
//	after the year 2000 (ex. 2003), the year is stored as
//	"xxxx" (ex. 2003).

if (Year < 300) {
	Year = Year + 1900
	}

    var thisYear = today.getYear() + 1900;
    // IE calcluates date differently.
    if (today.getYear() >= 300) {
        thisYear = today.getYear();
    }

var YearMinus1 = thisYear - 1;

if (isEdd == 2) {Year = Year + 1}  //  This allows for 3 choices

document.writeln("\n<option value=''>--</option>");
// alert("today.getYear(): " + today.getYear() + ", thisYear: " + thisYear);
for (var yrCount = YearMinus1; yrCount < (thisYear +1) ; yrCount++) {
	if (Month !="99" && yrCount == Year) {
		document.writeln("<option selected>" + yrCount + "</option>\n")
	} else {
		document.writeln("<option>" + yrCount + "</option>\n")
	}
}

document.writeln("</select>\n");

//
// JavaScript:  Choose Month
//

if (isEdd == 0)
{
    document.writeln("<select id=\"month" + isEdd + "\" name=\"month\" onChange=\"whatDay(this.form," + isEdd + ",'" + lmpField + "');calculateEDD();\">");
}
else
{
    document.writeln("<select id=\"month" + isEdd + "\" name=\"month\" onChange=\"displayEDD()\">");
}

//	Select the names for the months

document.writeln("<option value=''>--</option>");

for (var i=0; i < 12; i++) {
	if (i == Month) {
		document.writeln("<option selected>" + monName[i] + "</option>");
	} else {
		document.writeln("<option>" + monName[i] + "</option>");
	}
}

document.writeln("</select>");

//
// JavaScript:  Choose Date
//

// we don't need whatDay for edd dropdown
if (isEdd == 0)
{
document.writeln("<select id=\"date" + isEdd + "\"  name=\"date\" " +
	"onChange=\"whatDay(this.form," + isEdd + ",'" + lmpField + "');calculateEDD();\">\n");
}
else
{
    document.writeln("<select id=\"date" + isEdd + "\" name=\"date\" onChange=\"displayEDD()\">\n");
}

document.writeln("\n<option value=''>--</option>");

for (var d = 1; d < 32; d++) {
	if (d == dd) {
		document.writeln("<option selected>" + dd + "</option>\n");
	} else {
		document.writeln("<option>" + d + "</option>\n");
	}
}

document.writeln("</select>\n ");
return true;
}

function showDate(triNum, dateTri) {
	var whichTri;
	whichTri.innerHTML = dateTri;
	whichTri.style.display = "";

	return;
}

function getLabel(nameID) {
	var whatTag;

	if (ie4) {whatTag = "document.all[\"" + nameID + "\"]";}
	if (ns6) {whatTag = "document.getElementById(\"" + nameID + "\")";}
	return whatTag;
}

function displayEDD(eddField, eddNice) {
    var today = new Date();
	thisYear = today.getYear();
     var month1 = eval(getLabel("month1")).value;
	 var year1 = eval(getLabel("year1")).value;;
	 var eddDate = eval(getLabel("eddDate")).value;
	 var date1 = eval(getLabel("date1")).value;
	 //  What year was selected?
	// if (year1 == 0) {year1 = thisYear - 1;}	// Last year
	// 	else {year1 = thisYear;}		// This year

	//  The choices for EDD year are off by 1, compared to LMP choices
	// year1 = year1 + 1;
	//fill out the zeprsedd field for the zeprs form
    // some formatting of month value
    if (month1 <= 9)
    {
        //var zeprsmonth = "0"+(month1+1)
        var zeprsmonth = "0"+(month1)
    }
    else
    {
        var zeprsmonth = (month1)
    }
    if (date1 <= 9)
    {
        //var zeprsdate = "0"+(date1+1)
        var zeprsdate = "0"+(date1)
    }
    else
    {
        //var zeprsdate = (date1+1)
        var zeprsdate = (date1)
    }
    //var zeprsedddate = zeprsmonth + "/" + zeprsdate+ "/" + year1;
    var zeprsedddate = year1 + "-" + zeprsmonth+ "-" + zeprsdate;
    // eval(getLabel("eddFieldValuelmp")).value = zeprsedddate;
    eval(getLabel(eddField)).value = zeprsedddate;
    //eval(getLabel("eddNicelmp")).innerHTML = zeprsdate + "/" + zeprsmonth + "/" + year1;
    eval(getLabel(eddNice)).innerHTML = zeprsdate + "/" + zeprsmonth + "/" + year1;
}

function updateEGAdisplay(egaField,egaDisplay) {
var egaWeeksValue = eval(getLabel('weeks')).value;
var egaDaysValue = eval(getLabel(egaField)).value;
eval(getLabel(egaDisplay)).innerHTML = egaWeeksValue;
// eval(getLabel('field129')).innerHTML = egaDaysValue;
}

/*
Used for the LMP widget
*/
function calculateEDD() {
    var LMPmonth = eval(getLabel("month0")).selectedIndex;
    var LMPdate = eval(getLabel("date0")).selectedIndex;
    var LMPyear = eval(getLabel("year0")).selectedIndex;
    // alert(" month: " + LMPmonth +  " date: " + LMPdate)
    if (isNumber(LMPdate) && isNumber(LMPmonth) && isNumber(LMPyear)) {
        dueDate(this.form, 'lmpDbFieldlmp', 'dayslmp', 'eddFieldValuelmp', 'eddNicelmp');
        updateEGAdisplay('days', 'displayEGAlmp');
    }
}

function calculateEDDfromEGA(id, lmpField, egaField, egaDisplay, eddField, eddNice) {
    eval(getLabel("calcYet")).value = 1;
    var egaDays = eval(getLabel(id)).value;
    // copy this value to egaField
    eval(getLabel(egaField)).value = egaDays;
    // calculate LMP
    displayEGA(egaDays,"280",1,0,lmpField,"Integer",egaField, eddField, eddNice);
    updateEGAdisplay(egaField, egaDisplay);
}

function checkReliability() {
    var lmpReliability = eval(getLabel("selectfield126")).value;
    var el = document.getElementById("lmpChoice");
    var lmpDatingMethod = eval(getLabel("lmpDatingMethod")).checked;
}

function copyPregDatingValues(lmpDbField,days,eddFieldValue,displayEGA,eddNice) {
    eval(getLabel("lmpDbField")).value =  eval(getLabel(lmpDbField)).value;
    eval(getLabel("days")).value =  eval(getLabel(days)).value;
    eval(getLabel("eddFieldValue")).value =  eval(getLabel(eddFieldValue)).value;
    eval(getLabel('displayEGAMaster')).innerHTML = eval(getLabel(displayEGA)).innerHTML;
    eval(getLabel('eddNiceMaster')).innerHTML = eval(getLabel(eddNice)).innerHTML;
}

function checkLmpValues() {
    var lmpDatingMethod = eval(getLabel("lmpDatingMethod")).checked;
    if (lmpDatingMethod == true) {
        if (eval(getLabel("lmpDbFieldlmp")).value != eval(getLabel("lmpDbField")).value) {
            // alert("Please select Dating Method again - the system needs to re-calculate the EGA.");
            checkReliability();copyPregDatingValues('lmpDbFieldlmp','dayslmp','eddFieldValuelmp','displayEGAlmp','eddNicelmp');
            return true;
        } else {
            return true;
        }
    } else {
        return true;
    }
}


text:
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.roots;

import com.intellij.ide.projectView.impl.RenameModuleHandler;
import com.intellij.openapi.actionSystem.CommonDataKeys;
import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.actionSystem.LangDataKeys;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.ui.InputValidator;
import com.intellij.openapi.ui.TestDialogManager;
import com.intellij.openapi.ui.TestInputDialog;
import com.intellij.openapi.util.Ref;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.psi.PsiDirectory;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiManager;
import com.intellij.refactoring.rename.PsiElementRenameHandler;
import com.intellij.refactoring.rename.RenameHandler;
import com.intellij.refactoring.rename.RenameHandlerRegistry;
import com.intellij.refactoring.rename.RenameModuleAndDirectoryHandler;
import com.intellij.testFramework.JavaModuleTestCase;
import com.intellij.testFramework.MapDataContext;
import com.intellij.testFramework.PsiTestUtil;
import com.intellij.util.containers.ContainerUtil;
import org.jetbrains.annotations.Nullable;

/**
 * @author Vladislav.Soroka
 */
public class RenameModuleTest extends JavaModuleTestCase {
  @Override
  protected void tearDown() throws Exception {
    try {
      TestDialogManager.setTestInputDialog(TestInputDialog.DEFAULT);
    }
    catch (Throwable e) {
      addSuppressedException(e);
    }
    finally {
      super.tearDown();
    }
  }

  public void testRename() {
    String moduleName = "module";
    String newModuleName = "moduleA";
    Module module = createModule(moduleName);
    assertEquals(moduleName, module.getName());

    MapDataContext context = new MapDataContext();
    context.put(LangDataKeys.MODULE_CONTEXT, module);
    final RenameHandler renameHandler = RenameHandlerRegistry.getInstance().getRenameHandler(context);
    assertNotNull(renameHandler);
    rename(renameHandler, newModuleName, context);
    assertEquals(newModuleName, module.getName());
  }

  public void testDontRenameDirectoryWhenRenamingModule() {
    Module module = createModule("module");
    VirtualFile root = createChildDirectory(getOrCreateProjectBaseDir(), "module");
    PsiTestUtil.addContentRoot(module, root);
    PsiDirectory psiDirectory = PsiManager.getInstance(myProject).findDirectory(root);
    MapDataContext context = new MapDataContext();
    context.put(LangDataKeys.MODULE_CONTEXT, module);
    context.put(CommonDataKeys.PSI_ELEMENT, psiDirectory);
    RenameHandler renameHandler = chooseHandler(context, RenameModuleHandler.class);
    assertNotNull(renameHandler);
    rename(renameHandler, "module2", context);
    assertEquals("module2", module.getName());
    assertEquals("module", psiDirectory.getName()); // directory remains unchanged
  }

  public void testRenameModuleAndDirectory() {
    Module module = createModule("module");
    VirtualFile root = createChildDirectory(getOrCreateProjectBaseDir(), "module");
    PsiTestUtil.addContentRoot(module, root);
    PsiDirectory directory = PsiManager.getInstance(myProject).findDirectory(root);
    MapDataContext context = new MapDataContext();
    context.put(LangDataKeys.MODULE_CONTEXT, module);
    context.put(CommonDataKeys.PSI_ELEMENT, directory);
    context.put(PsiElementRenameHandler.DEFAULT_NAME, "newName");
    RenameHandler renameHandler = chooseHandler(context, RenameModuleAndDirectoryHandler.class);
    assertNotNull(renameHandler);
    renameHandler.invoke(myProject, PsiElement.EMPTY_ARRAY, context);
    assertEquals("newName", module.getName());
    assertEquals("newName", directory.getName());
  }

  public void testCannotRenameModuleAndDirectoryWhenNameDoesntMatch() {
    Module module = createModule("module");
    VirtualFile root = createChildDirectory(getOrCreateProjectBaseDir(), "contentRoot");
    PsiTestUtil.addContentRoot(module, root);
    PsiDirectory directory = PsiManager.getInstance(myProject).findDirectory(root);
    MapDataContext context = new MapDataContext();
    context.put(LangDataKeys.MODULE_CONTEXT, module);
    context.put(CommonDataKeys.PSI_ELEMENT, directory);
    assertNull(chooseHandler(context, RenameModuleAndDirectoryHandler.class));
  }

  @Nullable
  private RenameHandler chooseHandler(MapDataContext context, Class<? extends RenameHandler> handlerClass) {
    RenameHandlerRegistry registry = RenameHandlerRegistry.getInstance();
    Ref<Boolean> selectorWasUsed = Ref.create(false);
    registry.setRenameHandlerSelectorInTests(all -> {
      selectorWasUsed.set(true);
      return ContainerUtil.findInstance(all, handlerClass);
    }, getTestRootDisposable());
    RenameHandler renameHandler = registry.getRenameHandler(context);
    assertTrue(selectorWasUsed.get());
    return renameHandler;
  }

  private void rename(RenameHandler renameHandler, String newName, DataContext context) {
    TestDialogManager.setTestInputDialog(new TestInputDialog() {
      @Override
      public String show(String message) {
        return null;
      }

      @Override
      public String show(String message, @Nullable InputValidator validator) {
        assertNotNull(validator);
        boolean canClose = validator.canClose(newName);
        assertTrue(canClose);
        return newName;
      }
    });

    renameHandler.invoke(myProject, PsiElement.EMPTY_ARRAY, context);
  }
}


text:
<?php
/**
* UserApplePie v4 Comments View Plugin Sidebar
*
* UserApplePie - Comments Plugin
* @author David (DaVaR) Sargent <davar@userapplepie.com>
* @version 1.0.0 for UAP v.4.3.0
*/

?>

        Comments Sidebar

<a href="<?php echo SITE_URL; ?>Comments">Comments

Display Friends Comments

Display Comments By Post ID

Allow User to Edit Their Comments

Comments Notifications