text:
.class Lcom/android/server/am/AppNotRespondingDialog;
.super Lcom/android/server/am/BaseErrorDialog;
.source "AppNotRespondingDialog.java"

# static fields
.field static final FORCE_CLOSE:I = 0x1

.field private static final TAG:Ljava/lang/String; = "AppNotRespondingDialog"

.field static final WAIT:I = 0x2

.field static final WAIT_AND_REPORT:I = 0x3

# instance fields
.field private final mHandler:Landroid/os/Handler;

.field private final mProc:Lcom/android/server/am/ProcessRecord;

.field private final mService:Lcom/android/server/am/ActivityManagerService;

# direct methods
.method public constructor <init>(Lcom/android/server/am/ActivityManagerService;Landroid/content/Context;Lcom/android/server/am/ProcessRecord;Lcom/android/server/am/ActivityRecord;Z)V
    .locals 10
    .parameter "service"
    .parameter "context"
    .parameter "app"
    .parameter "activity"
    .parameter "aboveSystem"

    .prologue
    const/4 v9, 0x2

    const/4 v7, 0x0

    const/4 v8, 0x1

    .line 44
    invoke-direct {p0, p2}, Lcom/android/server/am/BaseErrorDialog;-><init>(Landroid/content/Context;)V

    .line 107
    new-instance v5, Lcom/android/server/am/AppNotRespondingDialog$1;

    invoke-direct {v5, p0}, Lcom/android/server/am/AppNotRespondingDialog$1;-><init>(Lcom/android/server/am/AppNotRespondingDialog;)V

    iput-object v5, p0, Lcom/android/server/am/AppNotRespondingDialog;->mHandler:Landroid/os/Handler;

    .line 46
    iput-object p1, p0, Lcom/android/server/am/AppNotRespondingDialog;->mService:Lcom/android/server/am/ActivityManagerService;

    .line 47
    iput-object p3, p0, Lcom/android/server/am/AppNotRespondingDialog;->mProc:Lcom/android/server/am/ProcessRecord;

    .line 48
    invoke-virtual {p2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    .line 50
    .local v3, res:Landroid/content/res/Resources;
    invoke-virtual {p0, v7}, Lcom/android/server/am/AppNotRespondingDialog;->setCancelable(Z)V

    .line 53
    if-eqz p4, :cond_2

    iget-object v5, p4, Lcom/android/server/am/ActivityRecord;->info:Landroid/content/pm/ActivityInfo;

    invoke-virtual {p2}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v6

    invoke-virtual {v5, v6}, Landroid/content/pm/ActivityInfo;->loadLabel(Landroid/content/pm/PackageManager;)Ljava/lang/CharSequence;

    move-result-object v1

    .line 56
    .local v1, name1:Ljava/lang/CharSequence;
    :goto_0
    const/4 v2, 0x0

    .line 57
    .local v2, name2:Ljava/lang/CharSequence;
    iget-object v5, p3, Lcom/android/server/am/ProcessRecord;->pkgList:Ljava/util/HashSet;

    invoke-virtual {v5}, Ljava/util/HashSet;->size()I

    move-result v5

    if-ne v5, v8, :cond_4

    invoke-virtual {p2}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v5

    iget-object v6, p3, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;

    invoke-virtual {v5, v6}, Landroid/content/pm/PackageManager;->getApplicationLabel(Landroid/content/pm/ApplicationInfo;)Ljava/lang/CharSequence;

    move-result-object v2

    if-eqz v2, :cond_4

    .line 59
    if-eqz v1, :cond_3

    .line 60
    const v4, 0x10403d7

    .line 76
    .local v4, resid:I
    :goto_1
    if-eqz v2, :cond_6

    new-array v5, v9, [Ljava/lang/Object;

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v6

    aput-object v6, v5, v7

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v6

    aput-object v6, v5, v8

    invoke-virtual {v3, v4, v5}, Landroid/content/res/Resources;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    :goto_2
    invoke-virtual {p0, v5}, Lcom/android/server/am/AppNotRespondingDialog;->setMessage(Ljava/lang/CharSequence;)V

    .line 80
    const/4 v5, -0x1

    const v6, 0x10403db

    invoke-virtual {v3, v6}, Landroid/content/res/Resources;->getText(I)Ljava/lang/CharSequence;

    move-result-object v6

    iget-object v7, p0, Lcom/android/server/am/AppNotRespondingDialog;->mHandler:Landroid/os/Handler;

    invoke-virtual {v7, v8}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v7

    invoke-virtual {p0, v5, v6, v7}, Lcom/android/server/am/AppNotRespondingDialog;->setButton(ILjava/lang/CharSequence;Landroid/os/Message;)V

    .line 83
    const/4 v5, -0x2

    const v6, 0x10403dd

    invoke-virtual {v3, v6}, Landroid/content/res/Resources;->getText(I)Ljava/lang/CharSequence;

    move-result-object v6

    iget-object v7, p0, Lcom/android/server/am/AppNotRespondingDialog;->mHandler:Landroid/os/Handler;

    invoke-virtual {v7, v9}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v7

    invoke-virtual {p0, v5, v6, v7}, Lcom/android/server/am/AppNotRespondingDialog;->setButton(ILjava/lang/CharSequence;Landroid/os/Message;)V

    .line 87
    iget-object v5, p3, Lcom/android/server/am/ProcessRecord;->errorReportReceiver:Landroid/content/ComponentName;

    if-eqz v5, :cond_0

    .line 88
    const/4 v5, -0x3

    const v6, 0x10403dc

    invoke-virtual {v3, v6}, Landroid/content/res/Resources;->getText(I)Ljava/lang/CharSequence;

    move-result-object v6

    iget-object v7, p0, Lcom/android/server/am/AppNotRespondingDialog;->mHandler:Landroid/os/Handler;

    const/4 v8, 0x3

    invoke-virtual {v7, v8}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v7

    invoke-virtual {p0, v5, v6, v7}, Lcom/android/server/am/AppNotRespondingDialog;->setButton(ILjava/lang/CharSequence;Landroid/os/Message;)V

    .line 93
    :cond_0
    const v5, 0x10403d6

    invoke-virtual {v3, v5}, Landroid/content/res/Resources;->getText(I)Ljava/lang/CharSequence;

    move-result-object v5

    invoke-virtual {p0, v5}, Lcom/android/server/am/AppNotRespondingDialog;->setTitle(Ljava/lang/CharSequence;)V

    .line 94
    if-eqz p5, :cond_1

    .line 95
    invoke-virtual {p0}, Lcom/android/server/am/AppNotRespondingDialog;->getWindow()Landroid/view/Window;

    move-result-object v5

    const/16 v6, 0x7da

    invoke-virtual {v5, v6}, Landroid/view/Window;->setType(I)V

    .line 97
    :cond_1
    invoke-virtual {p0}, Lcom/android/server/am/AppNotRespondingDialog;->getWindow()Landroid/view/Window;

    move-result-object v5

    const/high16 v6, 0x4000

    invoke-virtual {v5, v6}, Landroid/view/Window;->addFlags(I)V

    .line 98
    invoke-virtual {p0}, Lcom/android/server/am/AppNotRespondingDialog;->getWindow()Landroid/view/Window;

    move-result-object v5

    invoke-virtual {v5}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v0

    .line 99
    .local v0, attrs:Landroid/view/WindowManager$LayoutParams;
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "Application Not Responding: "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget-object v6, p3, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;

    iget-object v6, v6, Landroid/content/pm/ApplicationInfo;->processName:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0, v5}, Landroid/view/WindowManager$LayoutParams;->setTitle(Ljava/lang/CharSequence;)V

    .line 100
    const/16 v5, 0x10

    iput v5, v0, Landroid/view/WindowManager$LayoutParams;->privateFlags:I

    .line 101
    invoke-virtual {p0}, Lcom/android/server/am/AppNotRespondingDialog;->getWindow()Landroid/view/Window;

    move-result-object v5

    invoke-virtual {v5, v0}, Landroid/view/Window;->setAttributes(Landroid/view/WindowManager$LayoutParams;)V

    .line 102
    return-void

    .line 53
    .end local v0           #attrs:Landroid/view/WindowManager$LayoutParams;
    .end local v1           #name1:Ljava/lang/CharSequence;
    .end local v2           #name2:Ljava/lang/CharSequence;
    .end local v4           #resid:I
    :cond_2
    const/4 v1, 0x0

    goto/16 :goto_0

    .line 62
    .restart local v1       #name1:Ljava/lang/CharSequence;
    .restart local v2       #name2:Ljava/lang/CharSequence;
    :cond_3
    move-object v1, v2

    .line 63
    iget-object v2, p3, Lcom/android/server/am/ProcessRecord;->processName:Ljava/lang/String;

    .line 64
    const v4, 0x10403d9

    .restart local v4       #resid:I
    goto/16 :goto_1

    .line 67
    .end local v4           #resid:I
    :cond_4
    if-eqz v1, :cond_5

    .line 68
    iget-object v2, p3, Lcom/android/server/am/ProcessRecord;->processName:Ljava/lang/String;

    .line 69
    const v4, 0x10403d8

    .restart local v4       #resid:I
    goto/16 :goto_1

    .line 71
    .end local v4           #resid:I
    :cond_5
    iget-object v1, p3, Lcom/android/server/am/ProcessRecord;->processName:Ljava/lang/String;

    .line 72
    const v4, 0x10403da

    .restart local v4       #resid:I
    goto/16 :goto_1

    .line 76
    :cond_6
    new-array v5, v8, [Ljava/lang/Object;

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v6

    aput-object v6, v5, v7

    invoke-virtual {v3, v4, v5}, Landroid/content/res/Resources;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    goto/16 :goto_2
.end method

.method static synthetic access$000(Lcom/android/server/am/AppNotRespondingDialog;)Lcom/android/server/am/ProcessRecord;
    .locals 1
    .parameter "x0"

    .prologue
    .line 31
    iget-object v0, p0, Lcom/android/server/am/AppNotRespondingDialog;->mProc:Lcom/android/server/am/ProcessRecord;

    return-object v0
.end method

.method static synthetic access$100(Lcom/android/server/am/AppNotRespondingDialog;)Lcom/android/server/am/ActivityManagerService;
    .locals 1
    .parameter "x0"

    .prologue
    .line 31
    iget-object v0, p0, Lcom/android/server/am/AppNotRespondingDialog;->mService:Lcom/android/server/am/ActivityManagerService;

    return-object v0
.end method

# virtual methods
.method public onStop()V
    .locals 0

    .prologue
    .line 105
    return-void
.end method


text:
package ru.savvy.jpafilterbuilder;

import org.eclipse.persistence.internal.jpa.EJBQueryImpl;
import org.eclipse.persistence.jpa.JpaEntityManager;
import org.eclipse.persistence.queries.DatabaseQuery;
import org.eclipse.persistence.sessions.DatabaseRecord;
import org.eclipse.persistence.sessions.Session;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.transaction.annotation.Transactional;
import ru.savvy.springjsf.entity.Employee;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.TypedQuery;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Root;
import java.util.*;

import static org.junit.Assert.assertEquals;

/**
 * @author Alexander Nikitin
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:applicationTestELContext.xml"})
@Transactional
public class FilterCriteriaBuilderEclipseLinkTest {

    @PersistenceContext
    private EntityManager em;

    private FilterCriteriaBuilder<Employee> fcb;

    protected void assertSQL(TypedQuery<Employee> tq, String expected){
        Session session = em.unwrap(JpaEntityManager.class).getActiveSession();
        DatabaseQuery databaseQuery = ((EJBQueryImpl)tq).getDatabaseQuery();
        databaseQuery.prepareCall(session, new DatabaseRecord());
        String actual = databaseQuery.getSQLString();
        //String actual = tq.unwrap(EJBQueryImpl.class).getDatabaseQuery().getSQLString();
        assertEquals(expected, actual);
    }

    @Before
    public void prepateFcb() {
        fcb = new FilterCriteriaBuilder<Employee>(em, Employee.class);
    }

    @Test
    public void testCommonSelect() {
        TypedQuery<Employee> q = em.createQuery(fcb.getQuery());
        assertSQL(q, "SELECT ID, HIRED_AT, NAME, department_id, position_id FROM EMPLOYEE ORDER BY ID ASC");
        assertEquals(12, q.getResultList().size());
    }

    @Test
    public void testSelectWithOrder() {
        Map<String, Boolean> orders = new HashMap<>();
        orders.put("name", true);
        fcb.addOrders(orders);
        TypedQuery<Employee> q = em.createQuery(fcb.getQuery());
        assertSQL(q, "SELECT ID, HIRED_AT, NAME, department_id, position_id FROM EMPLOYEE ORDER BY NAME ASC");
        assertEquals("Alexander Bain", q.getResultList().get(0).getName());
    }

    @Test
    public void testWithFilter() {
        List<FieldFilter> filters = new ArrayList<>();
        filters.add(new FieldFilter("name", "u", EnumSet.of(FieldFilter.Option.PART_STRING)));
        fcb.addFilters(filters);

        Map<String, Boolean> orders = new HashMap<>();
        orders.put("name", true);
        fcb.addOrders(orders);

        TypedQuery<Employee> q = em.createQuery(fcb.getQuery());
        assertSQL(q, "SELECT ID, HIRED_AT, NAME, department_id, position_id FROM EMPLOYEE WHERE LOWER(NAME) LIKE ? ORDER BY NAME ASC");
        assertEquals("Carlo Urbani", q.getResultList().get(0).getName());
    }

    @Test
    public void testWithFilterOnCollection(){
        List<FieldFilter> filters = new ArrayList<>();
        filters.add(new FieldFilter("priveledgeSet.name", "Pa", EnumSet.noneOf(FieldFilter.Option.class)));
        fcb.addFilters(filters);

        Map<String, Boolean> orders = new HashMap<>();
        orders.put("name", false);
        fcb.addOrders(orders);

        TypedQuery<Employee> q = em.createQuery(fcb.getQuery());
        assertSQL(q, "SELECT t1.ID, t1.HIRED_AT, t1.NAME, t1.department_id, t1.position_id FROM PRIVELEDGE t0, employee_priveledge t2, EMPLOYEE t1 WHERE (LOWER(t0.name) LIKE ? AND ((t2.employee_id = t1.ID) AND (t0.ID = t2.priveledge_id))) ORDER BY t1.NAME DESC");
        List<Employee> result = q.getResultList();

        assertEquals(2, result.size());
        assertEquals("Bill Carry", result.get(0).getName());
        assertEquals("Alexander Bain", result.get(1).getName());

    }

    @Test
    public void testWithQueryInitialization(){
        CriteriaBuilder cb = em.getCriteriaBuilder();
        CriteriaQuery<Employee> q = cb.createQuery(Employee.class);
        Root<Employee> b = q.from(Employee.class);
        q.select(b).orderBy(cb.desc(b.get("name"))).where(cb.like(b.get("name"),"%a%"));
        FilterCriteriaBuilder<Employee> fcb = new FilterCriteriaBuilder<Employee>(em, q);
        TypedQuery<Employee> query = em.createQuery(q);
        List<Employee> result = query.getResultList();
        assertEquals(9,result.size());
    }

}

redpajama_set_name: RedPajamaGithub


text:
Home

Book

Part Two: The Suffusion of Blue

Extra Credit: Write a 2D Game

# Extra Credit: Write a 2D Game

> "Relevant quote..."
> Source

Chapter text.

« Previous

Table of Contents

Next »


text:
<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2008 rel. 2 sp1 (http://www.altova.com)-->
<lido:lido  xsi:schemaLocation="http://www.lido-schema.org http://www.lido-schema.org/lido-v0.7.xsd" xmlns:lido="http://www.lido-schema.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <lido:lidoRecID lido:type="local">BFM-00120252</lido:lidoRecID>
    <lido:category lido:source="CIDOC-CRM-v5.0.1">E84 Information Carrier</lido:category>
    <lido:descriptiveMetadata xml:lang="en">
        <lido:objectClassificationWrap>
            <lido:objectWorkTypeWrap>
                <lido:objectWorkType>
                    <lido:term>Sheet of Pictures</lido:term>
                </lido:objectWorkType>
            </lido:objectWorkTypeWrap>
            <lido:classificationWrap>
                <lido:classification><lido:term>Single Sheet Woodcut</lido:term></lido:classification>
            </lido:classificationWrap>
        </lido:objectClassificationWrap>
        <lido:objectIdentificationWrap>
            <lido:titleWrap>
                <lido:titleSet>
                    <lido:appellationValue>Munchener Bilderbogen Nro. 91: "Auf dem Dorfe."</lido:appellationValue>
                </lido:titleSet>
            </lido:titleWrap>
            <lido:repositoryWrap>
                <lido:repositorySet lido:repositoryType="current">
                    <lido:repositoryName>
                        <lido:legalBodyName>
                            <lido:appellationValue>Germanic National Museum, Graphical Collection (Nuremberg)</lido:appellationValue>
                        </lido:legalBodyName>
                    </lido:repositoryName>
                    <lido:workID lido:type="Inventory Number">H 3672</lido:workID>
                </lido:repositorySet>
            </lido:repositoryWrap>
            <lido:displayStateEditionWrap>
                <lido:displayEdition>5. Auflage</lido:displayEdition>
            </lido:displayStateEditionWrap>
            <lido:objectMeasurementsWrap>
                <lido:objectMeasurementsSet>
                    <lido:displayObjectMeasurements>44,3 x 35,4 cm (Sheet); 10 frames</lido:displayObjectMeasurements>
                </lido:objectMeasurementsSet>
            </lido:objectMeasurementsWrap>
        </lido:objectIdentificationWrap>
        <lido:eventWrap>
            <lido:eventSet>
                <lido:event>
                    <lido:eventType><lido:term>Draft</lido:term></lido:eventType>
                    <lido:eventActor>
                        <lido:displayActorInRole>Joseph von Camerlohr (Germany, 1820-1851), illustrator</lido:displayActorInRole>
                        <lido:actorInRole>
                            <lido:actor lido:actorType="person">
                                <lido:actorID lido:type="local" lido:source="DISKUS-KUE-Datei">10153461</lido:actorID>
                                <lido:nameActorSet>
                                    <lido:appellationValue lido:pref="preferred">Camerlohr, Joseph von</lido:appellationValue>
                                </lido:nameActorSet>
                                <lido:nameActorSet>
                                    <lido:appellationValue lido:pref="alternate">Cammerloher, Josef von</lido:appellationValue>
                                </lido:nameActorSet>
                                <lido:nationalityActor><lido:term>Germany</lido:term></lido:nationalityActor>
                                <lido:vitalDatesActor  lido:birthDate="1820.09.19" lido:deathDate="1851.07.06">1820-1851</lido:vitalDatesActor>
                                <lido:genderActor>male</lido:genderActor>
                            </lido:actor>
                            <lido:roleActor><lido:term>illustrator</lido:term></lido:roleActor>
                        </lido:actorInRole>
                    </lido:eventActor>
                    <lido:eventActor>
                        <lido:displayActorInRole>Andreas Muller (1831) (Germany, 1831-1901), illustrator</lido:displayActorInRole>
                        <lido:actorInRole>
                            <lido:actor lido:actorType="person">
                                <lido:nameActorSet>
                                    <lido:appellationValue lido:pref="preferred">Muller, Andreas (1831)</lido:appellationValue>
                                </lido:nameActorSet>
                                <lido:nameActorSet>
                                    <lido:appellationValue lido:pref="alternate">Komponiermuller</lido:appellationValue>
                                </lido:nameActorSet>
                                <lido:vitalDatesActor  lido:birthDate="1831.07.23" lido:deathDate="1901.12.07">1831-1901</lido:vitalDatesActor>
                                <lido:genderActor>male</lido:genderActor>
                            </lido:actor>
                        <lido:roleActor><lido:term>illustrator</lido:term></lido:roleActor>
                        </lido:actorInRole>
                    </lido:eventActor>
                    <lido:eventDate>
                        <lido:date>
                        <lido:earliestDate>1871</lido:earliestDate>
                        <lido:latestDate>1871</lido:latestDate>
                        </lido:date>
                    </lido:eventDate>
                    <lido:eventMaterialsTech>
                        <lido:materialsTech>
                            <lido:termMaterialsTech lido:type="Material">
                                <lido:term>Paper</lido:term>
                            </lido:termMaterialsTech>
                            <lido:termMaterialsTech lido:type="Technique">
                                <lido:term>Wood engraving</lido:term>
                            </lido:termMaterialsTech>
                        </lido:materialsTech>
                    </lido:eventMaterialsTech>
                </lido:event>
            </lido:eventSet>
            <lido:eventSet>
                <lido:event>
                    <lido:eventType>
                        <lido:term>
                            Publication
                        </lido:term>
                    </lido:eventType>
                    <lido:eventActor>
                        <lido:actorInRole>
                            <lido:actor lido:actorType="person">
                                <lido:nameActorSet>
                                    <lido:appellationValue lido:pref="preferred">Braun, Kaspar (1807)</lido:appellationValue>
                                </lido:nameActorSet>
                                <lido:nameActorSet>
                                    <lido:appellationValue lido:pref="alternate">Braun, Caspar</lido:appellationValue>
                                </lido:nameActorSet>
                                <lido:vitalDatesActor lido:birthDate="1807.08.13" lido:deathDate="1877.10.20">1807-1877</lido:vitalDatesActor>
                                <lido:genderActor>male</lido:genderActor>
                            </lido:actor>
                        <lido:roleActor><lido:term>publisher</lido:term></lido:roleActor>
                        </lido:actorInRole>
                    </lido:eventActor>
                </lido:event>
            </lido:eventSet>
        </lido:eventWrap>
        <lido:objectRelationWrap>
            <lido:subjectWrap>
                <lido:subjectSet>
                    <lido:subject lido:type="Description">
                        <lido:subjectConcept>
                            <lido:conceptID lido:type="local" lido:source="Iconclass">25 I 24</lido:conceptID>
                            <lido:term>villagers, villein</lido:term>
                        </lido:subjectConcept>
                    </lido:subject>
                </lido:subjectSet>
                <lido:subjectSet>
                    <lido:subject lido:type="Description">
                        <lido:subjectConcept>
                            <lido:conceptID lido:type="local" lido:source="Iconclass">46 A 13 2</lido:conceptID>
                            <lido:term>public road in village</lido:term>
                        </lido:subjectConcept>
                    </lido:subject>
                </lido:subjectSet>
                <lido:subjectSet>
                    <lido:subject lido:type="Description">
                        <lido:subjectConcept>
                            <lido:conceptID lido:type="local" lido:source="Iconclass">43 B 31</lido:conceptID>
                            <lido:term>inn, coffee-house, public house, etc.</lido:term>
                        </lido:subjectConcept>
                    </lido:subject>
                </lido:subjectSet>
            </lido:subjectWrap>
            <lido:relatedWorksWrap>
                <lido:relatedWorksSet>
                    <lido:relatedWork>
                        <lido:object>
                        <lido:objectNote xml:lang="de">Braun, Kaspar (1807) & Schneider, Friedrich: Munchener Bilderbogen, 1848-1870, Germanisches Nationalmuseum Nurnberg				</lido:objectNote>
                        </lido:object>
                    </lido:relatedWork>
                    <lido:relatedWorkRelType>Part of</lido:relatedWorkRelType>
                </lido:relatedWorksSet>
            </lido:relatedWorksWrap>
        </lido:objectRelationWrap>
    </lido:descriptiveMetadata>
    <lido:administrativeMetadata xml:lang="en">
        <lido:rightsWorkWrap>
            <lido:rightsWorkSet>
                <lido:rightsType>Copyright</lido:rightsType>
                <lido:rightsHolder>
                    <lido:legalBodyName>
                        <lido:appellationValue>Germanisches Nationalmuseum Nurnberg</lido:appellationValue>
                    </lido:legalBodyName>
                </lido:rightsHolder>
            </lido:rightsWorkSet>
        </lido:rightsWorkWrap>
        <lido:recordWrap>
            <lido:recordID lido:type="local">obj 00120252</lido:recordID>
            <lido:recordType>Item</lido:recordType>
            <lido:recordSource>
                <lido:legalBodyName>
                    <lido:appellationValue>Bildarchiv Foto Marburg</lido:appellationValue>
                </lido:legalBodyName>
            </lido:recordSource>
        </lido:recordWrap>
        <lido:resourceWrap>
            <lido:resourceSet>
                <lido:resourceID lido:type="local">H 3672/1213</lido:resourceID>
                <lido:resourceType>Negative</lido:resourceType>
                <lido:rightsResource>
                    <lido:rightsHolder>
                        <lido:legalBodyName>
                            <lido:appellationValue>Germanisches Nationalmuseum</lido:appellationValue>
                        </lido:legalBodyName>
                    </lido:rightsHolder>
                </lido:rightsResource>
                <lido:resourceViewDate lido:earliestdate="1986" lido:latestdate="1986">1986</lido:resourceViewDate>
                <lido:resourceSource>Germanic National Museum</lido:resourceSource>
            </lido:resourceSet>
            <lido:resourceSet>
                <lido:linkResource>http://www.bildindex.de/bilder/mi08044c08a.jpg</lido:linkResource>
                <lido:resourceID lido:type="local">mi08044c08a.jpg</lido:resourceID>
                <lido:resourceType>Digital Image</lido:resourceType>
                <lido:rightsResource>
                    <lido:rightsHolder>
                        <lido:legalBodyName>
                            <lido:appellationValue>Germanisches Nationalmuseum</lido:appellationValue>
                        </lido:legalBodyName>
                    </lido:rightsHolder>
                </lido:rightsResource>
            </lido:resourceSet>
        </lido:resourceWrap>
    </lido:administrativeMetadata>
</lido:lido>


text:
//-----------------------------------------------
//
//	This file is part of the Siv3D Engine.
//
//	Copyright (c) 2008-2018 Ryo Suzuki
//	Copyright (c) 2016-2018 OpenSiv3D Project
//
//	Licensed under the MIT License.
//
//-----------------------------------------------

# include <Siv3D/TextBox.hpp>
# include "CTextBox.hpp"

namespace s3d
{
	TextBox::TextBox()
		: pImpl(std::make_shared<CTextBox>())
	{

	}

	TextBox::TextBox(const Font& font,
		const Vec2& pos,
		double boxWidth,
		const Optional<size_t>& maxChars,
		const String& defaultText)
		: pImpl(std::make_shared<CTextBox>(font, RectF(pos, boxWidth, font.height() + 2), maxChars, defaultText))
	{

	}

	TextBox::TextBox(const Font& font,
		const Arg::center_<Vec2> center,
		double boxWidth,
		const Optional<size_t>& maxChars,
		const String& defaultText)
		: pImpl(std::make_shared<CTextBox>(font, RectF(center, boxWidth, font.height() + 2), maxChars, defaultText))
	{

	}

	TextBox::~TextBox()
	{

	}

	TextBox::State TextBox::update(const bool clicked)
	{
		return pImpl->update(clicked);
	}

	void TextBox::draw(const Style& style) const
	{
		pImpl->draw(style);
	}

	void TextBox::drawOverlay(const Style& style) const
	{
		pImpl->drawOverlay(style);
	}

	void TextBox::setActive(const bool active)
	{
		pImpl->setActive(active);
	}

	bool TextBox::isActive() const
	{
		return pImpl->isActive();
	}

	const RectF& TextBox::getRect() const
	{
		return pImpl->getRect();
	}

	void TextBox::setPos(const Vec2& pos)
	{
		pImpl->setPos(pos);
	}

	void TextBox::setCenter(const Vec2& center)
	{
		pImpl->setCenter(center);
	}

	void TextBox::setText(const String& text)
	{
		pImpl->setText(text);
	}

	const String& TextBox::getText() const
	{
		return pImpl->getText();
	}

	size_t TextBox::getCursorIndex() const
	{
		return pImpl->getCursorIndex();
	}
}


text:
import React from 'react';
import { DEFAULT_EMPTY_FIELDS } from '@looker/visualizations-adapters';
import { useVisConfig, useQueryId, useQueryData, useQueryIdFromDashboard } from '@looker/components-data';
import { Series } from '../Series';
import { XAxis, YAxis } from '../axes';
import { Heading, Tabs2, Tab2 } from '@looker/components';
import { StyledCard } from '../StyledCard';
export const ConfigEditor = ({
  config: configOverrides,
  onConfigChange,
  query,
  dashboard
}) => {
  const {
    queryId: dashboardQueryId
  } = useQueryIdFromDashboard(dashboard);
  const {
    queryId
  } = useQueryId(query || dashboardQueryId);
  const {
    visConfig
  } = useVisConfig(queryId, configOverrides);
  const {
    fields = DEFAULT_EMPTY_FIELDS
  } = useQueryData(queryId);
  return React.createElement(StyledCard, null, React.createElement(Heading, {
    as: "h4"
  }, "2. Customize"), React.createElement(Tabs2, {
    distributed: true
  }, React.createElement(Tab2, {
    id: "series",
    label: "Series",
    p: "0"
  }, React.createElement(Series, {
    config: visConfig,
    fields: fields,
    onConfigChange: onConfigChange
  })), React.createElement(Tab2, {
    id: "axis",
    label: "Axis"
  }, React.createElement(XAxis, {
    config: visConfig,
    onConfigChange: onConfigChange
  }), React.createElement(YAxis, {
    config: visConfig,
    onConfigChange: onConfigChange
  }))));
};
//# sourceMappingURL=ConfigEditor.js.map


text:
package org.apache.struts2.util;

import java.util.Map;

import com.opensymphony.xwork2.conversion.impl.DefaultTypeConverter;

/**
 *
 *
 * Base class for type converters used in Struts. This class provides two abstract methods that are used to convert
 * both to and from strings -- the critical functionality that is core to Struts's type coversion system.
 *
 *
 Type converters do not have to use this class. It is merely a helper base class, although it is recommended that
 * you use this class as it provides the common type conversion contract required for all web-based type conversion.
 *
 *
 There's a hook (fall back method) called performFallbackConversion of which
 * could be used to perform some fallback conversion if convertValue method of this
 * failed. By default it just ask its super class (Ognl's DefaultTypeConverter) to do the conversion.
 *
 *
 To allow the framework to recognize that a conversion error has occurred, throw an XWorkException or
 * preferable a TypeConversionException.
 *
 *
 *
 */
public abstract class StrutsTypeConverter extends DefaultTypeConverter {
    public Object convertValue(Map context, Object o, Class toClass) {
        if (toClass.equals(String.class)) {
            return convertToString(context, o);
        } else if (o instanceof String[]) {
            return convertFromString(context, (String[]) o, toClass);
        } else if (o instanceof String) {
            return convertFromString(context, new String[]{(String) o}, toClass);
        } else {
            return performFallbackConversion(context, o, toClass);
        }
    }

    /**
     * Hook to perform a fallback conversion if every default options failed. By default
     * this will ask Ognl's DefaultTypeConverter (of which this class extends) to
     * perform the conversion.
     *
     * @param context
     * @param o
     * @param toClass
     * @return The fallback conversion
     */
    protected Object performFallbackConversion(Map context, Object o, Class toClass) {
        return super.convertValue(context, o, toClass);
    }

    /**
     * Converts one or more String values to the specified class.
     *
     * @param context the action context
     * @param values  the String values to be converted, such as those submitted from an HTML form
     * @param toClass the class to convert to
     * @return the converted object
     */
    public abstract Object convertFromString(Map context, String[] values, Class toClass);

    /**
     * Converts the specified object to a String.
     *
     * @param context the action context
     * @param o       the object to be converted
     * @return the converted String
     */
    public abstract String convertToString(Map context, Object o);
}


text:
define :sensu_silence_check, :action => :create, :payload => {} do

  if params[:client].nil?
    params[:client] = node.name
  end

  if params[:action] == :create or params[:action] == :silence
    # add a timestamp and owner to the payload
    # when we look at the stash later, these bits helps us know how old a stash is and how it got there
    merged_payload = params[:payload].merge({'timestamp' => Time.now.to_i, 'owner' => 'chef'})

    sensu_api_stash "silence/#{params[:client]}/#{params[:name]}" do
      api_uri params[:api_uri]
      payload merged_payload
      action :create
    end
  end

  if params[:action] == :delete or params[:action] == :unsilence
    sensu_api_stash "silence/#{params[:client]}/#{params[:name]}" do
      api_uri params[:api_uri]
      action :delete
    end
  end
end


text:
require 'helper'

describe BWAPI::Default do
  describe 'constants' do
    it 'should have an ADAPTER constant with a default value' do
      expect(BWAPI::Default::ADAPTER).to eql(:net_http)
    end

    it 'should have an API_ENDPOINT constant with a default value' do
      expect(BWAPI::Default::API_ENDPOINT).to eql('https://newapi.brandwatch.com/')
    end

    it 'should have an CLIENT_ID constant with a default value' do
      expect(BWAPI::Default::CLIENT_ID).to eql('brandwatch-api-client')
    end

    it 'should have an GRANT_TYPE constant with a default value' do
      expect(BWAPI::Default::GRANT_TYPE).to eql('api-password')
    end

    it 'should have an USER_AGENT constant with a default value' do
      expect(BWAPI::Default::USER_AGENT).to eql("BWAPI Ruby Gem #{BWAPI::VERSION}")
    end
  end

  describe '.options' do
    it 'should return the configuration keys' do
      expect(BWAPI::Default.options).to eql(
        access_token: nil,
        access_token_expiry: nil,
        adapter: :net_http,
        api_endpoint: 'https://newapi.brandwatch.com/',
        client_id: 'brandwatch-api-client',
        client_secret: nil,
        connection_options: {
          headers: {
            user_agent: 'BWAPI Ruby Gem 12.0.0'
          },
          request: {
            params_encoder: Faraday::FlatParamsEncoder
          }
        },
        debug: false,
        grant_type: 'api-password',
        logger: nil,
        password: nil,
        performance: {},
        refresh_token: nil,
        user_agent: 'BWAPI Ruby Gem 12.0.0',
        username: nil,
        verify_ssl: false
      )
    end
  end

  describe '.access_token' do
    after { ENV['BWAPI_ACCESS_TOKEN'] = nil }

    it 'should return nil when no environmental variable is set' do
      expect(BWAPI::Default.access_token).to eql(nil)
    end

    it 'should return the correct value when the environment variable is set' do
      ENV['BWAPI_ACCESS_TOKEN'] = '1234-5678-9101-1234'
      expect(BWAPI::Default.access_token).to eql('1234-5678-9101-1234')
    end
  end

  describe '.access_token_expiry' do
    it 'should return nil as default' do
      expect(BWAPI::Default.access_token_expiry).to eql(nil)
    end
  end

  describe '.adapter' do
    after { ENV['BWAPI_ADAPTER'] = nil }

    it 'should return the default value when no environmental variable is set' do
      expect(BWAPI::Default.adapter).to eql(:net_http)
    end

    it 'should return the correct value when the environment variable is set' do
      ENV['BWAPI_ADAPTER'] = 'test'
      expect(BWAPI::Default.adapter).to eql(:test)
    end
  end

  describe '.api_endpoint' do
    after { ENV['BWAPI_API_ENDPOINT'] = nil }

    it 'should return the default value when no environmental variable is set' do
      expect(BWAPI::Default.api_endpoint).to eql('https://newapi.brandwatch.com/')
    end

    it 'should return the correct value when the environment variable is set' do
      ENV['BWAPI_API_ENDPOINT'] = 'https://newapi.test.brandwatch.com'
      expect(BWAPI::Default.api_endpoint).to eql('https://newapi.test.brandwatch.com')
    end
  end

  describe '.client_id' do
    after { ENV['BWAPI_CLIENT_ID'] = nil }

    it 'should return the default value when no environmental variable is set' do
      expect(BWAPI::Default.client_id).to eql('brandwatch-api-client')
    end

    it 'should return the correct value when the environment variable is set' do
      ENV['BWAPI_CLIENT_ID'] = 'brandwatch-test-client'
      expect(BWAPI::Default.client_id).to eql('brandwatch-test-client')
    end
  end

  describe '.client_secret' do
    after { ENV['BWAPI_CLIENT_SECRET'] = nil }

    it 'should return nil as default' do
      expect(BWAPI::Default.client_secret).to eql(nil)
    end

    it 'should return the correct value when the environment variable is set' do
      ENV['BWAPI_CLIENT_SECRET'] = 'secret'
      expect(BWAPI::Default.client_secret).to eql('secret')
    end
  end

  describe '.connection_options' do
    it 'should return the default hash values' do
      expect(BWAPI::Default.connection_options).to eql(
        headers: {
          user_agent: 'BWAPI Ruby Gem 12.0.0'
        },
        request: {
          params_encoder: Faraday::FlatParamsEncoder
        }
      )
    end
  end

  describe '.debug' do
    after { ENV['BWAPI_DEBUG'] = nil }

    it 'should return false as default' do
      expect(BWAPI::Default.debug).to eql(false)
    end

    it 'should return the correct value when the environment variable is set' do
      ENV['BWAPI_DEBUG'] = 'true'
      expect(BWAPI::Default.debug).to eql(true)
    end
  end

  describe '.grant_type' do
    after { ENV['BWAPI_GRANT_TYPE'] = nil }

    it 'should return the default value when no environmental variable is set' do
      expect(BWAPI::Default.grant_type).to eql('api-password')
    end

    it 'should return the correct value when the environment variable is set' do
      ENV['BWAPI_GRANT_TYPE'] = 'test-grant'
      expect(BWAPI::Default.grant_type).to eql('test-grant')
    end
  end

  describe '.logger' do
    it 'should return nil as default' do
      expect(BWAPI::Default.logger).to eql(nil)
    end
  end

  describe '.password' do
    after { ENV['BWAPI_PASSWORD'] = nil }

    it 'should return nil as default' do
      expect(BWAPI::Default.password).to eql(nil)
    end

    it 'should return the correct value when the environment variable is set' do
      ENV['BWAPI_PASSWORD'] = 'p455word'
      expect(BWAPI::Default.password).to eql('p455word')
    end
  end

  describe '.performance' do
    it 'should return an empty hash as default' do
      expect(BWAPI::Default.performance).to eql({})
    end
  end

  describe '.refresh_token' do
    after { ENV['BWAPI_REFRESH_TOKEN'] = nil }

    it 'should return nil as default' do
      expect(BWAPI::Default.refresh_token).to eql(nil)
    end

    it 'should return the correct value when the environment variable is set' do
      ENV['BWAPI_REFRESH_TOKEN'] = '1234-5678-9101-1234'
      expect(BWAPI::Default.refresh_token).to eql('1234-5678-9101-1234')
    end
  end

  describe '.user_agent' do
    after { ENV['BWAPI_USER_AGENT'] = nil }

    it 'should return the default value when no environmental variable is set' do
      expect(BWAPI::Default.user_agent).to eql("BWAPI Ruby Gem #{BWAPI::VERSION}")
    end

    it 'should return the correct value when the environment variable is set' do
      ENV['BWAPI_USER_AGENT'] = 'Test User Agent'
      expect(BWAPI::Default.user_agent).to eql('Test User Agent')
    end
  end

  describe '.username' do
    after { ENV['BWAPI_USERNAME'] = nil }

    it 'should return nil as default' do
      expect(BWAPI::Default.username).to eql(nil)
    end

    it 'should return the correct value when the environment variable is set' do
      ENV['BWAPI_USERNAME'] = 'test@brandwatch.com'
      expect(BWAPI::Default.username).to eql('test@brandwatch.com')
    end
  end

  describe '.verify_ssl' do
    after { ENV['BWAPI_VERIFY_SSL'] = nil }

    it 'should return false as default' do
      expect(BWAPI::Default.verify_ssl).to eql(false)
    end

    it 'should return the correct value when the environment variable is set' do
      ENV['BWAPI_VERIFY_SSL'] = 'true'
      expect(BWAPI::Default.verify_ssl).to eql(true)
    end
  end
end


text:
package org.deckfour.xes.util;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * @author Christian W. Guenther (christian@fluxicon.com)
 *
 */
public class XTokenHelper {

	public static String formatTokenString(List<String> tokens) {
		if(tokens.size() > 0) {
			StringBuffer sb = new StringBuffer();
			sb.append(formatToken(tokens.get(0)));
			for(int i=1; i<tokens.size(); i++) {
				sb.append(' ');
				sb.append(formatToken(tokens.get(i)));
			}
			return sb.toString();
		} else {
			return "";
		}
	}

	private static String formatToken(String token) {
		token = token.trim();
		if(token.indexOf(' ') >= 0 || token.indexOf('\t') >= 0) {
			// needs escaping
			StringBuffer sb = new StringBuffer();
			token = token.replaceAll("'", "\\\'");
			sb.append('\'');
			sb.append(token);
			sb.append('\'');
			return sb.toString();
		} else {
			return token;
		}
	}

	public static List<String> extractTokens(String tokenString) {
		List<String> tokens = new ArrayList<String>();
		boolean isEscaped = false;
		boolean isQuoted = false;
		StringBuffer sb = new StringBuffer();
		for(char c : tokenString.toCharArray()) {
			if(c == ' ' && !isQuoted && !isEscaped) {
				// separator, record value
				String token = sb.toString().trim();
				if(token.length() > 0) {
					tokens.add(token);
				}
				// initialize token buffer
				sb = new StringBuffer();
			} else if(c == '\\') {
				isEscaped = true;
			} else if(c == '\'') {
				if(!isEscaped) {
					isQuoted = !isQuoted;
				} else {
					sb.append(c);
				}
				isEscaped = false;
			} else {
				sb.append(c);
				isEscaped = false;
			}
		}
		// add last token
		String token = sb.toString().trim();
		if(token.length() > 0) {
			tokens.add(token);
		}
		return Collections.unmodifiableList(tokens);
	}

}


text:
/*
    3. Implement a image slider control using Prototypal OOP
    - The slider has a set of images and only one can be enlarged
    - Each image in the image slider has a title and two urls (thumbnail url and large image url)
    - When an image from the thumbnails is clicked
    - The slider must have buttons for prev/next image
*/

define(function(require) {

    /* ------------------------------------------------------------------------ */

    // Include classes
    var ImageSlider = require('scripts/Classes/ImageSlider.js');
    var Picture = require('scripts/Classes/Picture.js');

    /* ------------------------------------------------------------------------ */

    var imageSlider = (function() {
        var title = 'ANIMAL GALLERY';

        var pictures = [
            Object.create(Picture).init('Chameleon', './images/1.jpg'),
            Object.create(Picture).init('Abalone', './images/2.jpg'),
            Object.create(Picture).init('Polecat', './images/3.jpg'),
            Object.create(Picture).init('Shark', './images/4.jpg'),
            Object.create(Picture).init('Chameleon', './images/5.jpg'),
            Object.create(Picture).init('Tiger', './images/6.jpg'),
            Object.create(Picture).init('White tigers', './images/7.jpg'),
            Object.create(Picture).init('Cats', './images/8.jpg'),
        ];

        return Object.create(ImageSlider).init(title, pictures);
    }());

    imageSlider.addImage(Object.create(Picture).init('Snake', './images/9.jpg'));

    imageSlider.draw();

    imageSlider.addImage(Object.create(Picture).init('Gepard', './images/10.jpg'));

    /* ------------------------------------------------------------------------ */
})


text:
class CargoCompletion < Formula
  desc "Bash and Zsh completion for Cargo"
  homepage "https://github.com/rust-lang/cargo"
  url "https://github.com/rust-lang/cargo/archive/0.31.0.tar.gz"
  sha256 "96c4ce9a3db4748680e613e4f3bce7de84329e50b6074a1fa7adb43359ff270e"
  version_scheme 1
  head "https://github.com/rust-lang/cargo.git"

  bottle :unneeded

  def install
    bash_completion.install "src/etc/cargo.bashcomp.sh" => "cargo"
    zsh_completion.install "src/etc/_cargo"
  end

  test do
    # we need to define a dummy 'cargo' command to force the script to define
    # the completion function
    assert_match "-F _cargo",
      shell_output("cargo() { true;} && source #{bash_completion}/cargo && complete -p cargo")
  end
end


text:
import os
import sys
import socket
import asyncio
import logging
from traceback import TracebackException

from nyuki.utils import from_isoformat, utcnow

log = logging.getLogger(__name__)

class Reporter(object):

    """
    Mqtt and Xmpp bus are handled differently as the topics mechanism
    is not the same.
    """

    EXCEPTION_TTL = 3600
    MONIT_TOPIC = '+/monitoring'

    def __init__(self):
        self._name = None
        self._loop = None
        self._publisher = None
        self._channel = None
        self._handler = None
        self._last_exceptions = list()

    def init(self, name, publisher, loop=None):
        self._name = name
        self._loop = loop or asyncio.get_event_loop()
        self._publisher = publisher
        self._service = self._publisher.SERVICE

        if self._service == 'xmpp':
            self._channel = 'monitoring'
        elif self._service == 'mqtt':
            self._channel = self.MONIT_TOPIC.replace('+', self._name)
        else:
            raise TypeError('Nyuki publisher must be XmppBus or MqttBus')

    async def _handle_report(self, topic, data):
        """
        Handle XMPP report, ignore if it comes from this reporter
        """
        if self._handler is None:
            log.debug('Report received, no handler set')
            return

        if data['author'] == self._name:
            log.debug('Received own report, ignoring')
            return

        await self._handler(topic, data)

    def register_handler(self, handler):
        """
        Register all required handlers for received reports
        """
        if not asyncio.iscoroutinefunction(handler):
            raise ValueError('handler must be a coroutine')
        if self._service == 'mqtt':
            asyncio.ensure_future(self._publisher.subscribe(
                self.MONIT_TOPIC, self._handle_report
            ))
        self._handler = handler

    def send_report(self, rtype, data):
        """
        Send reports with a type and any data

        Using docker/fleet, we require some informations about IP/hostname of
        our nyuki containers, using environnement vars :
            - MACHINE_NAME: machine hostname
            - DEFAULT_IPV4: local container ipv4
        Otherwise, the nyuki try and search for it by itself.
        """
        if not self._publisher:
            log.warning('Reporting not initiated')
            return

        report = {
            'hostname': os.environ.get('MACHINE_NAME', socket.gethostname()),
            'ipv4': os.environ.get(
                'DEFAULT_IPV4',
                socket.gethostbyname(socket.gethostname())
            ),
            'type': rtype,
            'author': self._name,
            'datetime': utcnow(),
            'data': data
        }
        log.info("Sending report data with type '%s'", rtype)
        asyncio.ensure_future(self._publisher.publish(report, self._channel))

    def exception(self, exc):
        """
        Helper to report an exception traceback from its object
        """
        traceback = TracebackException.from_exception(exc)
        formatted = ''.join(traceback.format())
        log.error(formatted)

        if formatted in self._last_exceptions:
            log.debug('Exception already logged')
            return

        # Retain the formatted exception in memory to avoid looping
        self._last_exceptions.append(formatted)
        self._loop.call_later(
            self.EXCEPTION_TTL, self._forget_exception, formatted
        )

        self.send_report('exception', {'traceback': formatted})

    def _forget_exception(self, formatted):
        self._last_exceptions.remove(formatted)

sys.modules[__name__] = Reporter()


text:
SYNONYM

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

#### Published in
Compendium Hymenomycetum, Amanita. Fascicle 13: 277 (1923)

#### Original name
Amanita violacea Jacz., 1923

### Remarks
null


text:
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Security;
using System.Text;

using Khronos;

// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
// ReSharper disable JoinDeclarationAndInitializer

namespace OpenGL
{
	public partial class Glx
	{
		/// <summary>
		/// [GLX] Value of GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS symbol.
		/// </summary>
		[RequiredByFeature("GLX_SGIS_shared_multisample")]
		public const int MULTISAMPLE_SUB_RECT_WIDTH_SGIS = 0x8026;

		/// <summary>
		/// [GLX] Value of GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS symbol.
		/// </summary>
		[RequiredByFeature("GLX_SGIS_shared_multisample")]
		public const int MULTISAMPLE_SUB_RECT_HEIGHT_SGIS = 0x8027;

	}

}


text:
class CreateLikes < ActiveRecord::Migration
  def change
    create_table :likes do |t|
      t.integer :user_id
      t.integer :haircut_id

      t.timestamps
    end
  end
end


text:
<!DOCTYPE html>

    <title>{{ blueprint.title }}</title>
    <link rel=stylesheet type=text/css href="{{ url_for('static', filename='css/style.css') }}">

Blueprint “{{ blueprint.name }}”

Title: {{ blueprint.title }}

URL: https://blueprints.launchpad.net/{{ blueprint.module }}/+spec/{{ blueprint.name }}

Module: {{blueprint.module}}

Status: {{blueprint.lifecycle_status}}

Priority: {{blueprint.priority}}

Definition Status: {{blueprint.definition_status}}

Implementation Status: {{blueprint.implementation_status}}

Direction: {% if blueprint.direction_approved %} Approved {% else %} Needs Approval {% endif %}

Registered By: {{blueprint.author_name}} ({{ blueprint.company_name }})

Registered On: {{blueprint.date_str}}

{% if blueprint.mention_count %}

Popularity: mentioned {{blueprint.mention_count}} times, last on {{blueprint.mention_date_str}}

{% endif %}

{% if blueprint.summary %}

Summary

{{  blueprint.summary | safe }}

{% endif %}

{% if blueprint.whiteboard %}

Whiteboard

{{  blueprint.whiteboard }}

{% endif %}

Activity Log

{% if not activity %}

No activities related to this blueprint.

{% endif %}
{% for item in activity %}

{{ item.date_str}}

{{ item.author_name }} ({{ item.company_name }})

            {% if item.record_type == "commit" %}

Commit “{{ item.subject }}”

{{ item.message | safe }}

+{{ item.lines_added }}
                    - {{ item.lines_deleted }}

                {% if item.correction_comment %}

Commit corrected:
                        {{ item.correction_comment }}

                {% endif %}
            {% elif item.record_type == "mark" %}

Review “{{item.subject}}”

Patch submitted by {{ parent_author_link }}

Change Id: {{item.review_id}}

 0 %} green {% else %} blue {% endif %}">
                    {{item.description}}: {{item.value}}

            {% elif item.record_type == "email" %}

Email “{{item.subject}}”

                {% if item.body %}

{{ item.body|safe }}

                {% endif %}
            {% endif %}

{% endfor %}


text:
@name(skullknock)
@author(Ryan Sandor Richards)

# Cooldown: skullknock
Usage: `skullknock [target]`
Cooldown: 180s
Type: Physical
Special: Dwarven race only

The skullknock command is a special racial cooldown available only to dwarves.
When executed an attack of potency 150 will be performed against the target and
on a successful hit the target will be `stunned` for 4s.

See also: `dwarf` (race)


text:
package org.sakaiproject.tool.assessment.osid.authz.impl;

import org.osid.authorization.Function;
import org.osid.shared.Id;
import org.osid.shared.Type;

public class FunctionImpl implements Function {
  private Id id;

private String referenceName;
  private String description;
  private Type functionType;
  private Id qualifierHierarchyId;

  public FunctionImpl() {
  }
  public FunctionImpl(String referenceName, String description,
                      Type functionType, Id qualifierHierarchyId) {
    this.referenceName = referenceName;
    this.description = description;
    this.functionType = functionType;
    this.qualifierHierarchyId = qualifierHierarchyId;
  }
  public Id getId(){
    return id;
  }

  public void setId(Id id) {
		this.id = id;
	}

  public String getReferenceName() {
    return referenceName;
  }
  public String getDescription(){
    return description;
  }
  public Type getFunctionType(){
    return functionType;
  }
  public Id getQualifierHierarchyId(){
    return qualifierHierarchyId;
  }
  public void updateDescription(String parm1){
    this.description = parm1;
  }

}


text:
class ApplicationController
  def body_class
    return @body_class if @body_class
    @body_class = String.new
    def @body_class.<<(str)
      concat ' ' unless length.zero?
      concat str
    end
    @body_class
  end
end

#Jordan - I DON'T UNDERSTAND WHY THIS ISN'T PUTTING THE SPACE IN???! HELP - SOMEONE?
class ApplicationController

  def initialize
    @body_class ||= ""
  end

  def body_class
    @body_class
  end

  def @body_class.<< arg
    concat ' ' unless self.length.zero?
    concat arg
  end
end
#============


text:
#include "TimeServiceTimerFactoryBusObj.h"
#include <alljoyn/time/LogModule.h>
#include <alljoyn/time/TimeServiceServer.h>
#include "../common/TimeServiceTimerUtility.h"
#include <alljoyn/time/TimeServiceConstants.h>
#include <alljoyn/time/TimeServiceServerTimer.h>
#include <alljoyn/time/TimeServiceTimerBusObj.h>

using namespace ajn;
using namespace services;

//Constructor
TimeServiceTimerFactoryBusObj::TimeServiceTimerFactoryBusObj(qcc::String const& objectPath) : BusObject(objectPath.c_str()), m_TimerFactory(NULL),
    m_ObjectPath(objectPath), m_Translator(NULL)
{

    QCC_DbgTrace(("%s, ObjectPath: '%s'", __FUNCTION__, objectPath.c_str()));
}

//Destructor
TimeServiceTimerFactoryBusObj::~TimeServiceTimerFactoryBusObj()
{

    QCC_DbgTrace(("%s, ObjectPath: '%s'", __FUNCTION__, m_ObjectPath.c_str()));
    release();
}

//Initialize the Bus Object. Register it on the BusAttachment and in the AboutService for Announcement
QStatus TimeServiceTimerFactoryBusObj::init(TimeServiceServerTimerFactory* TimerFactory)
{

    return init(TimerFactory, qcc::String::Empty, qcc::String::Empty, NULL);
}

//Initialize the Bus Object. Register it on the BusAttachment and in the AboutService for Announcement
QStatus TimeServiceTimerFactoryBusObj::init(TimeServiceServerTimerFactory* TimerFactory, const qcc::String& description,
                                            const qcc::String& language, Translator* translator)
{

    QCC_DbgTrace(("%s, ObjectPath: '%s'", __FUNCTION__, m_ObjectPath.c_str()));

    QStatus status = ER_OK;

    QCC_DbgHLPrintf(("Initializing TimerFactory '%s'", m_ObjectPath.c_str()));

    if (!TimerFactory) {

        QCC_LogError(ER_FAIL, ("TimerFactory is undefined"));
        return ER_FAIL;
    }

    BusAttachment* bus = TimeServiceServer::getInstance()->getBusAttachment();
    if (!bus) {

        QCC_LogError(ER_FAIL, ("TimeService Server hasn't been initialized"));
        return ER_FAIL;
    }

    m_TimerFactory       = TimerFactory;
    m_Description        = description;
    m_Language           = language;
    m_Translator         = translator;

    status = addTimerFactoryInterface(bus);
    if (status != ER_OK) {

        return status;
    }

    status = bus->RegisterBusObject(*this);
    if (status != ER_OK) {

        QCC_LogError(status, ("Failed to register TimerFactory BusObject"));
        return status;
    }

    return ER_OK;
}

//Releases object resources
void TimeServiceTimerFactoryBusObj::release()
{

    QCC_DbgTrace(("%s, ObjectPath: '%s'", __FUNCTION__, m_ObjectPath.c_str()));
    QCC_DbgHLPrintf(("Releasing TimerFactory '%s'", m_ObjectPath.c_str()));

    m_TimerFactory     = NULL;
    BusAttachment* bus = TimeServiceServer::getInstance()->getBusAttachment();
    if (!bus) {

        return;
    }

    bus->UnregisterBusObject(*this);
}

//Returns object path of this Timer
qcc::String const& TimeServiceTimerFactoryBusObj::getObjectPath() const
{

    return m_ObjectPath;
}

//Adds the interface to this TimerFactory BusObject.
QStatus TimeServiceTimerFactoryBusObj::addTimerFactoryInterface(BusAttachment* bus)
{

    QCC_DbgTrace(("%s, ObjectPath: '%s'", __FUNCTION__, m_ObjectPath.c_str()));

    QStatus status = ER_OK;

    InterfaceDescription* ifaceDesc = const_cast<InterfaceDescription*> (bus->GetInterface(tsConsts::TIMER_FACTORY_IFACE.c_str()));

    if (!ifaceDesc) {

        status = tsTimerUtility::createFactoryInterface(bus, &ifaceDesc);
        if (status != ER_OK) {

            QCC_LogError(status, ("Failed to create TimerFactory interface"));
            return status;
        }
    }

    status = AddInterface(*ifaceDesc, ANNOUNCED);
    if (status != ER_OK) {

        QCC_LogError(status, ("Failed to add TimerFactory interface"));
        return status;
    }

    const ajn::InterfaceDescription::Member* newTimerMethod;
    const ajn::InterfaceDescription::Member* deleteTimerMethod;

    newTimerMethod    = ifaceDesc->GetMember(tsTimerUtility::IFACE_FAC_METHOD_NEW_TIMER.c_str());
    deleteTimerMethod = ifaceDesc->GetMember(tsTimerUtility::IFACE_FAC_METHOD_DELETE_TIMER.c_str());

    status = AddMethodHandler(newTimerMethod,
                              static_cast<MessageReceiver::MethodHandler>(&TimeServiceTimerFactoryBusObj::handleNewTimer));
    if (status != ER_OK) {

        QCC_LogError(status, ("Failed to add NewTimer method handler"));
        return status;
    }

    status = AddMethodHandler(deleteTimerMethod,
                              static_cast<MessageReceiver::MethodHandler>(&TimeServiceTimerFactoryBusObj::handleDeleteTimer));
    if (status != ER_OK) {

        QCC_LogError(status, ("Failed to add DeleteTimer method handler"));
        return status;
    }

    return status;
}

//Callback for Alljoyn when GetProperty is called on this BusObject.
QStatus TimeServiceTimerFactoryBusObj::Get(const char* interfaceName, const char* propName, MsgArg& msgArg)
{

    QCC_DbgTrace(("%s, ObjectPath: '%s'", __FUNCTION__, m_ObjectPath.c_str()));

    BusAttachment* bus = TimeServiceServer::getInstance()->getBusAttachment();
    if (!bus) {

        QCC_LogError(ER_FAIL, ("TimeService Server hasn't been initialized"));
        return ER_FAIL;
    }

    bus->EnableConcurrentCallbacks();

    if (0 != strcmp(tsConsts::TIMER_FACTORY_IFACE.c_str(), interfaceName)) {

        return ER_BUS_NO_SUCH_INTERFACE;
    }

    QCC_DbgPrintf(("Received 'GET' request for: '%s'::'%s', objectPath: '%s'", interfaceName, propName, m_ObjectPath.c_str()));

    if (0 == strcmp(tsTimerUtility::IFACE_FAC_PROP_VERSION.c_str(), propName)) {

        return handleGetVersion(msgArg);
    }

    return ER_BUS_NO_SUCH_PROPERTY;
}

//Handles Get Version property request
QStatus TimeServiceTimerFactoryBusObj::handleGetVersion(MsgArg& msgArg)
{

    QCC_DbgTrace(("%s, ObjectPath: '%s'", __FUNCTION__, m_ObjectPath.c_str()));

    msgArg.typeId   = ALLJOYN_UINT16;
    msgArg.v_uint16 = tsConsts::TIMER_FACTORY_IFACE_VERSION;

    return ER_OK;
}

//Handle New Timer
void TimeServiceTimerFactoryBusObj::handleNewTimer(const InterfaceDescription::Member* member, Message& msg)
{

    QCC_DbgTrace(("%s, ObjectPath: '%s'", __FUNCTION__, m_ObjectPath.c_str()));
    QCC_DbgPrintf(("Handling NewTimer() method call, objectPath: '%s'", m_ObjectPath.c_str()));

    BusAttachment* bus = TimeServiceServer::getInstance()->getBusAttachment();
    if (!bus) {

        QCC_LogError(ER_FAIL, ("TimeService Server hasn't been initialized"));
        replyError(ER_FAIL, NULL, msg);
        return;
    }

    bus->EnableConcurrentCallbacks();

    TimeServiceServerTimer* timer = NULL;
    tsConsts::ErrorInfo error;

    QStatus status = m_TimerFactory->newTimer(&timer, &error);

    if (status != ER_OK || !timer) {

        QCC_LogError(status, ("Failed to create NewTimer, objPath: '%s'", m_ObjectPath.c_str()));
        replyError(status, &error, msg);
        return;
    }

    //Create child object path for this factory
    qcc::String TimerObjPath = m_ObjectPath + tsTimerUtility::OBJ_PATH_PREFIX;
    status = TimeServiceServer::getInstance()->generateObjectPath(&TimerObjPath);

    if (status != ER_OK) {

        QCC_LogError(ER_FAIL, ("Failed to generate object path for the new Timer, objectPath: '%s'", m_ObjectPath.c_str()));

        m_TimerFactory->handleError(timer);
        replyError(status, NULL, msg);
        return;
    }

    TimeServiceTimerBusObj* timerBusObj = new TimeServiceTimerBusObj(TimerObjPath);
    status = timerBusObj->init(timer, m_Description, m_Language, m_Translator);

    if (status != ER_OK) {

        QCC_LogError(ER_FAIL, ("Failed to initialize TimerBusObj, objectPath: '%s'", m_ObjectPath.c_str()));

        m_TimerFactory->handleError(timer);

        delete timerBusObj;
        replyError(status, NULL, msg);
        return;
    }

    status = timer->setTimerBusObj(timerBusObj);
    if (status != ER_OK) {

        QCC_LogError(ER_FAIL, ("Failed to initialize the new Timer, objectPath: '%s'", m_ObjectPath.c_str()));

        m_TimerFactory->handleError(timer);

        delete timerBusObj;
        replyError(status, NULL, msg);
        return;
    }

    ajn::MsgArg replyArg[1];
    status = tsTimerUtility::marshalObjectPath(replyArg[0], TimerObjPath);

    if (status != ER_OK) {

        QCC_LogError(ER_FAIL, ("Failed to marshal NewTimer response, objectPath: '%s'", m_ObjectPath.c_str()));

        m_TimerFactory->handleError(timer);

        replyError(status, NULL, msg);
        return;
    }

    status = MethodReply(msg, replyArg, 1);
    if (status != ER_OK) {

        QCC_LogError(status, ("Failed to call MethodReply, objectPath: '%s'", m_ObjectPath.c_str()));

        m_TimerFactory->handleError(timer);
        return;
    }

    QCC_DbgHLPrintf(("New Timer has been created '%s'", TimerObjPath.c_str()));
}

//Handle Delete Timer
void TimeServiceTimerFactoryBusObj::handleDeleteTimer(const InterfaceDescription::Member* member, Message& msg)
{

    QCC_DbgTrace(("%s, ObjectPath: '%s'", __FUNCTION__, m_ObjectPath.c_str()));
    QCC_DbgPrintf(("Handling DeleteTimer() method call, objectPath: '%s'", m_ObjectPath.c_str()));

    BusAttachment* bus = TimeServiceServer::getInstance()->getBusAttachment();
    if (!bus) {

        QCC_LogError(ER_FAIL, ("TimeService Server hasn't been initialized"));
        replyError(ER_FAIL, NULL, msg);
        return;
    }

    bus->EnableConcurrentCallbacks();

    const ajn::MsgArg* msgArg = msg->GetArg(0);
    if (!msgArg) {

        QCC_LogError(ER_BAD_ARG_COUNT, ("Failed to read objectPath to be deleted, objPath: '%s'", m_ObjectPath.c_str()));
        replyError(ER_BAD_ARG_COUNT, NULL, msg);
        return;
    }

    qcc::String TimerObjPath;
    QStatus status = tsTimerUtility::unmarshalObjectPath(*msgArg, &TimerObjPath);
    if (status != ER_OK) {

        QCC_LogError(status, ("Failed to unmarhal objectPath to be deleted, objPath: '%s'", m_ObjectPath.c_str()));
        replyError(status, NULL, msg);
        return;
    }

    tsConsts::ErrorInfo errorInfo;
    status = m_TimerFactory->deleteTimer(TimerObjPath, &errorInfo);
    if (status != ER_OK) {

        QCC_LogError(status, ("Failed to delete Timer, objPath: '%s'", TimerObjPath.c_str()));
        replyError(status, &errorInfo, msg);
        return;
    }

    status = MethodReply(msg);
    if (status != ER_OK) {

        QCC_LogError(status, ("Failed to call MethodReply, objectPath: '%s'", m_ObjectPath.c_str()));
        return;
    }

    QCC_DbgHLPrintf(("The Timer '%s' has been deleted successfully", TimerObjPath.c_str()));
}

//Reply Error with description
void TimeServiceTimerFactoryBusObj::replyError(QStatus status, const tsConsts::ErrorInfo* errorInfo, Message& msg)
{

    QStatus replyStatus = ER_OK;

    if (!errorInfo || errorInfo->errorName.length() == 0) {

        replyStatus = MethodReply(msg, status);
    } else {

        replyStatus = MethodReply(msg, errorInfo->errorName.c_str(), errorInfo->errorDescription.c_str());
    }

    if (replyStatus != ER_OK) {

        QCC_LogError(replyStatus, ("Failed to call MethodReply with error, objectPath: '%s'", m_ObjectPath.c_str()));
    }
}


text:
package org.kaazing.hamcrest.core;

import static java.lang.String.format;

import org.hamcrest.BaseMatcher;
import org.hamcrest.Description;

public class IsInstanceOf<T> extends BaseMatcher<T> {

    private final Class<T> instanceType;

    public IsInstanceOf(Class<T> instanceType) {
        this.instanceType = instanceType;
    }

    @Override
    public boolean matches(Object object) {
        return instanceType.isInstance(object);
    }

    @Override
    public void describeTo(Description description) {
        description.appendText(format("instance of %s", instanceType.getName()));
    }

}


text:
@implementation WCAppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // Setup Push Notifications
    [WCParsePushInstallation setApplicationId:kParseApplicationId clientKey:kParseClientKey];

    if([[UIApplication sharedApplication] respondsToSelector:@selector(registerForRemoteNotifications)]){
        UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes: (UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeBadge) categories: nil];
        [[UIApplication sharedApplication] registerUserNotificationSettings: settings];
        [[UIApplication sharedApplication] registerForRemoteNotifications];
    } else {
        [[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeBadge)];
    }

    return YES;
}

- (void)applicationWillResignActive:(UIApplication *)application
{
    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
    // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}

- (void)applicationDidEnterBackground:(UIApplication *)application
{
    // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}

- (void)applicationWillEnterForeground:(UIApplication *)application
{
    // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}

- (void)applicationDidBecomeActive:(UIApplication *)application
{
    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}

- (void)applicationWillTerminate:(UIApplication *)application
{
    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}

#pragma mark - Remote Notifications Methods

- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
{
    WCParsePushInstallation *currentInstallation = [WCParsePushInstallation currentInstallation];
    [currentInstallation setDeviceTokenFromData:deviceToken];
}

- (void)application:(UIApplication *)app didFailToRegisterForRemoteNotificationsWithError:(NSError *)error
{
    NSLog(@"ERROR: Couldn't register for remote notifications: %@", error.localizedDescription);
}

- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
{
    NSLog(@"Did receive remote notification: %@", userInfo);
}

@end


text:
#pragma once
#include <aws/inspector2/Inspector2_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/DateTime.h>
#include <utility>

namespace Aws
{
namespace Utils
{
namespace Json
{
  class JsonValue;
  class JsonView;
} // namespace Json
} // namespace Utils
namespace Inspector2
{
namespace Model
{

  /**
   *
The image details of the Amazon ECR container image.

See Also:

   * AWS
   * API Reference

   */
  class AWS_INSPECTOR2_API AwsEcrContainerImageDetails
  {
  public:
    AwsEcrContainerImageDetails();
    AwsEcrContainerImageDetails(Aws::Utils::Json::JsonView jsonValue);
    AwsEcrContainerImageDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
    Aws::Utils::Json::JsonValue Jsonize() const;

    /**
     *
The architecture of the Amazon ECR container image.

     */
    inline const Aws::String& GetArchitecture() const{ return m_architecture; }

    /**
     *
The architecture of the Amazon ECR container image.

     */
    inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }

    /**
     *
The architecture of the Amazon ECR container image.

     */
    inline void SetArchitecture(const Aws::String& value) { m_architectureHasBeenSet = true; m_architecture = value; }

    /**
     *
The architecture of the Amazon ECR container image.

     */
    inline void SetArchitecture(Aws::String&& value) { m_architectureHasBeenSet = true; m_architecture = std::move(value); }

    /**
     *
The architecture of the Amazon ECR container image.

     */
    inline void SetArchitecture(const char* value) { m_architectureHasBeenSet = true; m_architecture.assign(value); }

    /**
     *
The architecture of the Amazon ECR container image.

     */
    inline AwsEcrContainerImageDetails& WithArchitecture(const Aws::String& value) { SetArchitecture(value); return *this;}

    /**
     *
The architecture of the Amazon ECR container image.

     */
    inline AwsEcrContainerImageDetails& WithArchitecture(Aws::String&& value) { SetArchitecture(std::move(value)); return *this;}

    /**
     *
The architecture of the Amazon ECR container image.

     */
    inline AwsEcrContainerImageDetails& WithArchitecture(const char* value) { SetArchitecture(value); return *this;}

    /**
     *
The image author of the Amazon ECR container image.

     */
    inline const Aws::String& GetAuthor() const{ return m_author; }

    /**
     *
The image author of the Amazon ECR container image.

     */
    inline bool AuthorHasBeenSet() const { return m_authorHasBeenSet; }

    /**
     *
The image author of the Amazon ECR container image.

     */
    inline void SetAuthor(const Aws::String& value) { m_authorHasBeenSet = true; m_author = value; }

    /**
     *
The image author of the Amazon ECR container image.

     */
    inline void SetAuthor(Aws::String&& value) { m_authorHasBeenSet = true; m_author = std::move(value); }

    /**
     *
The image author of the Amazon ECR container image.

     */
    inline void SetAuthor(const char* value) { m_authorHasBeenSet = true; m_author.assign(value); }

    /**
     *
The image author of the Amazon ECR container image.

     */
    inline AwsEcrContainerImageDetails& WithAuthor(const Aws::String& value) { SetAuthor(value); return *this;}

    /**
     *
The image author of the Amazon ECR container image.

     */
    inline AwsEcrContainerImageDetails& WithAuthor(Aws::String&& value) { SetAuthor(std::move(value)); return *this;}

    /**
     *
The image author of the Amazon ECR container image.

     */
    inline AwsEcrContainerImageDetails& WithAuthor(const char* value) { SetAuthor(value); return *this;}

    /**
     *
The image hash of the Amazon ECR container image.

     */
    inline const Aws::String& GetImageHash() const{ return m_imageHash; }

    /**
     *
The image hash of the Amazon ECR container image.

     */
    inline bool ImageHashHasBeenSet() const { return m_imageHashHasBeenSet; }

    /**
     *
The image hash of the Amazon ECR container image.

     */
    inline void SetImageHash(const Aws::String& value) { m_imageHashHasBeenSet = true; m_imageHash = value; }

    /**
     *
The image hash of the Amazon ECR container image.

     */
    inline void SetImageHash(Aws::String&& value) { m_imageHashHasBeenSet = true; m_imageHash = std::move(value); }

    /**
     *
The image hash of the Amazon ECR container image.

     */
    inline void SetImageHash(const char* value) { m_imageHashHasBeenSet = true; m_imageHash.assign(value); }

    /**
     *
The image hash of the Amazon ECR container image.

     */
    inline AwsEcrContainerImageDetails& WithImageHash(const Aws::String& value) { SetImageHash(value); return *this;}

    /**
     *
The image hash of the Amazon ECR container image.

     */
    inline AwsEcrContainerImageDetails& WithImageHash(Aws::String&& value) { SetImageHash(std::move(value)); return *this;}

    /**
     *
The image hash of the Amazon ECR container image.

     */
    inline AwsEcrContainerImageDetails& WithImageHash(const char* value) { SetImageHash(value); return *this;}

    /**
     *
The image tags attached to the Amazon ECR container image.

     */
    inline const Aws::Vector<Aws::String>& GetImageTags() const{ return m_imageTags; }

    /**
     *
The image tags attached to the Amazon ECR container image.

     */
    inline bool ImageTagsHasBeenSet() const { return m_imageTagsHasBeenSet; }

    /**
     *
The image tags attached to the Amazon ECR container image.

     */
    inline void SetImageTags(const Aws::Vector<Aws::String>& value) { m_imageTagsHasBeenSet = true; m_imageTags = value; }

    /**
     *
The image tags attached to the Amazon ECR container image.

     */
    inline void SetImageTags(Aws::Vector<Aws::String>&& value) { m_imageTagsHasBeenSet = true; m_imageTags = std::move(value); }

    /**
     *
The image tags attached to the Amazon ECR container image.

     */
    inline AwsEcrContainerImageDetails& WithImageTags(const Aws::Vector<Aws::String>& value) { SetImageTags(value); return *this;}

    /**
     *
The image tags attached to the Amazon ECR container image.

     */
    inline AwsEcrContainerImageDetails& WithImageTags(Aws::Vector<Aws::String>&& value) { SetImageTags(std::move(value)); return *this;}

    /**
     *
The image tags attached to the Amazon ECR container image.

     */
    inline AwsEcrContainerImageDetails& AddImageTags(const Aws::String& value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(value); return *this; }

    /**
     *
The image tags attached to the Amazon ECR container image.

     */
    inline AwsEcrContainerImageDetails& AddImageTags(Aws::String&& value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(std::move(value)); return *this; }

    /**
     *
The image tags attached to the Amazon ECR container image.

     */
    inline AwsEcrContainerImageDetails& AddImageTags(const char* value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(value); return *this; }

    /**
     *
The platform of the Amazon ECR container image.

     */
    inline const Aws::String& GetPlatform() const{ return m_platform; }

    /**
     *
The platform of the Amazon ECR container image.

     */
    inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }

    /**
     *
The platform of the Amazon ECR container image.

     */
    inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; }

    /**
     *
The platform of the Amazon ECR container image.

     */
    inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }

    /**
     *
The platform of the Amazon ECR container image.

     */
    inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); }

    /**
     *
The platform of the Amazon ECR container image.

     */
    inline AwsEcrContainerImageDetails& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;}

    /**
     *
The platform of the Amazon ECR container image.

     */
    inline AwsEcrContainerImageDetails& WithPlatform(Aws::String&& value) { SetPlatform(std::move(value)); return *this;}

    /**
     *
The platform of the Amazon ECR container image.

     */
    inline AwsEcrContainerImageDetails& WithPlatform(const char* value) { SetPlatform(value); return *this;}

    /**
     *
The date and time the Amazon ECR container image was pushed.

     */
    inline const Aws::Utils::DateTime& GetPushedAt() const{ return m_pushedAt; }

    /**
     *
The date and time the Amazon ECR container image was pushed.

     */
    inline bool PushedAtHasBeenSet() const { return m_pushedAtHasBeenSet; }

    /**
     *
The date and time the Amazon ECR container image was pushed.

     */
    inline void SetPushedAt(const Aws::Utils::DateTime& value) { m_pushedAtHasBeenSet = true; m_pushedAt = value; }

    /**
     *
The date and time the Amazon ECR container image was pushed.

     */
    inline void SetPushedAt(Aws::Utils::DateTime&& value) { m_pushedAtHasBeenSet = true; m_pushedAt = std::move(value); }

    /**
     *
The date and time the Amazon ECR container image was pushed.

     */
    inline AwsEcrContainerImageDetails& WithPushedAt(const Aws::Utils::DateTime& value) { SetPushedAt(value); return *this;}

    /**
     *
The date and time the Amazon ECR container image was pushed.

     */
    inline AwsEcrContainerImageDetails& WithPushedAt(Aws::Utils::DateTime&& value) { SetPushedAt(std::move(value)); return *this;}

    /**
     *
The registry the Amazon ECR container image belongs to.

     */
    inline const Aws::String& GetRegistry() const{ return m_registry; }

    /**
     *
The registry the Amazon ECR container image belongs to.

     */
    inline bool RegistryHasBeenSet() const { return m_registryHasBeenSet; }

    /**
     *
The registry the Amazon ECR container image belongs to.

     */
    inline void SetRegistry(const Aws::String& value) { m_registryHasBeenSet = true; m_registry = value; }

    /**
     *
The registry the Amazon ECR container image belongs to.

     */
    inline void SetRegistry(Aws::String&& value) { m_registryHasBeenSet = true; m_registry = std::move(value); }

    /**
     *
The registry the Amazon ECR container image belongs to.

     */
    inline void SetRegistry(const char* value) { m_registryHasBeenSet = true; m_registry.assign(value); }

    /**
     *
The registry the Amazon ECR container image belongs to.

     */
    inline AwsEcrContainerImageDetails& WithRegistry(const Aws::String& value) { SetRegistry(value); return *this;}

    /**
     *
The registry the Amazon ECR container image belongs to.

     */
    inline AwsEcrContainerImageDetails& WithRegistry(Aws::String&& value) { SetRegistry(std::move(value)); return *this;}

    /**
     *
The registry the Amazon ECR container image belongs to.

     */
    inline AwsEcrContainerImageDetails& WithRegistry(const char* value) { SetRegistry(value); return *this;}

    /**
     *
The name of the repository the Amazon ECR container image resides in.

     */
    inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }

    /**
     *
The name of the repository the Amazon ECR container image resides in.

     */
    inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }

    /**
     *
The name of the repository the Amazon ECR container image resides in.

     */
    inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }

    /**
     *
The name of the repository the Amazon ECR container image resides in.

     */
    inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }

    /**
     *
The name of the repository the Amazon ECR container image resides in.

     */
    inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }

    /**
     *
The name of the repository the Amazon ECR container image resides in.

     */
    inline AwsEcrContainerImageDetails& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}

    /**
     *
The name of the repository the Amazon ECR container image resides in.

     */
    inline AwsEcrContainerImageDetails& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}

    /**
     *
The name of the repository the Amazon ECR container image resides in.

     */
    inline AwsEcrContainerImageDetails& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}

  private:

    Aws::String m_architecture;
    bool m_architectureHasBeenSet;

    Aws::String m_author;
    bool m_authorHasBeenSet;

    Aws::String m_imageHash;
    bool m_imageHashHasBeenSet;

    Aws::Vector<Aws::String> m_imageTags;
    bool m_imageTagsHasBeenSet;

    Aws::String m_platform;
    bool m_platformHasBeenSet;

    Aws::Utils::DateTime m_pushedAt;
    bool m_pushedAtHasBeenSet;

    Aws::String m_registry;
    bool m_registryHasBeenSet;

    Aws::String m_repositoryName;
    bool m_repositoryNameHasBeenSet;
  };

} // namespace Model
} // namespace Inspector2
} // namespace Aws


text:
import assert from 'assert/strict';

import PluginsAudit from '../../../audits/seo/plugins.js';

describe('SEO: Avoids plugins', () => {
  it('fails when page contains java, silverlight or flash content', () => {
    const embeddedContentValues = [
      [{
        tagName: 'APPLET',
        params: [],
        node: {},
      }],
      [{
        tagName: 'OBJECT',
        type: 'application/x-shockwave-flash',
        params: [],
        node: {
          lhId: 'page-11-OBJECT',
          // eslint-disable-next-line max-len
          devtoolsNodePath: '1,HTML,1,BODY,1,DIV,0,ARTICLE,12,FORM,0,DIV,1,DIV,1,DIV,0,DIV,0,OBJECT',
          selector: 'div.code-group > div.result-pane > div.result > object',
          boundingRect: {
            top: 1173,
            bottom: 1268,
            left: 27,
            right: 377,
            width: 350,
            height: 95,
          },
          // eslint-disable-next-line max-len
          snippet: '<object type="application/x-shockwave-flash" data="/web_design/paris_vegas.swf" width="350" height="95">',
          nodeLabel: 'object',
        },
      }],
      [{
        tagName: 'EMBED',
        type: 'application/x-java-applet;jpi-version=1.4',
        params: [],
        node: {},
      }],
      [{
        tagName: 'OBJECT',
        type: 'application/x-silverlight-2',
        params: [],
        node: {},
      }],
      [{
        tagName: 'OBJECT',
        data: 'https://example.com/movie_name.swf?uid=123',
        params: [],
        node: {},
      }],
      [{
        tagName: 'EMBED',
        src: '/path/to/movie_name.latest.swf',
        params: [],
        node: {},
      }],
      [{
        tagName: 'OBJECT',
        params: [
          {name: 'quality', value: 'low'},
          {name: 'movie', value: 'movie.swf?id=123'},
        ],
        node: {},
      }],
      [{
        tagName: 'OBJECT',
        params: [
          {name: 'code', value: '../HelloWorld.class'},
        ],
        node: {},
      }],
    ];

    embeddedContentValues.forEach(embeddedContent => {
      const artifacts = {
        EmbeddedContent: embeddedContent,
      };

      const auditResult = PluginsAudit.audit(artifacts);
      assert.equal(auditResult.score, 0);
      assert.equal(auditResult.details.items.length, 1);
    });
  });

  it('returns multiple results when there are multiple failing items', () => {
    const artifacts = {
      EmbeddedContent: [
        {
          tagName: 'EMBED',
          type: 'application/x-java-applet;jpi-version=1.4',
          params: [],
          node: {},
        },
        {
          tagName: 'OBJECT',
          type: 'application/x-silverlight-2',
          params: [],
          node: {},
        },
        {
          tagName: 'APPLET',
          params: [],
          node: {},
        },
      ],
    };

    const auditResult = PluginsAudit.audit(artifacts);
    assert.equal(auditResult.score, 0);
    assert.equal(auditResult.details.items.length, 3);
  });

  it('succeeds when there is no external content found on page', () => {
    const artifacts = {
      EmbeddedContent: [],
    };

    const auditResult = PluginsAudit.audit(artifacts);
    assert.equal(auditResult.score, 1);
  });

  it('succeeds when all external content is valid', () => {
    const artifacts = {
      EmbeddedContent: [
        {
          tagName: 'OBJECT',
          type: 'image/svg+xml',
          data: 'https://example.com/test.svg',
          params: [],
          node: {},
        },
        {
          tagName: 'OBJECT',
          data: 'https://example.com',
          params: [],
          node: {},
        },
        {
          tagName: 'EMBED',
          type: 'video/quicktime',
          src: 'movie.mov',
          params: [],
          node: {},
        },
        {
          tagName: 'OBJECT',
          params: [{
            name: 'allowFullScreen',
            value: 'true',
          }, {
            name: 'movie',
            value: 'http://www.youtube.com/v/example',
          }],
          node: {},
        },
      ],
    };

    const auditResult = PluginsAudit.audit(artifacts);
    assert.equal(auditResult.score, 1);
  });
});


text:
package org.peerbox.watchservice.states;

/** Utility enumeration, mainly used for logging **/
enum EventType {
	LOCAL_CREATE("LocalCreate"),
	LOCAL_DELETE("LocalDelete"),
	LOCAL_UPDATE("LocalUpdate"),
	LOCAL_MOVE("LocalMove"),
	LOCAL_HARD_DELETE("LocalHardDelete"),

	REMOTE_CREATE("RemoteCreate"),
	REMOTE_DELETE("RemoteDelete"),
	REMOTE_UPDATE("RemoteUpdate"),
	REMOTE_MOVE("RemoteMove");

	private final String type;

	private EventType(String type) {
		this.type = type;
	}

	public String getString() {
		return type;
	}

}


text:
/**
 * A custom call stack manager that allows for sequential
 * method calls and deferred method execution.
 */
window.Stack = (function(){

	function Stack(){
		this._stacks = []; // collection of call stacks (methods) to be executed in sequence
		this._defers = []; // list of deferred methods managed in exec()
		this._isExec = false; // is executing; exec() was called and hasn't completed
		this._killSwitch = false; // true when breaking from an exec loop
		this._lastValue = void 0; // last value from a stack call
	}

	/**
	 * Returns a function that, when called, will call the provided function
	 * in a new call stack.  This is useful for creating event handlers
	 * that are automatically executed in an exec().
	 */
	Stack.prototype.invoked = function(scope, fn, args){
		var stack = this;
		function StackRoot(/* arguments */){
			var stackMethod = new StackMethod(scope, fn, args);
			stackMethod.prependArgs(arguments);
			stack._stacks.push(stackMethod);
			stack.exec();

			// it's possible we're already in an exec call
			// if so, the return value here will be undefined
			// and the actual return value will be lost
			return stackMethod.returnValue;
		};

		return StackRoot;
	};

	/**
	 * Defers the execution of the provided method into the next
	 * call stack. It will automatically be called when the
	 * current call stack completes.  This will only work if the
	 * current script is being run in the context of an exec().
	 * If you are building up a list of calls to be run sequentially
	 * with exec(), use push() instead.
	 */
	Stack.prototype.defer = function(scope, fn, args){

		// adding method to defers which will be added
		// to the stack list by the exec() stack loop
		return this._deferItem( new StackMethod(scope, fn, args) );
	};

	/**
	 * A variation of defer that does not duplicate
	 * method calls in a stack list.  Duplicate methods
	 * are identified by the function reference resolved
	 * at the time of the call to deferOnce. Argument
	 * values are ignored. If a duplicate is found,
	 * the original is removed, and this new variation
	 * of the method is deferred.
	 */
	Stack.prototype.deferOnce = function(scope, fn, args){
		var item = new StackMethod(scope, fn, args);
		this._remove(item, this._defers);
		return this._deferItem(item);
	};

	/**
	 * Defers a StackMethod object.
	 */
	Stack.prototype._deferItem = function(item){
		if (item.isCallable()){

			// validation doesn't need to happen if
			// attempt is made on an invalid defer
			if (!this._isExec){
				throw new Error("Failure to call defer() within a Stack-executed call stack. The deferred method will not be called.");
			}

			this._defers.push(item);
			return true;
		}

		return false;
	};

	/**
	 * Pushes a method call to the end of the set of call stacks
	 * that is to be processed by exec().  Unlike defer(), push()ed
	 * methods are placed at the very end of the stack list rather than
	 * occurring immediately following the current call stack.
	 */
	Stack.prototype.push = function(scope, fn, args){
		return this._pushItem( new StackMethod(scope, fn, args) );
	};

	/**
	 * A variation of push that does not duplicate
	 * method calls in a stack list.  Duplicate methods
	 * are identified by the function reference resolved
	 * at the time of the call to deferOnce. Argument
	 * values are ignored. If a duplicate is found,
	 * the original is removed, and this new variation
	 * of the method is added to the end of the stack list.
	 */
	Stack.prototype.pushOnce = function(scope, fn, args){
		var item = new StackMethod(scope, fn, args);
		this._remove(item, this._stacks);
		return this._pushItem(item);
	};

	/**
	 * Pushes a StackMethod object.
	 */
	Stack.prototype._pushItem = function(item){
		if (item.isCallable()){
			this._stacks.push(item);
			return true;
		}

		return false;
	};

	/**
	 * Removes a single item from the end of the stack
	 * or specified list. Items are not identified by
	 * reference, rather by their resolved function
	 * reference.
	 */
	Stack.prototype._remove = function(item, list){
		if (!list){
			list = this._stacks;
		}

		var itemFn = item.getFn();

		var i = list.length;
		while (i--){
			if (itemFn === list[i].getFn()){
				list.splice(i, 1);
				return true;
			}
		}

		return false;
	};

	/**
	 * Executes a series of managed call stacks. Once a call stack
	 * executes, it is becomes empty and needs to be rebuilt
	 */
	Stack.prototype.exec = function(scope, fn, args){
		var stackMethod;

		// optional, initial method to start exec with
		this.push(scope, fn, args);

		if (this._isExec){
			// already running through a
			// set of stacks. Break and let
			// the current run handle things
			return false;
		}

		// process the call stacks in a loop running
		// through and emptying the call stacks array

		this._isExec = true;
		this._defers.length = 0;
		while (this._stacks.length && !this._killSwitch){

			stackMethod = this._stacks.shift();
			try {
				this._lastValue = stackMethod.call();

			}catch(err){
				this._lastValue = void 0;

				// custom error handling here could throw and
				// break the stack. That's ok; it may be desired
				// for debugging purposes so it won't be handled
				// but _isExec may be stuck at which point you
				// should clear() to clear it out
				if (this.onerror){
					this.onerror(err);
				}
			}

			// add any deferred calls to the beginning of the stack
			if (this._defers.length){
				this._stacks.unshift.apply(this._stacks, this._defers);
				this._defers.length = 0;
			}
		}

		this._isExec = false;
		if (this._killSwitch){
			this.clear();
			this._killSwitch = false;
		}

		return true;
	};

	/**
	 * Returns the value returned by the last call stack.
	 */
	Stack.prototype.value = function(){
		return this._lastValue;
	};

	/**
	 * Breaks out of the loop processing stack calls.
	 * This can be used for breaking out of an infinite call stack loop.
	 */
	Stack.prototype.kill = function(){
		this._killSwitch = true;
	};

	/**
	 * Removes all call stack methods from the stack list and
	 * clears any saved stack value.
	 */
	Stack.prototype.clear = function(){
		this._stacks.length = 0;
		this._isExec = false; // can save a corrupt isExec value
		this._lastValue = void 0;
	};

	/**
	 * Event handler for errors captured within each call stack. When an
	 * error is thrown in a call stack, this handler is immediately called
	 * with that error as an argument before any other call stacks are called.
	 * If not defined with a custom handler, a default handler will display
	 * a call stack through the console.
	 */
	Stack.prototype.onerror = function(err){
		console.error(err && err.stack ? err.stack : err);
	};

	/**
	 * Encapsulates a method call to be handled
	 * as a call stack call.
	 */
	function StackMethod(scope, fn, args){
		if (typeof scope === "function"){
			// when signature = (fn, args)
			args = fn;
			fn = scope;
			scope = null;
		}

		this.scope = scope;
		this.fn = fn;
		this.args = args;
		this.returnValue = void 0;

		// allow a single non0-null, non-array argument to work
		// as an argument list by putting it into an array
		if (this.args instanceof Array === false){
			this.args = this.args ? [this.args] : [];
		}
	}

	/**
	 * Calls the method.
	 */
	StackMethod.prototype.call = function(/* arguments */){

		// exit without a function to call
		var fn = this.getFn();
		if (!fn){
			return;
		}

		// multiple call()s would continue to build
		// up the argument list, but a call() should
		// only ever hapen once making it not matter
		this.prependArgs(arguments);

		this.returnValue = fn.apply(this.scope, this.args);
		return this.returnValue;
	};

	/**
	 * Adds arguments to the called method.
	 */
	StackMethod.prototype.getFn = function(){

		// the function can be a direct reference or
		// looked up dynamially by name upon being called

		if (typeof this.fn === "function"){
			return this.fn; // by reference
		}

		if (this.scope) {
			return this.scope[this.fn]; // by name
		}

		return null;
	};

	/**
	 * Adds arguments to the called method.
	 */
	StackMethod.prototype.prependArgs = function(addArgs){
		this.args.unshift.apply(this.args, addArgs);
	};

	/**
	 * Determines if the method is likely able to be called.
	 * It can be possible to not be callable at the time of
	 * being called, but this will determine if it is
	 * definitely not callable.
	 */
	StackMethod.prototype.isCallable = function(){
		if (typeof this.fn === "function"){
			return true;
		}

		// Note: Checking for just `this.fn` below is not enough since
		// it is possible to have empty string ("") keys in an object
		// which will resolve to false if not compared to null
		if (this.fn != null && this.scope){
			// can possibly be called by name from scope
			return true;
		}

		return false;
	};

	return new Stack();

})();


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class ItemPosted : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        // check if logged in
        if (Session["user"] == null) // not logged in
        {
            Session["pageRedirectAfterLogin"] = Request.RawUrl;
            Response.Redirect("Login.aspx"); // redirect to login page
            return;
        }

        lsvItemPostedList.DataSource = ItemDB.getAllItemofMember(MemberDB.getMemberbyEmail(Session["user"].ToString()).MemberID);
        lsvItemPostedList.DataBind();

        // get items listed by member
        if (ItemDB.getAllItemofMember(MemberDB.getMemberbyEmail(Session["user"].ToString()).MemberID).Count < 1)
            DataPager1.Visible = false;
        else
            DataPager1.Visible = true;

    }

    protected void lsvItemPostedList_SelectedIndexChanging(object sender, ListViewSelectEventArgs e)
    {
        //int currentRow = DataPager1.StartRowIndex / DataPager1.MaximumRows;
        //Rental r = getRentalofThisMember()[DataPager1.PageSize * currentRow + e.NewSelectedIndex];

        //Response.Redirect("Dispute.aspx?rentid=" + r.RentalID);

        ////More to be done here
    }

    protected void lsvItemPostedList_PagePropertiesChanging(object sender, PagePropertiesChangingEventArgs e)
    {
        DataPager1.SetPageProperties(e.StartRowIndex, e.MaximumRows, false);

        lsvItemPostedList.DataSource = ItemDB.getAllItemofMember(MemberDB.getMemberbyEmail(Session["user"].ToString()).MemberID);
        lsvItemPostedList.DataBind();
    }
}


text:
import VMessages from './VMessages'

export { VMessages }
export default VMessages