text:
.class public abstract Landroid/location/ILocationManager$Stub;
.super Landroid/os/Binder;
.source "ILocationManager.java"

# interfaces
.implements Landroid/location/ILocationManager;

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Landroid/location/ILocationManager;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x409
    name = "Stub"
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Landroid/location/ILocationManager$Stub$Proxy;
    }
.end annotation

# static fields
.field private static final DESCRIPTOR:Ljava/lang/String; = "android.location.ILocationManager"

.field static final TRANSACTION_addGpsStatusListener:I = 0x6

.field static final TRANSACTION_addTestProvider:I = 0x12

.field static final TRANSACTION_clearTestProviderEnabled:I = 0x17

.field static final TRANSACTION_clearTestProviderLocation:I = 0x15

.field static final TRANSACTION_clearTestProviderStatus:I = 0x19

.field static final TRANSACTION_geocoderIsPresent:I = 0x8

.field static final TRANSACTION_getAllProviders:I = 0xc

.field static final TRANSACTION_getBestProvider:I = 0xe

.field static final TRANSACTION_getFromLocation:I = 0x9

.field static final TRANSACTION_getFromLocationName:I = 0xa

.field static final TRANSACTION_getLastLocation:I = 0x5

.field static final TRANSACTION_getProviderProperties:I = 0x10

.field static final TRANSACTION_getProviders:I = 0xd

.field static final TRANSACTION_isProviderEnabled:I = 0x11

.field static final TRANSACTION_locationCallbackFinished:I = 0x1c

.field static final TRANSACTION_providerMeetsCriteria:I = 0xf

.field static final TRANSACTION_removeGeofence:I = 0x4

.field static final TRANSACTION_removeGpsStatusListener:I = 0x7

.field static final TRANSACTION_removeTestProvider:I = 0x13

.field static final TRANSACTION_removeUpdates:I = 0x2

.field static final TRANSACTION_reportLocation:I = 0x1b

.field static final TRANSACTION_requestGeofence:I = 0x3

.field static final TRANSACTION_requestLocationUpdates:I = 0x1

.field static final TRANSACTION_sendExtraCommand:I = 0x1a

.field static final TRANSACTION_sendNiResponse:I = 0xb

.field static final TRANSACTION_setTestProviderEnabled:I = 0x16

.field static final TRANSACTION_setTestProviderLocation:I = 0x14

.field static final TRANSACTION_setTestProviderStatus:I = 0x18

# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 19
    invoke-direct {p0}, Landroid/os/Binder;-><init>()V

    .line 20
    const-string v0, "android.location.ILocationManager"

    invoke-virtual {p0, p0, v0}, Landroid/os/Binder;->attachInterface(Landroid/os/IInterface;Ljava/lang/String;)V

    .line 21
    return-void
.end method

.method public static asInterface(Landroid/os/IBinder;)Landroid/location/ILocationManager;
    .locals 2
    .parameter "obj"

    .prologue
    .line 28
    if-nez p0, :cond_0

    .line 29
    const/4 v0, 0x0

    .line 35
    :goto_0
    return-object v0

    .line 31
    :cond_0
    const-string v1, "android.location.ILocationManager"

    invoke-interface {p0, v1}, Landroid/os/IBinder;->queryLocalInterface(Ljava/lang/String;)Landroid/os/IInterface;

    move-result-object v0

    .line 32
    .local v0, iin:Landroid/os/IInterface;
    if-eqz v0, :cond_1

    instance-of v1, v0, Landroid/location/ILocationManager;

    if-eqz v1, :cond_1

    .line 33
    check-cast v0, Landroid/location/ILocationManager;

    goto :goto_0

    .line 35
    :cond_1
    new-instance v0, Landroid/location/ILocationManager$Stub$Proxy;

    .end local v0           #iin:Landroid/os/IInterface;
    invoke-direct {v0, p0}, Landroid/location/ILocationManager$Stub$Proxy;-><init>(Landroid/os/IBinder;)V

    goto :goto_0
.end method

# virtual methods
.method public asBinder()Landroid/os/IBinder;
    .locals 0

    .prologue
    .line 39
    return-object p0
.end method

.method public onTransact(ILandroid/os/Parcel;Landroid/os/Parcel;I)Z
    .locals 31
    .parameter "code"
    .parameter "data"
    .parameter "reply"
    .parameter "flags"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/os/RemoteException;
        }
    .end annotation

    .prologue
    .line 43
    sparse-switch p1, :sswitch_data_0

    .line 500
    invoke-super/range {p0 .. p4}, Landroid/os/Binder;->onTransact(ILandroid/os/Parcel;Landroid/os/Parcel;I)Z

    move-result v2

    :goto_0
    return v2

    .line 47
    :sswitch_0
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p3

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V

    .line 48
    const/4 v2, 0x1

    goto :goto_0

    .line 52
    :sswitch_1
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 54
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v2

    if-eqz v2, :cond_0

    .line 55
    sget-object v2, Landroid/location/LocationRequest;->CREATOR:Landroid/os/Parcelable$Creator;

    move-object/from16 v0, p2

    invoke-interface {v2, v0}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Landroid/location/LocationRequest;

    .line 61
    .local v3, _arg0:Landroid/location/LocationRequest;
    :goto_1
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readStrongBinder()Landroid/os/IBinder;

    move-result-object v2

    invoke-static {v2}, Landroid/location/ILocationListener$Stub;->asInterface(Landroid/os/IBinder;)Landroid/location/ILocationListener;

    move-result-object v5

    .line 63
    .local v5, _arg1:Landroid/location/ILocationListener;
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v2

    if-eqz v2, :cond_1

    .line 64
    sget-object v2, Landroid/app/PendingIntent;->CREATOR:Landroid/os/Parcelable$Creator;

    move-object/from16 v0, p2

    invoke-interface {v2, v0}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Landroid/app/PendingIntent;

    .line 70
    .local v7, _arg2:Landroid/app/PendingIntent;
    :goto_2
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v8

    .line 71
    .local v8, _arg3:Ljava/lang/String;
    move-object/from16 v0, p0

    invoke-virtual {v0, v3, v5, v7, v8}, Landroid/location/ILocationManager$Stub;->requestLocationUpdates(Landroid/location/LocationRequest;Landroid/location/ILocationListener;Landroid/app/PendingIntent;Ljava/lang/String;)V

    .line 72
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 73
    const/4 v2, 0x1

    goto :goto_0

    .line 58
    .end local v3           #_arg0:Landroid/location/LocationRequest;
    .end local v5           #_arg1:Landroid/location/ILocationListener;
    .end local v7           #_arg2:Landroid/app/PendingIntent;
    .end local v8           #_arg3:Ljava/lang/String;
    :cond_0
    const/4 v3, 0x0

    .restart local v3       #_arg0:Landroid/location/LocationRequest;
    goto :goto_1

    .line 67
    .restart local v5       #_arg1:Landroid/location/ILocationListener;
    :cond_1
    const/4 v7, 0x0

    .restart local v7       #_arg2:Landroid/app/PendingIntent;
    goto :goto_2

    .line 77
    .end local v3           #_arg0:Landroid/location/LocationRequest;
    .end local v5           #_arg1:Landroid/location/ILocationListener;
    .end local v7           #_arg2:Landroid/app/PendingIntent;
    :sswitch_2
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 79
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readStrongBinder()Landroid/os/IBinder;

    move-result-object v2

    invoke-static {v2}, Landroid/location/ILocationListener$Stub;->asInterface(Landroid/os/IBinder;)Landroid/location/ILocationListener;

    move-result-object v3

    .line 81
    .local v3, _arg0:Landroid/location/ILocationListener;
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v2

    if-eqz v2, :cond_2

    .line 82
    sget-object v2, Landroid/app/PendingIntent;->CREATOR:Landroid/os/Parcelable$Creator;

    move-object/from16 v0, p2

    invoke-interface {v2, v0}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Landroid/app/PendingIntent;

    .line 88
    .local v5, _arg1:Landroid/app/PendingIntent;
    :goto_3
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v7

    .line 89
    .local v7, _arg2:Ljava/lang/String;
    move-object/from16 v0, p0

    invoke-virtual {v0, v3, v5, v7}, Landroid/location/ILocationManager$Stub;->removeUpdates(Landroid/location/ILocationListener;Landroid/app/PendingIntent;Ljava/lang/String;)V

    .line 90
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 91
    const/4 v2, 0x1

    goto :goto_0

    .line 85
    .end local v5           #_arg1:Landroid/app/PendingIntent;
    .end local v7           #_arg2:Ljava/lang/String;
    :cond_2
    const/4 v5, 0x0

    .restart local v5       #_arg1:Landroid/app/PendingIntent;
    goto :goto_3

    .line 95
    .end local v3           #_arg0:Landroid/location/ILocationListener;
    .end local v5           #_arg1:Landroid/app/PendingIntent;
    :sswitch_3
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 97
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v2

    if-eqz v2, :cond_3

    .line 98
    sget-object v2, Landroid/location/LocationRequest;->CREATOR:Landroid/os/Parcelable$Creator;

    move-object/from16 v0, p2

    invoke-interface {v2, v0}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Landroid/location/LocationRequest;

    .line 104
    .local v3, _arg0:Landroid/location/LocationRequest;
    :goto_4
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v2

    if-eqz v2, :cond_4

    .line 105
    sget-object v2, Landroid/location/Geofence;->CREATOR:Landroid/os/Parcelable$Creator;

    move-object/from16 v0, p2

    invoke-interface {v2, v0}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Landroid/location/Geofence;

    .line 111
    .local v5, _arg1:Landroid/location/Geofence;
    :goto_5
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v2

    if-eqz v2, :cond_5

    .line 112
    sget-object v2, Landroid/app/PendingIntent;->CREATOR:Landroid/os/Parcelable$Creator;

    move-object/from16 v0, p2

    invoke-interface {v2, v0}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Landroid/app/PendingIntent;

    .line 118
    .local v7, _arg2:Landroid/app/PendingIntent;
    :goto_6
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v8

    .line 119
    .restart local v8       #_arg3:Ljava/lang/String;
    move-object/from16 v0, p0

    invoke-virtual {v0, v3, v5, v7, v8}, Landroid/location/ILocationManager$Stub;->requestGeofence(Landroid/location/LocationRequest;Landroid/location/Geofence;Landroid/app/PendingIntent;Ljava/lang/String;)V

    .line 120
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 121
    const/4 v2, 0x1

    goto/16 :goto_0

    .line 101
    .end local v3           #_arg0:Landroid/location/LocationRequest;
    .end local v5           #_arg1:Landroid/location/Geofence;
    .end local v7           #_arg2:Landroid/app/PendingIntent;
    .end local v8           #_arg3:Ljava/lang/String;
    :cond_3
    const/4 v3, 0x0

    .restart local v3       #_arg0:Landroid/location/LocationRequest;
    goto :goto_4

    .line 108
    :cond_4
    const/4 v5, 0x0

    .restart local v5       #_arg1:Landroid/location/Geofence;
    goto :goto_5

    .line 115
    :cond_5
    const/4 v7, 0x0

    .restart local v7       #_arg2:Landroid/app/PendingIntent;
    goto :goto_6

    .line 125
    .end local v3           #_arg0:Landroid/location/LocationRequest;
    .end local v5           #_arg1:Landroid/location/Geofence;
    .end local v7           #_arg2:Landroid/app/PendingIntent;
    :sswitch_4
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 127
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v2

    if-eqz v2, :cond_6

    .line 128
    sget-object v2, Landroid/location/Geofence;->CREATOR:Landroid/os/Parcelable$Creator;

    move-object/from16 v0, p2

    invoke-interface {v2, v0}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Landroid/location/Geofence;

    .line 134
    .local v3, _arg0:Landroid/location/Geofence;
    :goto_7
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v2

    if-eqz v2, :cond_7

    .line 135
    sget-object v2, Landroid/app/PendingIntent;->CREATOR:Landroid/os/Parcelable$Creator;

    move-object/from16 v0, p2

    invoke-interface {v2, v0}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Landroid/app/PendingIntent;

    .line 141
    .local v5, _arg1:Landroid/app/PendingIntent;
    :goto_8
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v7

    .line 142
    .local v7, _arg2:Ljava/lang/String;
    move-object/from16 v0, p0

    invoke-virtual {v0, v3, v5, v7}, Landroid/location/ILocationManager$Stub;->removeGeofence(Landroid/location/Geofence;Landroid/app/PendingIntent;Ljava/lang/String;)V

    .line 143
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 144
    const/4 v2, 0x1

    goto/16 :goto_0

    .line 131
    .end local v3           #_arg0:Landroid/location/Geofence;
    .end local v5           #_arg1:Landroid/app/PendingIntent;
    .end local v7           #_arg2:Ljava/lang/String;
    :cond_6
    const/4 v3, 0x0

    .restart local v3       #_arg0:Landroid/location/Geofence;
    goto :goto_7

    .line 138
    :cond_7
    const/4 v5, 0x0

    .restart local v5       #_arg1:Landroid/app/PendingIntent;
    goto :goto_8

    .line 148
    .end local v3           #_arg0:Landroid/location/Geofence;
    .end local v5           #_arg1:Landroid/app/PendingIntent;
    :sswitch_5
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 150
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v2

    if-eqz v2, :cond_8

    .line 151
    sget-object v2, Landroid/location/LocationRequest;->CREATOR:Landroid/os/Parcelable$Creator;

    move-object/from16 v0, p2

    invoke-interface {v2, v0}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Landroid/location/LocationRequest;

    .line 157
    .local v3, _arg0:Landroid/location/LocationRequest;
    :goto_9
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v5

    .line 158
    .local v5, _arg1:Ljava/lang/String;
    move-object/from16 v0, p0

    invoke-virtual {v0, v3, v5}, Landroid/location/ILocationManager$Stub;->getLastLocation(Landroid/location/LocationRequest;Ljava/lang/String;)Landroid/location/Location;

    move-result-object v29

    .line 159
    .local v29, _result:Landroid/location/Location;
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 160
    if-eqz v29, :cond_9

    .line 161
    const/4 v2, 0x1

    move-object/from16 v0, p3

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->writeInt(I)V

    .line 162
    const/4 v2, 0x1

    move-object/from16 v0, v29

    move-object/from16 v1, p3

    invoke-virtual {v0, v1, v2}, Landroid/location/Location;->writeToParcel(Landroid/os/Parcel;I)V

    .line 167
    :goto_a
    const/4 v2, 0x1

    goto/16 :goto_0

    .line 154
    .end local v3           #_arg0:Landroid/location/LocationRequest;
    .end local v5           #_arg1:Ljava/lang/String;
    .end local v29           #_result:Landroid/location/Location;
    :cond_8
    const/4 v3, 0x0

    .restart local v3       #_arg0:Landroid/location/LocationRequest;
    goto :goto_9

    .line 165
    .restart local v5       #_arg1:Ljava/lang/String;
    .restart local v29       #_result:Landroid/location/Location;
    :cond_9
    const/4 v2, 0x0

    move-object/from16 v0, p3

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->writeInt(I)V

    goto :goto_a

    .line 171
    .end local v3           #_arg0:Landroid/location/LocationRequest;
    .end local v5           #_arg1:Ljava/lang/String;
    .end local v29           #_result:Landroid/location/Location;
    :sswitch_6
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 173
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readStrongBinder()Landroid/os/IBinder;

    move-result-object v2

    invoke-static {v2}, Landroid/location/IGpsStatusListener$Stub;->asInterface(Landroid/os/IBinder;)Landroid/location/IGpsStatusListener;

    move-result-object v3

    .line 175
    .local v3, _arg0:Landroid/location/IGpsStatusListener;
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v5

    .line 176
    .restart local v5       #_arg1:Ljava/lang/String;
    move-object/from16 v0, p0

    invoke-virtual {v0, v3, v5}, Landroid/location/ILocationManager$Stub;->addGpsStatusListener(Landroid/location/IGpsStatusListener;Ljava/lang/String;)Z

    move-result v29

    .line 177
    .local v29, _result:Z
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 178
    if-eqz v29, :cond_a

    const/4 v2, 0x1

    :goto_b
    move-object/from16 v0, p3

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->writeInt(I)V

    .line 179
    const/4 v2, 0x1

    goto/16 :goto_0

    .line 178
    :cond_a
    const/4 v2, 0x0

    goto :goto_b

    .line 183
    .end local v3           #_arg0:Landroid/location/IGpsStatusListener;
    .end local v5           #_arg1:Ljava/lang/String;
    .end local v29           #_result:Z
    :sswitch_7
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 185
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readStrongBinder()Landroid/os/IBinder;

    move-result-object v2

    invoke-static {v2}, Landroid/location/IGpsStatusListener$Stub;->asInterface(Landroid/os/IBinder;)Landroid/location/IGpsStatusListener;

    move-result-object v3

    .line 186
    .restart local v3       #_arg0:Landroid/location/IGpsStatusListener;
    move-object/from16 v0, p0

    invoke-virtual {v0, v3}, Landroid/location/ILocationManager$Stub;->removeGpsStatusListener(Landroid/location/IGpsStatusListener;)V

    .line 187
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 188
    const/4 v2, 0x1

    goto/16 :goto_0

    .line 192
    .end local v3           #_arg0:Landroid/location/IGpsStatusListener;
    :sswitch_8
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 193
    invoke-virtual/range {p0 .. p0}, Landroid/location/ILocationManager$Stub;->geocoderIsPresent()Z

    move-result v29

    .line 194
    .restart local v29       #_result:Z
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 195
    if-eqz v29, :cond_b

    const/4 v2, 0x1

    :goto_c
    move-object/from16 v0, p3

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->writeInt(I)V

    .line 196
    const/4 v2, 0x1

    goto/16 :goto_0

    .line 195
    :cond_b
    const/4 v2, 0x0

    goto :goto_c

    .line 200
    .end local v29           #_result:Z
    :sswitch_9
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 202
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readDouble()D

    move-result-wide v3

    .line 204
    .local v3, _arg0:D
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readDouble()D

    move-result-wide v5

    .line 206
    .local v5, _arg1:D
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v7

    .line 208
    .local v7, _arg2:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v2

    if-eqz v2, :cond_c

    .line 209
    sget-object v2, Landroid/location/GeocoderParams;->CREATOR:Landroid/os/Parcelable$Creator;

    move-object/from16 v0, p2

    invoke-interface {v2, v0}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Landroid/location/GeocoderParams;

    .line 215
    .local v8, _arg3:Landroid/location/GeocoderParams;
    :goto_d
    new-instance v9, Ljava/util/ArrayList;

    invoke-direct {v9}, Ljava/util/ArrayList;-><init>()V

    .local v9, _arg4:Ljava/util/List;,"Ljava/util/List<Landroid/location/Address;>;"
    move-object/from16 v2, p0

    .line 216
    invoke-virtual/range {v2 .. v9}, Landroid/location/ILocationManager$Stub;->getFromLocation(DDILandroid/location/GeocoderParams;Ljava/util/List;)Ljava/lang/String;

    move-result-object v29

    .line 217
    .local v29, _result:Ljava/lang/String;
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 218
    move-object/from16 v0, p3

    move-object/from16 v1, v29

    invoke-virtual {v0, v1}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V

    .line 219
    move-object/from16 v0, p3

    invoke-virtual {v0, v9}, Landroid/os/Parcel;->writeTypedList(Ljava/util/List;)V

    .line 220
    const/4 v2, 0x1

    goto/16 :goto_0

    .line 212
    .end local v8           #_arg3:Landroid/location/GeocoderParams;
    .end local v9           #_arg4:Ljava/util/List;,"Ljava/util/List<Landroid/location/Address;>;"
    .end local v29           #_result:Ljava/lang/String;
    :cond_c
    const/4 v8, 0x0

    .restart local v8       #_arg3:Landroid/location/GeocoderParams;
    goto :goto_d

    .line 224
    .end local v3           #_arg0:D
    .end local v5           #_arg1:D
    .end local v7           #_arg2:I
    .end local v8           #_arg3:Landroid/location/GeocoderParams;
    :sswitch_a
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 226
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v3

    .line 228
    .local v3, _arg0:Ljava/lang/String;
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readDouble()D

    move-result-wide v5

    .line 230
    .restart local v5       #_arg1:D
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readDouble()D

    move-result-wide v14

    .line 232
    .local v14, _arg2:D
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readDouble()D

    move-result-wide v16

    .line 234
    .local v16, _arg3:D
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readDouble()D

    move-result-wide v18

    .line 236
    .local v18, _arg4:D
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v20

    .line 238
    .local v20, _arg5:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v2

    if-eqz v2, :cond_d

    .line 239
    sget-object v2, Landroid/location/GeocoderParams;->CREATOR:Landroid/os/Parcelable$Creator;

    move-object/from16 v0, p2

    invoke-interface {v2, v0}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;

    move-result-object v21

    check-cast v21, Landroid/location/GeocoderParams;

    .line 245
    .local v21, _arg6:Landroid/location/GeocoderParams;
    :goto_e
    new-instance v22, Ljava/util/ArrayList;

    invoke-direct/range {v22 .. v22}, Ljava/util/ArrayList;-><init>()V

    .local v22, _arg7:Ljava/util/List;,"Ljava/util/List<Landroid/location/Address;>;"
    move-object/from16 v10, p0

    move-object v11, v3

    move-wide v12, v5

    .line 246
    invoke-virtual/range {v10 .. v22}, Landroid/location/ILocationManager$Stub;->getFromLocationName(Ljava/lang/String;DDDDILandroid/location/GeocoderParams;Ljava/util/List;)Ljava/lang/String;

    move-result-object v29

    .line 247
    .restart local v29       #_result:Ljava/lang/String;
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 248
    move-object/from16 v0, p3

    move-object/from16 v1, v29

    invoke-virtual {v0, v1}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V

    .line 249
    move-object/from16 v0, p3

    move-object/from16 v1, v22

    invoke-virtual {v0, v1}, Landroid/os/Parcel;->writeTypedList(Ljava/util/List;)V

    .line 250
    const/4 v2, 0x1

    goto/16 :goto_0

    .line 242
    .end local v21           #_arg6:Landroid/location/GeocoderParams;
    .end local v22           #_arg7:Ljava/util/List;,"Ljava/util/List<Landroid/location/Address;>;"
    .end local v29           #_result:Ljava/lang/String;
    :cond_d
    const/16 v21, 0x0

    .restart local v21       #_arg6:Landroid/location/GeocoderParams;
    goto :goto_e

    .line 254
    .end local v3           #_arg0:Ljava/lang/String;
    .end local v5           #_arg1:D
    .end local v14           #_arg2:D
    .end local v16           #_arg3:D
    .end local v18           #_arg4:D
    .end local v20           #_arg5:I
    .end local v21           #_arg6:Landroid/location/GeocoderParams;
    :sswitch_b
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 256
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v3

    .line 258
    .local v3, _arg0:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v5

    .line 259
    .local v5, _arg1:I
    move-object/from16 v0, p0

    invoke-virtual {v0, v3, v5}, Landroid/location/ILocationManager$Stub;->sendNiResponse(II)Z

    move-result v29

    .line 260
    .local v29, _result:Z
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 261
    if-eqz v29, :cond_e

    const/4 v2, 0x1

    :goto_f
    move-object/from16 v0, p3

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->writeInt(I)V

    .line 262
    const/4 v2, 0x1

    goto/16 :goto_0

    .line 261
    :cond_e
    const/4 v2, 0x0

    goto :goto_f

    .line 266
    .end local v3           #_arg0:I
    .end local v5           #_arg1:I
    .end local v29           #_result:Z
    :sswitch_c
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 267
    invoke-virtual/range {p0 .. p0}, Landroid/location/ILocationManager$Stub;->getAllProviders()Ljava/util/List;

    move-result-object v30

    .line 268
    .local v30, _result:Ljava/util/List;,"Ljava/util/List<Ljava/lang/String;>;"
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 269
    move-object/from16 v0, p3

    move-object/from16 v1, v30

    invoke-virtual {v0, v1}, Landroid/os/Parcel;->writeStringList(Ljava/util/List;)V

    .line 270
    const/4 v2, 0x1

    goto/16 :goto_0

    .line 274
    .end local v30           #_result:Ljava/util/List;,"Ljava/util/List<Ljava/lang/String;>;"
    :sswitch_d
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 276
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v2

    if-eqz v2, :cond_f

    .line 277
    sget-object v2, Landroid/location/Criteria;->CREATOR:Landroid/os/Parcelable$Creator;

    move-object/from16 v0, p2

    invoke-interface {v2, v0}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Landroid/location/Criteria;

    .line 283
    .local v3, _arg0:Landroid/location/Criteria;
    :goto_10
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v2

    if-eqz v2, :cond_10

    const/4 v5, 0x1

    .line 284
    .local v5, _arg1:Z
    :goto_11
    move-object/from16 v0, p0

    invoke-virtual {v0, v3, v5}, Landroid/location/ILocationManager$Stub;->getProviders(Landroid/location/Criteria;Z)Ljava/util/List;

    move-result-object v30

    .line 285
    .restart local v30       #_result:Ljava/util/List;,"Ljava/util/List<Ljava/lang/String;>;"
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 286
    move-object/from16 v0, p3

    move-object/from16 v1, v30

    invoke-virtual {v0, v1}, Landroid/os/Parcel;->writeStringList(Ljava/util/List;)V

    .line 287
    const/4 v2, 0x1

    goto/16 :goto_0

    .line 280
    .end local v3           #_arg0:Landroid/location/Criteria;
    .end local v5           #_arg1:Z
    .end local v30           #_result:Ljava/util/List;,"Ljava/util/List<Ljava/lang/String;>;"
    :cond_f
    const/4 v3, 0x0

    .restart local v3       #_arg0:Landroid/location/Criteria;
    goto :goto_10

    .line 283
    :cond_10
    const/4 v5, 0x0

    goto :goto_11

    .line 291
    .end local v3           #_arg0:Landroid/location/Criteria;
    :sswitch_e
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 293
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v2

    if-eqz v2, :cond_11

    .line 294
    sget-object v2, Landroid/location/Criteria;->CREATOR:Landroid/os/Parcelable$Creator;

    move-object/from16 v0, p2

    invoke-interface {v2, v0}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Landroid/location/Criteria;

    .line 300
    .restart local v3       #_arg0:Landroid/location/Criteria;
    :goto_12
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v2

    if-eqz v2, :cond_12

    const/4 v5, 0x1

    .line 301
    .restart local v5       #_arg1:Z
    :goto_13
    move-object/from16 v0, p0

    invoke-virtual {v0, v3, v5}, Landroid/location/ILocationManager$Stub;->getBestProvider(Landroid/location/Criteria;Z)Ljava/lang/String;

    move-result-object v29

    .line 302
    .local v29, _result:Ljava/lang/String;
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 303
    move-object/from16 v0, p3

    move-object/from16 v1, v29

    invoke-virtual {v0, v1}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V

    .line 304
    const/4 v2, 0x1

    goto/16 :goto_0

    .line 297
    .end local v3           #_arg0:Landroid/location/Criteria;
    .end local v5           #_arg1:Z
    .end local v29           #_result:Ljava/lang/String;
    :cond_11
    const/4 v3, 0x0

    .restart local v3       #_arg0:Landroid/location/Criteria;
    goto :goto_12

    .line 300
    :cond_12
    const/4 v5, 0x0

    goto :goto_13

    .line 308
    .end local v3           #_arg0:Landroid/location/Criteria;
    :sswitch_f
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 310
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v3

    .line 312
    .local v3, _arg0:Ljava/lang/String;
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v2

    if-eqz v2, :cond_13

    .line 313
    sget-object v2, Landroid/location/Criteria;->CREATOR:Landroid/os/Parcelable$Creator;

    move-object/from16 v0, p2

    invoke-interface {v2, v0}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Landroid/location/Criteria;

    .line 318
    .local v5, _arg1:Landroid/location/Criteria;
    :goto_14
    move-object/from16 v0, p0

    invoke-virtual {v0, v3, v5}, Landroid/location/ILocationManager$Stub;->providerMeetsCriteria(Ljava/lang/String;Landroid/location/Criteria;)Z

    move-result v29

    .line 319
    .local v29, _result:Z
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 320
    if-eqz v29, :cond_14

    const/4 v2, 0x1

    :goto_15
    move-object/from16 v0, p3

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->writeInt(I)V

    .line 321
    const/4 v2, 0x1

    goto/16 :goto_0

    .line 316
    .end local v5           #_arg1:Landroid/location/Criteria;
    .end local v29           #_result:Z
    :cond_13
    const/4 v5, 0x0

    .restart local v5       #_arg1:Landroid/location/Criteria;
    goto :goto_14

    .line 320
    .restart local v29       #_result:Z
    :cond_14
    const/4 v2, 0x0

    goto :goto_15

    .line 325
    .end local v3           #_arg0:Ljava/lang/String;
    .end local v5           #_arg1:Landroid/location/Criteria;
    .end local v29           #_result:Z
    :sswitch_10
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 327
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v3

    .line 328
    .restart local v3       #_arg0:Ljava/lang/String;
    move-object/from16 v0, p0

    invoke-virtual {v0, v3}, Landroid/location/ILocationManager$Stub;->getProviderProperties(Ljava/lang/String;)Lcom/android/internal/location/ProviderProperties;

    move-result-object v29

    .line 329
    .local v29, _result:Lcom/android/internal/location/ProviderProperties;
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 330
    if-eqz v29, :cond_15

    .line 331
    const/4 v2, 0x1

    move-object/from16 v0, p3

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->writeInt(I)V

    .line 332
    const/4 v2, 0x1

    move-object/from16 v0, v29

    move-object/from16 v1, p3

    invoke-virtual {v0, v1, v2}, Lcom/android/internal/location/ProviderProperties;->writeToParcel(Landroid/os/Parcel;I)V

    .line 337
    :goto_16
    const/4 v2, 0x1

    goto/16 :goto_0

    .line 335
    :cond_15
    const/4 v2, 0x0

    move-object/from16 v0, p3

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->writeInt(I)V

    goto :goto_16

    .line 341
    .end local v3           #_arg0:Ljava/lang/String;
    .end local v29           #_result:Lcom/android/internal/location/ProviderProperties;
    :sswitch_11
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 343
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v3

    .line 344
    .restart local v3       #_arg0:Ljava/lang/String;
    move-object/from16 v0, p0

    invoke-virtual {v0, v3}, Landroid/location/ILocationManager$Stub;->isProviderEnabled(Ljava/lang/String;)Z

    move-result v29

    .line 345
    .local v29, _result:Z
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 346
    if-eqz v29, :cond_16

    const/4 v2, 0x1

    :goto_17
    move-object/from16 v0, p3

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->writeInt(I)V

    .line 347
    const/4 v2, 0x1

    goto/16 :goto_0

    .line 346
    :cond_16
    const/4 v2, 0x0

    goto :goto_17

    .line 351
    .end local v3           #_arg0:Ljava/lang/String;
    .end local v29           #_result:Z
    :sswitch_12
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 353
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v3

    .line 355
    .restart local v3       #_arg0:Ljava/lang/String;
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v2

    if-eqz v2, :cond_17

    .line 356
    sget-object v2, Lcom/android/internal/location/ProviderProperties;->CREATOR:Landroid/os/Parcelable$Creator;

    move-object/from16 v0, p2

    invoke-interface {v2, v0}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lcom/android/internal/location/ProviderProperties;

    .line 361
    .local v5, _arg1:Lcom/android/internal/location/ProviderProperties;
    :goto_18
    move-object/from16 v0, p0

    invoke-virtual {v0, v3, v5}, Landroid/location/ILocationManager$Stub;->addTestProvider(Ljava/lang/String;Lcom/android/internal/location/ProviderProperties;)V

    .line 362
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 363
    const/4 v2, 0x1

    goto/16 :goto_0

    .line 359
    .end local v5           #_arg1:Lcom/android/internal/location/ProviderProperties;
    :cond_17
    const/4 v5, 0x0

    .restart local v5       #_arg1:Lcom/android/internal/location/ProviderProperties;
    goto :goto_18

    .line 367
    .end local v3           #_arg0:Ljava/lang/String;
    .end local v5           #_arg1:Lcom/android/internal/location/ProviderProperties;
    :sswitch_13
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 369
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v3

    .line 370
    .restart local v3       #_arg0:Ljava/lang/String;
    move-object/from16 v0, p0

    invoke-virtual {v0, v3}, Landroid/location/ILocationManager$Stub;->removeTestProvider(Ljava/lang/String;)V

    .line 371
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 372
    const/4 v2, 0x1

    goto/16 :goto_0

    .line 376
    .end local v3           #_arg0:Ljava/lang/String;
    :sswitch_14
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 378
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v3

    .line 380
    .restart local v3       #_arg0:Ljava/lang/String;
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v2

    if-eqz v2, :cond_18

    .line 381
    sget-object v2, Landroid/location/Location;->CREATOR:Landroid/os/Parcelable$Creator;

    move-object/from16 v0, p2

    invoke-interface {v2, v0}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Landroid/location/Location;

    .line 386
    .local v5, _arg1:Landroid/location/Location;
    :goto_19
    move-object/from16 v0, p0

    invoke-virtual {v0, v3, v5}, Landroid/location/ILocationManager$Stub;->setTestProviderLocation(Ljava/lang/String;Landroid/location/Location;)V

    .line 387
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 388
    const/4 v2, 0x1

    goto/16 :goto_0

    .line 384
    .end local v5           #_arg1:Landroid/location/Location;
    :cond_18
    const/4 v5, 0x0

    .restart local v5       #_arg1:Landroid/location/Location;
    goto :goto_19

    .line 392
    .end local v3           #_arg0:Ljava/lang/String;
    .end local v5           #_arg1:Landroid/location/Location;
    :sswitch_15
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 394
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v3

    .line 395
    .restart local v3       #_arg0:Ljava/lang/String;
    move-object/from16 v0, p0

    invoke-virtual {v0, v3}, Landroid/location/ILocationManager$Stub;->clearTestProviderLocation(Ljava/lang/String;)V

    .line 396
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 397
    const/4 v2, 0x1

    goto/16 :goto_0

    .line 401
    .end local v3           #_arg0:Ljava/lang/String;
    :sswitch_16
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 403
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v3

    .line 405
    .restart local v3       #_arg0:Ljava/lang/String;
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v2

    if-eqz v2, :cond_19

    const/4 v5, 0x1

    .line 406
    .local v5, _arg1:Z
    :goto_1a
    move-object/from16 v0, p0

    invoke-virtual {v0, v3, v5}, Landroid/location/ILocationManager$Stub;->setTestProviderEnabled(Ljava/lang/String;Z)V

    .line 407
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 408
    const/4 v2, 0x1

    goto/16 :goto_0

    .line 405
    .end local v5           #_arg1:Z
    :cond_19
    const/4 v5, 0x0

    goto :goto_1a

    .line 412
    .end local v3           #_arg0:Ljava/lang/String;
    :sswitch_17
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 414
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v3

    .line 415
    .restart local v3       #_arg0:Ljava/lang/String;
    move-object/from16 v0, p0

    invoke-virtual {v0, v3}, Landroid/location/ILocationManager$Stub;->clearTestProviderEnabled(Ljava/lang/String;)V

    .line 416
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 417
    const/4 v2, 0x1

    goto/16 :goto_0

    .line 421
    .end local v3           #_arg0:Ljava/lang/String;
    :sswitch_18
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 423
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v3

    .line 425
    .restart local v3       #_arg0:Ljava/lang/String;
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v5

    .line 427
    .local v5, _arg1:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v2

    if-eqz v2, :cond_1a

    .line 428
    sget-object v2, Landroid/os/Bundle;->CREATOR:Landroid/os/Parcelable$Creator;

    move-object/from16 v0, p2

    invoke-interface {v2, v0}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Landroid/os/Bundle;

    .line 434
    .local v7, _arg2:Landroid/os/Bundle;
    :goto_1b
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readLong()J

    move-result-wide v16

    .local v16, _arg3:J
    move-object/from16 v23, p0

    move-object/from16 v24, v3

    move/from16 v25, v5

    move-object/from16 v26, v7

    move-wide/from16 v27, v16

    .line 435
    invoke-virtual/range {v23 .. v28}, Landroid/location/ILocationManager$Stub;->setTestProviderStatus(Ljava/lang/String;ILandroid/os/Bundle;J)V

    .line 436
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 437
    const/4 v2, 0x1

    goto/16 :goto_0

    .line 431
    .end local v7           #_arg2:Landroid/os/Bundle;
    .end local v16           #_arg3:J
    :cond_1a
    const/4 v7, 0x0

    .restart local v7       #_arg2:Landroid/os/Bundle;
    goto :goto_1b

    .line 441
    .end local v3           #_arg0:Ljava/lang/String;
    .end local v5           #_arg1:I
    .end local v7           #_arg2:Landroid/os/Bundle;
    :sswitch_19
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 443
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v3

    .line 444
    .restart local v3       #_arg0:Ljava/lang/String;
    move-object/from16 v0, p0

    invoke-virtual {v0, v3}, Landroid/location/ILocationManager$Stub;->clearTestProviderStatus(Ljava/lang/String;)V

    .line 445
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 446
    const/4 v2, 0x1

    goto/16 :goto_0

    .line 450
    .end local v3           #_arg0:Ljava/lang/String;
    :sswitch_1a
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 452
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v3

    .line 454
    .restart local v3       #_arg0:Ljava/lang/String;
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v5

    .line 456
    .local v5, _arg1:Ljava/lang/String;
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v2

    if-eqz v2, :cond_1b

    .line 457
    sget-object v2, Landroid/os/Bundle;->CREATOR:Landroid/os/Parcelable$Creator;

    move-object/from16 v0, p2

    invoke-interface {v2, v0}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Landroid/os/Bundle;

    .line 462
    .restart local v7       #_arg2:Landroid/os/Bundle;
    :goto_1c
    move-object/from16 v0, p0

    invoke-virtual {v0, v3, v5, v7}, Landroid/location/ILocationManager$Stub;->sendExtraCommand(Ljava/lang/String;Ljava/lang/String;Landroid/os/Bundle;)Z

    move-result v29

    .line 463
    .restart local v29       #_result:Z
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 464
    if-eqz v29, :cond_1c

    const/4 v2, 0x1

    :goto_1d
    move-object/from16 v0, p3

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->writeInt(I)V

    .line 465
    if-eqz v7, :cond_1d

    .line 466
    const/4 v2, 0x1

    move-object/from16 v0, p3

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->writeInt(I)V

    .line 467
    const/4 v2, 0x1

    move-object/from16 v0, p3

    invoke-virtual {v7, v0, v2}, Landroid/os/Bundle;->writeToParcel(Landroid/os/Parcel;I)V

    .line 472
    :goto_1e
    const/4 v2, 0x1

    goto/16 :goto_0

    .line 460
    .end local v7           #_arg2:Landroid/os/Bundle;
    .end local v29           #_result:Z
    :cond_1b
    const/4 v7, 0x0

    .restart local v7       #_arg2:Landroid/os/Bundle;
    goto :goto_1c

    .line 464
    .restart local v29       #_result:Z
    :cond_1c
    const/4 v2, 0x0

    goto :goto_1d

    .line 470
    :cond_1d
    const/4 v2, 0x0

    move-object/from16 v0, p3

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->writeInt(I)V

    goto :goto_1e

    .line 476
    .end local v3           #_arg0:Ljava/lang/String;
    .end local v5           #_arg1:Ljava/lang/String;
    .end local v7           #_arg2:Landroid/os/Bundle;
    .end local v29           #_result:Z
    :sswitch_1b
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 478
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v2

    if-eqz v2, :cond_1e

    .line 479
    sget-object v2, Landroid/location/Location;->CREATOR:Landroid/os/Parcelable$Creator;

    move-object/from16 v0, p2

    invoke-interface {v2, v0}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Landroid/location/Location;

    .line 485
    .local v3, _arg0:Landroid/location/Location;
    :goto_1f
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v2

    if-eqz v2, :cond_1f

    const/4 v5, 0x1

    .line 486
    .local v5, _arg1:Z
    :goto_20
    move-object/from16 v0, p0

    invoke-virtual {v0, v3, v5}, Landroid/location/ILocationManager$Stub;->reportLocation(Landroid/location/Location;Z)V

    .line 487
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 488
    const/4 v2, 0x1

    goto/16 :goto_0

    .line 482
    .end local v3           #_arg0:Landroid/location/Location;
    .end local v5           #_arg1:Z
    :cond_1e
    const/4 v3, 0x0

    .restart local v3       #_arg0:Landroid/location/Location;
    goto :goto_1f

    .line 485
    :cond_1f
    const/4 v5, 0x0

    goto :goto_20

    .line 492
    .end local v3           #_arg0:Landroid/location/Location;
    :sswitch_1c
    const-string v2, "android.location.ILocationManager"

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 494
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readStrongBinder()Landroid/os/IBinder;

    move-result-object v2

    invoke-static {v2}, Landroid/location/ILocationListener$Stub;->asInterface(Landroid/os/IBinder;)Landroid/location/ILocationListener;

    move-result-object v3

    .line 495
    .local v3, _arg0:Landroid/location/ILocationListener;
    move-object/from16 v0, p0

    invoke-virtual {v0, v3}, Landroid/location/ILocationManager$Stub;->locationCallbackFinished(Landroid/location/ILocationListener;)V

    .line 496
    invoke-virtual/range {p3 .. p3}, Landroid/os/Parcel;->writeNoException()V

    .line 497
    const/4 v2, 0x1

    goto/16 :goto_0

    .line 43
    nop

    :sswitch_data_0
    .sparse-switch
        0x1 -> :sswitch_1
        0x2 -> :sswitch_2
        0x3 -> :sswitch_3
        0x4 -> :sswitch_4
        0x5 -> :sswitch_5
        0x6 -> :sswitch_6
        0x7 -> :sswitch_7
        0x8 -> :sswitch_8
        0x9 -> :sswitch_9
        0xa -> :sswitch_a
        0xb -> :sswitch_b
        0xc -> :sswitch_c
        0xd -> :sswitch_d
        0xe -> :sswitch_e
        0xf -> :sswitch_f
        0x10 -> :sswitch_10
        0x11 -> :sswitch_11
        0x12 -> :sswitch_12
        0x13 -> :sswitch_13
        0x14 -> :sswitch_14
        0x15 -> :sswitch_15
        0x16 -> :sswitch_16
        0x17 -> :sswitch_17
        0x18 -> :sswitch_18
        0x19 -> :sswitch_19
        0x1a -> :sswitch_1a
        0x1b -> :sswitch_1b
        0x1c -> :sswitch_1c
        0x5f4e5446 -> :sswitch_0
    .end sparse-switch
.end method


text:
<?php
use AgileGeeks\RegistrarFacade\Enom as Api;
require_once(__DIR__.'../../../BaseTestCase.php');
require_once(__DIR__.'../../DomainHandler.php');

class TestDomainIDProtect extends BaseTestCase {

    protected function setUp($configfile = null) {
        include('config.php');
        $this->handler = new Api\DomainHandler($config);
    }

    protected function tearDown() {

    }

    public function test_domain_add_id_protect() {
        $response = $this->handler->purchase_service('areareraerar.com', 'WPPS', 8);
        $this->assertTrue($response);
    }
}

redpajama_set_name: RedPajamaGithub


text:
package com.yourtion.Pattern15;

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

/**
 * Created by Yourtion on 01/04/2017.
 */
public class ChainExample {
    public void run() {

        System.out.println("PersonExample");
        ImmutablePerson.Builder b = ImmutablePerson.newBuilder();
        ImmutablePerson p = b.firstName("Peter").lastName("Jones").build();
        System.out.println(p.toString());

        System.out.println("");

        System.out.println("ListExample");
        List<String> names = new ArrayList<String>();
        names.add("Michael Bevilacqua Linn");
        System.out.println(names);
        System.out.println(names.get(0).toUpperCase());
    }
}


text:
@interface OWRegisterVC : UITableViewController

@end


text:
require File.dirname(__FILE__) + '/../spec_helper'

describe ForumsController, "(remember-me functionality)" do
  define_models

  before do
    session[:forums_page] = {}
    session[:user_id] = {}
  end

  it "logs in with valid login token" do
    @request.cookies['auth_token'] = CGI::Cookie.new('auth_token', users(:activated).remember_token)

    get :index

    controller.send(:current_user).should == users(:activated)
  end
end


text:
import BinaryView, {byteSize} from './BinaryViews';
import {fromStruct as entityProxyFromStruct} from './EntityProxy';
const BUFFER_SIZE = Math.pow(2, 12); // 4kb

export default class EntityCollection {
	constructor (structType, name, additionalPrototypeProperties) {
		this.structType = {
			type: 'Struct',
			entries: [['id', 'UInt32LE'], ...structType.entries]
		};

		this.EntityProxyClass = entityProxyFromStruct(this.structType, name + "Cursor", additionalPrototypeProperties);
		this.cursors = [];
		this.iteratingCursor = this.cursor();

		this.structSize = byteSize(this.structType);
		this.structsPerBuffer = Math.max(10, Math.floor(BUFFER_SIZE / this.structSize));

		this.firstFreeBuffer = undefined;
		this.firstFreeBufferIndex = 0;
		this.firstFreeOffset = 0;
		this.nextBufferNeeded = true;
		this.existingNextBuffer = undefined; // allows for a hysteresis: keep one buffer ready after deallocating

		this.buffers = [];
		this.idsToOffsets = [];
		this.idsToBuffers = [];
		this.freeIds = [];
	}

	cursor () {
		const cursor = new this.EntityProxyClass();
		this.cursors.push(cursor);
		if (this.cursors.length > 1000) throw "cursor leak!";
		return cursor;
	}

	load (id, cursor) {
		cursor._buffer = this.idsToBuffers[id];
		cursor._offset = this.idsToOffsets[id];
	}

	allocate () {
		const id = this.freeIds.length > 0
			? this.freeIds.pop()
			: this.idsToOffsets.length;

		if (this.nextBufferNeeded) {
			const buffer = this.existingNextBuffer || new Buffer(BUFFER_SIZE);

			this.idsToOffsets[id] = 0;
			this.idsToBuffers[id] = buffer;
			this.firstFreeOffset = this.structSize;
			this.firstFreeBuffer = buffer;
			this.firstFreeBufferIndex += 1;

			buffer.writeUInt32LE(id, 0);
			buffer.fill(0, 4, this.structSize);

			if (this.existingNextBuffer) this.existingNextBuffer = undefined;
			else this.buffers.push(buffer);

			this.nextBufferNeeded = false;
		} else {
			this.idsToOffsets[id] = this.firstFreeOffset;
			this.idsToBuffers[id] = this.firstFreeBuffer;

			this.firstFreeBuffer.writeUInt32LE(id, this.firstFreeOffset);
			this.firstFreeBuffer.fill(0, 4 + this.firstFreeOffset, 4 + this.firstFreeOffset + this.structSize);
			this.firstFreeOffset += this.structSize;

			if (this.firstFreeOffset === this.structsPerBuffer * this.structSize) {
				this.nextBufferNeeded = true;
			}
		}

		return id;
	}

	free (idToFree) {
		const freedEntityOffset = this.idsToOffsets[idToFree];
		const freedEntityBuffer = this.idsToBuffers[idToFree];
		const lastEntityOffset = this.firstFreeOffset - this.structSize;
		const lastEntityBuffer = this.firstFreeBuffer;

		lastEntityBuffer.copy(
			freedEntityBuffer,
			freedEntityOffset,
			lastEntityOffset,
			lastEntityOffset + this.structSize
		);

		const lastEntityId = lastEntityBuffer.readUInt32LE(lastEntityOffset);
		this.idsToOffsets[lastEntityId] = freedEntityOffset;
		this.idsToBuffers[lastEntityId] = freedEntityBuffer;

		if (this.firstFreeOffset > 0) {
			this.firstFreeOffset -= this.structSize;
		} else {
			this.firstFreeOffset = (this.structsPerBuffer - 1) * this.structSize;
			this.firstFreeBuffer = this.buffers[this.firstFreeBufferIndex - 1];
			this.firstFreeBufferIndex -= 1;

			if (this.existingNextBuffer) {
				// we emptied even the buffer before this.existingNextBuffer
				// so we can get rid of that and still have 1 buffer leeway
				this.buffers.pop();
				this.existingNextBuffer = undefined;
			}
		}

		for (let c = 0; c < this.cursors.length; c++) {
			const cursor = this.cursors[c];
			const cursorBuffer = cursor._buffer;
			const cursorOffset = cursor._offset;
			if (cursorBuffer === freedEntityBuffer && cursorOffset === freedEntityOffset) {
				// this cursor is now invalid
				cursor._buffer = undefined;
				cursor._offset = 666;
			} else if (cursorBuffer === lastEntityBuffer && cursorOffset === lastEntityOffset) {
				// point cursor to the new location of the last entity
				cursor._buffer = freedEntityBuffer;
				cursor._offset = freedEntityOffset;
			}
		}

		this.idsToBuffers[idToFree] = undefined;
		this.freeIds.push(idToFree);
	}

	iterate (iteratingFunction) {
		let cursor = this.iteratingCursor;
		for (let b = 0; b <= this.firstFreeBufferIndex; b++) {
			let buffer = this.buffers[b];
			let endOffset = b === this.firstFreeBufferIndex
				? this.firstFreeOffset
				: this.structSize * this.structsPerBuffer;

			cursor._buffer = buffer;

			for (let offset = 0; offset < endOffset; offset += this.structSize) {
				cursor._offset = offset;
				iteratingFunction(cursor);
			}
		}
	}
}


text:
from __future__ import unicode_literals

from django.db import migrations, models
import multiselectfield.db.fields

class Migration(migrations.Migration):

    dependencies = [
        ('initiatives', '0026_auto_20201112_1519'),
    ]

    operations = [
        migrations.AddField(
            model_name='initiativeplatformsettings',
            name='enable_office_regions',
            field=models.BooleanField(default=False),
        ),
        migrations.AlterField(
            model_name='initiativeplatformsettings',
            name='activity_types',
            field=multiselectfield.db.fields.MultiSelectField(choices=[('funding', 'Funding'), ('periodactivity', 'Activity during a period'), ('dateactivity', 'Activity on a specific date')], max_length=100),
        ),
    ]


text:
package com.dfyy.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.dfyy.bussiness.Admin;
import com.dfyy.bussiness.Function;
import com.dfyy.bussiness.Second;
import com.dfyy.bussiness.Zone;
import com.dfyy.dao.AdminDao;
import com.dfyy.dao.FunctionDao;
import com.dfyy.dao.ZoneDao;

import javassist.tools.framedump;

@Service
@Transactional
public class AdminService {

	@Autowired
	private AdminDao dao;

	@Autowired
	private FunctionDao functionDao;

	@Autowired
	private ZoneDao zoneDao;

	public List<Admin> getAllAdmins(int page, int size) {
		List<Admin> admins = dao.getAll(new PageRequest(page, size));
		for (Admin admin : admins) {
			List<Function> functions = admin.getFunctions();
			for (Function function : functions) {
			}

			List<Zone> zones = admin.getZones();
			for (Zone zone : zones) {
			}
		}
		return admins;
	}

	public int getAllCount() {
		return dao.getCount();
	}

	public Admin getByName(String name) {
		Admin admin = dao.findByName(name);
		List<Function> functions = admin.getFunctions();
		for (Function function : functions) {
			// System.out.println(function.getName());
		}
		List<Zone> zones = admin.getZones();
		for (Zone zone : zones) {
		}
		return admin;
	}

	public Admin getById(Integer id) {
		Admin admin = dao.findOne(id);
		List<Function> functions = admin.getFunctions();
		for (Function function : functions) {
			// System.out.println(function.getName());
		}
		List<Zone> zones = admin.getZones();
		for (Zone zone : zones) {
		}
		return admin;
	}

	public Admin createAdmin(String name, String password) {
		Admin admin = new Admin();
		admin.setName(name);
		admin.setPassword(password);
		admin.setStatus(1);
		dao.save(admin);
		return admin;
	}

	public void delete(Integer id) {
		Admin admin = dao.findOne(id);
		admin.setStatus(-1);
		dao.save(admin);
	}

	public List<Function> getAllFunctions() {
		return functionDao.getAll();
	}

	public void addFunction(Integer uid, List<Integer> functions) {
		// 给用户加权限
		Admin admin = dao.findOne(uid);
		if (admin != null) {
			admin.getFunctions().clear();
			for (Integer fid : functions) {
				admin.getFunctions().add(functionDao.findOne(fid));
			}
			dao.save(admin);
		}
	}

	public List<Zone> getAllZone() {
		return zoneDao.getAll();
	}

	public void addZone(Integer uid, List<Integer> zones) {
		// 给用户加权限
		Admin admin = dao.findOne(uid);
		if (admin != null) {
			admin.getFunctions().clear();
			for (Integer fid : zones) {
				admin.getZones().add(zoneDao.findOne(fid));
			}
			dao.save(admin);
		}
	}

	public void updateAdmin(Admin admin) {
		dao.save(admin);
	}
}


text:
package com.intellij.execution.testframework.sm;

import com.intellij.execution.testframework.TestConsoleProperties;
import com.intellij.execution.testframework.sm.runner.OutputToGeneralTestEventsConverter;
import javax.annotation.Nonnull;

/**
 * @author gregsh
 */
public interface SMCustomMessagesParsing {

  OutputToGeneralTestEventsConverter createTestEventsConverter(@Nonnull final String testFrameworkName,
                                                               @Nonnull final TestConsoleProperties consoleProperties);

}


text:
<?php

/*
 *
 *  ____            _        _   __  __ _                  __  __ ____
 * |  _ \ ___   ___| | _____| |_|  \/  (_)_ __   ___      |  \/  |  _ \
 * | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
 * |  __/ (_) | (__|   <  __/ |_| |  | | | | | |  __/_____| |  | |  __/
 * |_|   \___/ \___|_|\_\___|\__|_|  |_|_|_| |_|\___|     |_|  |_|_|
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * @author PocketMine Team
 * @link http://www.pocketmine.net/
 *
 *
*/

namespace pocketmine\scheduler;

/**
 * WARNING! Plugins that create tasks MUST extend PluginTask
 */
abstract class Task{

	/** @var TaskHandler */
	private $taskHandler = null;

	/**
	 * @return TaskHandler
	 */
	final public function getHandler(){
		return $this->taskHandler;
	}

	/**
	 * @return int
	 */
	final public function getTaskId(){
		if($this->taskHandler !== null){
			return $this->taskHandler->getTaskId();
		}

		return -1;
	}

	/**
	 * @param TaskHandler $taskHandler
	 */
	final public function setHandler($taskHandler){
		if($this->taskHandler === null or $taskHandler === null){
			$this->taskHandler = $taskHandler;
		}
	}

	/**
	 * Actions to execute when run
	 *
	 * @param $currentTick
	 *
	 * @return void
	 */
	abstract public function onRun($currentTick);

	/**
	 * Actions to execute if the Task is cancelled
	 */
	public function onCancel(){

	}

}


text:
<?php

namespace MASNathan\Database4all\Drivers\Mysql\Mysqli;

use MASNathan\Database4all\Database as BaseDatabase;
use MASNathan\Database4all\Drivers\Mysql\Configuration;

class Database extends BaseDatabase
{
    /**
     * Mysqli Database Connection initialization method
     * @param Configuration $config
     */
    public function __construct(Configuration $config)
    {
        $mysqliConnection = new \mysqli($config->host, $config->user, $config->pass, $config->name);
        /**
         * @todo  Check if connection is ok
         */
        $this->setConnection($mysqliConnection);
        $this->getConnection()->set_charset($config->charset);
    }

    /**
     * Closes the database connection
     * @return null
     */
    public function close()
    {
        $this->database->close();
    }

    /**
     * Escapes a string
     * @param  string $string String to escape
     * @return string         Escaped string
     */
    public function escape($string)
    {
        return $this->database->real_escape_string($string);
    }

    /**
     * Executes a query
     * @param  string $sql SQL query
     * @return boolean     True if successful, False if not
     */
    public function execute($sql)
    {
        if ($this->database->query($sql) === true) {
            return true;
        }

        return false;
    }

    /**
     * Executes a bunch of querys
     * @param  string $sql SQL query
     * @return boolean     True if successful, False if not
     */
    public function executeMultiple($sql)
    {

    }

    /**
     * Executes the querys on a file
     * @param  string $filepath File location
     * @return boolean          True if successful, False if not
     */
    public function executeFile($filepath)
    {
        return $this->executeMultiple(\file_get_contents($filepath));
    }

    /**
     * Executes a query returning it's values
     * @param  string $sql SQL [SELECT] query
     * @return Result
     */
    public function query($sql)
    {
        $result = $this->database->query($sql);
        if ($result) {
            return new MysqliResult($result);
        }
        return false;
    }

    /**
     * Returns the last error code
     * @return string Error code
     */
    public function getLastErrorCode()
    {
        return $this->database->errno;
    }

    /**
     * Returns the last error message
     * @return string Error message
     */
    public function getLastErrorMessage()
    {
        return $this->database->error;
    }

    /**
     * Returns the last inserted ID
     * @return integer Last Inserted ID
     */
    public function getLastInsertId()
    {
        return $this->database->insert_id;
    }
}


text:
<?php

class Readinglist_AdminController extends Zend_Controller_Action {

    public function init()
	{

		$chrisContext = $this->_helper->getHelper('ChrisContext');

		$chrisContext	->addActionContext('index', 'jquerymobile')
						->addActionContext('manage', 'jquerymobile')
						->addActionContext('delete', 'jquerymobile')
						->initContext('jquerymobile');

		$ajaxContext = $this->_helper->getHelper('AjaxContext');

		$ajaxContext->addActionContext('autopopulate', 'json')
					->initContext('json');

		parent::init();

	}

    public function indexAction()
	{

		$readinglistModel = new Readinglist_Model_MongoDB_Readinglist();

		$keys = array('_id', 'title');

		$cursor = $readinglistModel->getList(array(), $keys);

		$sort = array('last_update_date' => -1);

		// paginator
		$cacheIdentifier = md5('article_list_title_header');
        $adapter = new Chris_Paginator_Adapter_MongoDB($cursor, $cacheIdentifier, $sort);
        $paginator = new Zend_Paginator($adapter);

        $page = (int) $this->getRequest()->getParam('page', 1);

        $paginator->setCurrentPageNumber($page);
        $paginator->setItemCountPerPage(10);
        $paginator->setPageRange(5);

		$this->view->paginator = $paginator;

		$this->view->routeName = 'readinglistadminindex';

    }

    public function manageAction()
	{

		$id = $this->getRequest()->getParam('id', 0);

		$alnumFilter = new Zend_Filter_Alnum();

		$filteredId = $alnumFilter->filter($id);

		$readinglistModel = new Readinglist_Model_MongoDB_Readinglist();

        $options = null;

		$manageReadinglistForm = new Readinglist_Form_ManageReadinglist($options);

        $this->view->status = 'success';

        if ($this->getRequest()->isPost()) {

            // get unfiltered POST data
            $formData = $this->getRequest()->getPost();

			//Zend_Debug::dump($formData);
			//exit;

            if ($manageReadinglistForm->isValid($formData)) {

                // get form POST values, now with applied filters
                $formData = $manageReadinglistForm->getValues();

				if ($filteredId) $formData['_id'] = $filteredId;

                //Zend_Debug::dump($formData);
                //exit;

                $response = $readinglistModel->saveData($formData);

                if ($response) {

					$this->_redirect('/readinglist/admin');

				} else {

					//Zend_Debug::dump($response);
					$manageReadinglistForm->populate($formData);
					$this->view->manageReadinglistForm = $manageReadinglistForm;

                    $this->view->status = 'failed';

				}

            } else {

                $manageReadinglistForm->populate($formData);
                $this->view->manageReadinglistForm = $manageReadinglistForm;

            }

        } else {

			if ($filteredId) {

				$readinglistData = $readinglistModel->getById($filteredId);

				//Zend_Debug::dump($readinglistData);

				$manageReadinglistForm->populate($readinglistData);

			}

            $this->view->manageReadinglistForm = $manageReadinglistForm;

        }

    }

	public function deleteAction()
	{

		$id = $this->getRequest()->getParam('id', 0);

		$alnumFilter = new Zend_Filter_Alnum();

		$filteredId = $alnumFilter->filter($id);

		$readinglistModel = new Readinglist_Model_MongoDB_Readinglist();

		$keys = array('title');

		$readinglist = $readinglistModel->getById($id, $keys);

		//Zend_Debug::dump($readinglist);

		$this->view->readinglist = $readinglist;

		$options = array();

		$deleteReadinglistForm = new Readinglist_Form_DeleteReadinglist($options);

        if ($this->getRequest()->isPost()) {

            // get unfiltered POST data
            $formData = $this->getRequest()->getPost();

            if ($deleteReadinglistForm->isValid($formData)) {

				//Zend_Debug::dump($formData);
				//exit;

				if (array_key_exists('yes', $formData)) {

					$readinglistModel->deleteEntry($id);

				}

				$this->_redirect('/readinglist/admin');

			}

		} else {

			$this->view->deleteReadinglistForm = $deleteReadinglistForm;

		}

	}

	public function autopopulateAction()
	{

		$bootstrap = $this->getInvokeArg('bootstrap');
		$isXHR = $bootstrap->getResource('AjaxDetection');

		if ($this->getRequest()->isPost() && $isXHR) {

			$dom = new DOMDocument();

			/*$dom->encoding = 'UTF-8';
			$dom->preserveWhiteSpace = false;
			$dom->formatOutput = true;
			$dom->strictErrorChecking = false;*/

			$url = $this->getRequest()->getPost('articleurl');

			//Zend_Debug::dump($url, '$url');

			if (!empty($url)) {

				$filterChainUrl = new Zend_Filter();
				$filterChainUrl	->addFilter(new Zend_Filter_StringTrim())
								->addFilter(new Zend_Filter_StripTags())
								->addFilter(new Zend_Filter_StripNewlines());

				$filterChainText = new Zend_Filter();
				$filterChainText->addFilter(new Zend_Filter_StringTrim())
								->addFilter(new Zend_Filter_StripTags());

				$url = $filterChainUrl->filter($url);

				//Zend_Debug::dump($url, '$url');

				$urlArray = parse_url($url);

				//Zend_Debug::dump($urlArray, '$urlArray');

				$domain = '';

				if (is_array($urlArray) && array_key_exists('scheme', $urlArray) && array_key_exists('host', $urlArray)) {

					$domain = $urlArray['scheme'].'://'.$urlArray['host'];

				}

				$htmlDocument = @file_get_contents($url);

				//Zend_Debug::dump($htmlDocument, '$htmlDocument');

				//$dom->normalizeDocument();

				@$dom->loadHTML($htmlDocument);

				$metaTags = $dom->getElementsByTagName('meta');

				$websiteData = array();

				$websiteData['domain'] = $domain;

				foreach ($metaTags as $element) {

					//Zend_Debug::dump($element);

					if ($element->hasAttributes()) {

						$attributes = $element->attributes;

						foreach($attributes as $attribute) {

							//Zend_Debug::dump($attribute->nodeName);
							//Zend_Debug::dump($attribute->nodeValue);

							$attributeValue = $element->getAttribute('content');

							if (!empty($attributeValue)) {

								switch ($attribute->nodeValue) {
									case 'og:image':
										$imageUrl = $filterChainUrl->filter($attributeValue);

										$thumbnailPath = $this->saveFile($imageUrl, $domain, 'thumbnail');

										if ($thumbnailPath !== false) {

											$websiteData['image'] = $thumbnailPath;

										}

										//Zend_Debug::dump($websiteData, '$websiteData');

										break;
									case 'og:title':
										//Zend_Debug::dump(mb_detect_encoding(attributeValue));
										$websiteData['title'] = html_entity_decode($filterChainText->filter($attributeValue), ENT_QUOTES);
										break;
									case 'description':
										//Zend_Debug::dump(mb_detect_encoding(attributeValue));
										$websiteData['description'] = html_entity_decode($filterChainText->filter($attributeValue), ENT_QUOTES);
										break;
									case 'og:description':
										//Zend_Debug::dump(mb_detect_encoding(attributeValue));
										$websiteData['description'] = html_entity_decode($filterChainText->filter($attributeValue), ENT_QUOTES);
										break;
								}

							}

						}

					}

				}

				$linkTags = $dom->getElementsByTagName('link');

				foreach ($linkTags as $element) {

					//Zend_Debug::dump($element);

					if ($element->hasAttributes()) {

						$attributes = $element->attributes;

						foreach($attributes as $attribute) {

							$attributeValue = $element->getAttribute('href');

							$attributeValue = $filterChainUrl->filter($attributeValue);

							if ($attribute->nodeValue === 'shortcut icon') {

								$faviconUrl = $filterChainUrl->filter($attributeValue);

								$faviconPath = $this->saveFile($faviconUrl, $domain, 'favicon');

								if ($faviconPath !== false) {

									$websiteData['favicon'] = $faviconPath;

								}

							}

						}

					}

				}

				if (!array_key_exists('title', $websiteData)) {

					$titleDom = $dom->getElementsByTagName('title');

					//Zend_Debug::dump($titleDom);

					if ($titleDom->length > 0) {

						$titleTag = $titleDom->item(0)->textContent;

						//Zend_Debug::dump(mb_detect_encoding($dom->getElementsByTagName('title')->item(0)->textContent));

						$websiteData['title'] = html_entity_decode($filterChainText->filter($titleTag), ENT_QUOTES);

					}

				}

				$linkTags = $dom->getElementsByTagName('link');

				$websiteData['error'] = 0;

				//Zend_Debug::dump($websiteData, '$websiteData');

				$this->view->websiteData = $websiteData;

			} else {

				$this->view->websiteData = array('error' => 1, 'errorMessage' => 'EMPTY_QUERY_PARAMETER');

			}

		} else {

			$this->view->websiteData = array('error' => 1, 'errorMessage' => 'UNKNOWN_REQUEST');

		}

	}

	protected function saveFile($fileUrl, $domain, $type = 'thumbnail')
	{

		$directoryHelper = $this->_helper->Directory;
		$fileHelper = $this->_helper->File;
		$imageHelper = $this->_helper->Image;

		//Zend_Debug::dump($fileUrl, '$fileUrl before');

		// remove get parameters
		$fileUrlExploded = explode('?', $fileUrl);

		$fileUrl = $fileUrlExploded[0];

		// if the first slash is missing but URL does not start with http, we add first backslash
		if (substr($fileUrl, 0, 1) !== '/' && substr($fileUrl, 0, 4) !== 'http') {

			$fileUrl = '/'.$fileUrl;

		}

		// if url has doubel backslash we need to add scheme
		if (substr($fileUrl, 0, 2) === '//') {

			$fileUrl = 'http://'.substr($fileUrl, 2, strlen($fileUrl)-2);

		}

		// if the URL start with a slash add the missing domain and scheme
		if (substr($fileUrl, 0, 1) === '/') {

			$fileUrl = $domain.$fileUrl;

		}

		//Zend_Debug::dump($fileUrl, '$fileUrl after');

		$fileContent = @file_get_contents($fileUrl);

		if ($fileContent !== false) {

			$bootstrap = $this->getInvokeArg('bootstrap');
			$configuration = $bootstrap->getResource('ApplicationConfiguration');
			$applicationUploadPath = APPLICATION_PATH.'/../public'.$configuration->upload->path.'/readinglist';

			//Zend_Debug::dump($applicationUploadPath, '$applicationUploadPath');

			if (!$directoryHelper->directoryexists($applicationUploadPath)) {

				$directoryHelper->createdirectory($applicationUploadPath);

			}

			$cleanedWebsitePath = $fileHelper->cleanFilename($domain);

			$articleUploadPath = $applicationUploadPath.'/'.$cleanedWebsitePath;

			//Zend_Debug::dump($articleUploadPath, '$articleUploadPath');

			if (!$directoryHelper->directoryexists($articleUploadPath)) {

				$directoryHelper->createdirectory($articleUploadPath);

			}

			$fileExtension = $fileHelper->getExtensionByName($fileUrl);

			$fileName = $type.'_'.time().rand().$fileExtension;

			$filePath = $articleUploadPath.'/'.$fileName;

			$filePointer = fopen($filePath, 'w');

            if ($filePointer !== false) {

                $written = fwrite($filePointer, $fileContent);

                if ($written !== false) {

                    fclose($filePointer);

                    if ($type === 'thumbnail') {

                        $imageHelper->thumbs($filePath, 200);

                    }

                    return $configuration->upload->path.'/readinglist/'.$cleanedWebsitePath.'/'.$fileName;

                } else {

                    return false;

                }

            } else {

                return false;

            }

		} else {

			return false;

		}

	}

}


text:
import Crypto.Hash.MD5        (hash)
import Data.ByteString as BS  (readFile, ByteString())
import System.Environment     (getArgs, getProgName)
import System.Directory       (doesDirectoryExist, getDirectoryContents)
import System.FilePath.Posix  ((</>))
import Control.Monad          (forM)
import Text.Printf            (printf)
import System.IO              (withFile, IOMode(ReadMode), hFileSize)

type File = (BS.ByteString, -- md5hash
             FilePath)      -- filepath

type FileSize = Integer

getRecursiveContents :: FilePath -> FileSize -> IO [File]
getRecursiveContents curDir maxsize = do
  names <- getDirectoryContents curDir
  let dirs = filter (`notElem` [".", ".."]) names
  files <- forM dirs $ \path -> do
             let path' = curDir </> path
             exists <- doesDirectoryExist path'
             if exists
                then getRecursiveContents path' maxsize
                else genFileHash path' maxsize
  return $ concat files

genFileHash :: FilePath -> FileSize -> IO [File]
genFileHash path maxsize = do
  size <- withFile path ReadMode hFileSize
  if size <= maxsize
    then BS.readFile path >>= \bs -> return [(hash bs, path)]
    else return []

findDuplicates :: FilePath -> FileSize -> IO ()
findDuplicates dir bytes = do
  exists <- doesDirectoryExist dir
  if exists
    then getRecursiveContents dir bytes >>= findSameHashes
    else printf "Sorry, the directory \"%s\" does not exist...\n" dir

findSameHashes :: [File] -> IO ()
findSameHashes []     = return ()
findSameHashes ((hash, fp):xs) = do
  case lookup hash xs of
    (Just dupFile) -> printf "===========================\n\
                            \Found duplicate:\n\
                            \=> %s \n\
                            \=> %s \n\n" fp dupFile
                      >> findSameHashes xs
    (_)            -> findSameHashes xs

main :: IO ()
main = do
  args <- getArgs
  case args of
    [dir, mbytes] | [(bytes ,"")] <- reads mbytes
                   , bytes >= 1 -> findDuplicates dir bytes
    (_) -> do
      name <- getProgName
      printf "Something went wrong - please use ./%s <dir> <bytes>\n" name


text:
package com.pineone.icbms.sda.subscribe.dto;

public class SubscribeDTO {

	private String cmid;
	private String ciid;
	private String uri;
	private String notification_uri;
	private String subscribe_time;
	private String use_yn;
	private String cuser;
	private String cdate;
	private String uuser;
	private String udate;

    public SubscribeDTO() {
		super();
	}

	public String getCmid() {
		return cmid;
	}

	public void setCmid(String cmid) {
		this.cmid = cmid;
	}

	public String getCiid() {
		return ciid;
	}

	public void setCiid(String ciid) {
		this.ciid = ciid;
	}

	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	public String getNotification_uri() {
		return notification_uri;
	}

	public void setNotification_uri(String notification_uri) {
		this.notification_uri = notification_uri;
	}

	public String getSubscribe_time() {
		return subscribe_time;
	}

	public void setSubscribe_time(String subscribe_time) {
		this.subscribe_time = subscribe_time;
	}

	public String getUse_yn() {
		return use_yn;
	}

	public void setUse_yn(String use_yn) {
		this.use_yn = use_yn;
	}

	public String getCuser() {
		return cuser;
	}

	public void setCuser(String cuser) {
		this.cuser = cuser;
	}

	public String getCdate() {
		return cdate;
	}

	public void setCdate(String cdate) {
		this.cdate = cdate;
	}

	public String getUuser() {
		return uuser;
	}

	public void setUuser(String uuser) {
		this.uuser = uuser;
	}

	public String getUdate() {
		return udate;
	}

	public void setUdate(String udate) {
		this.udate = udate;
	}

	@Override
	public String toString() {
		return "SubscribeDTO [cmid=" + cmid + ", ciid=" + ciid + ", uri=" + uri + ", notification_uri="
				+ notification_uri + ", subscribe_time=" + subscribe_time + ", use_yn=" + use_yn + ", cuser=" + cuser
				+ ", cdate=" + cdate + ", uuser=" + uuser + ", udate=" + udate + "]";
	}
}


text:
// Copyright (C) 2016 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.gerrit.extensions.api.changes;

/** Output options available for submitted_together requests. */
public enum SubmittedTogetherOption {
  NON_VISIBLE_CHANGES;
}


text:
<?php
/*
    Eonza
    (c) 2015 Novostrim, OOO. http://www.eonza.org
    License: MIT
*/

require_once 'ajax_common.php';

if ( ANSWER::is_success() && ANSWER::is_access())
{
    require_once 'backup_common.php';

    @unlink( BACKUP.'/'.basename( post( 'filename' )) );
    backup_list();
}
ANSWER::answer();


text:
package com.tobi.movies.popularstream;

import android.support.annotation.NonNull;

import org.junit.Test;

import static junit.framework.Assert.assertEquals;

public class ApiMoviePosterConverterTest {

    private final ApiMoviePosterConverter apiMoviePosterConverter = new ApiMoviePosterConverter();

    @Test
    public void shouldConvertMoviePoster() throws Exception {
        String imageUrl = "imageUrl.jpg";
        long posterId = 1L;
        ApiMoviePoster apiMoviePoster = createApiMoviePoster(imageUrl, posterId);

        MoviePoster moviePoster = apiMoviePosterConverter.convert(apiMoviePoster);

        assertEquals("http://image.tmdb.org/t/p/w500/" + imageUrl, moviePoster.getPosterPath());
        assertEquals(posterId, moviePoster.getMovieId());
    }

    @NonNull
    private ApiMoviePoster createApiMoviePoster(String imageUrl, long posterId) {
        return new ApiMoviePoster(posterId, "/" + imageUrl);
    }
}


text:
package org.apache.hadoop.hdfs.server.namenode;

import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.RandomAccessFile;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;

import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hdfs.protocol.LayoutVersion.Feature;
import org.apache.hadoop.hdfs.server.namenode.FSImageFormatProtobuf.Loader;
import org.apache.hadoop.hdfs.server.namenode.FsImageProto.FileSummary;
import org.apache.hadoop.io.compress.CompressionCodec;

@InterfaceAudience.Private
public final class FSImageUtil {
  public static final byte[] MAGIC_HEADER =
      "HDFSIMG1".getBytes(StandardCharsets.UTF_8);
  public static final int FILE_VERSION = 1;

  public static boolean checkFileFormat(RandomAccessFile file)
      throws IOException {
    if (file.length() < Loader.MINIMUM_FILE_LENGTH)
      return false;

    byte[] magic = new byte[MAGIC_HEADER.length];
    file.readFully(magic);
    if (!Arrays.equals(MAGIC_HEADER, magic))
      return false;

    return true;
  }

  public static FileSummary loadSummary(RandomAccessFile file)
      throws IOException {
    final int FILE_LENGTH_FIELD_SIZE = 4;
    long fileLength = file.length();
    file.seek(fileLength - FILE_LENGTH_FIELD_SIZE);
    int summaryLength = file.readInt();

    if (summaryLength <= 0) {
      throw new IOException("Negative length of the file");
    }
    file.seek(fileLength - FILE_LENGTH_FIELD_SIZE - summaryLength);

    byte[] summaryBytes = new byte[summaryLength];
    file.readFully(summaryBytes);

    FileSummary summary = FileSummary
        .parseDelimitedFrom(new ByteArrayInputStream(summaryBytes));
    if (summary.getOndiskVersion() != FILE_VERSION) {
      throw new IOException("Unsupported file version "
          + summary.getOndiskVersion());
    }

    if (!NameNodeLayoutVersion.supports(Feature.PROTOBUF_FORMAT,
        summary.getLayoutVersion())) {
      throw new IOException("Unsupported layout version "
          + summary.getLayoutVersion());
    }
    return summary;
  }

  public static InputStream wrapInputStreamForCompression(
      Configuration conf, String codec, InputStream in) throws IOException {
    if (codec.isEmpty())
      return in;

    FSImageCompression compression = FSImageCompression.createCompression(
        conf, codec);
    CompressionCodec imageCodec = compression.getImageCodec();
    return imageCodec.createInputStream(in);
  }

}


text:
@import AUTUserNotifications;

NS_ASSUME_NONNULL_BEGIN

@interface AUTStubUserNotificationActionHandler : NSObject <AUTUserNotificationActionHandler>

/// The handler for the fetch. Completes immediately by default.
@property (readwrite, nonatomic, nullable) RACSignal *actionHandler;

/// The notification that a fetch was performed for.
@property (readonly, nonatomic, nullable) AUTUserNotification *notification;

@end

NS_ASSUME_NONNULL_END


text: Data in ,,,,lol very large blob ,nah


text:
<!DOCTYPE html>

  <title>React-Sidedrawer</title>

  <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta charset="UTF-8">

  <meta name="description" content="Sidedrawer component for React">
  <meta name="keywords" content="react, sidedrawer, menu, drawer, sidemenu, component">

  <link rel="canonical" href="https://github.com/adrianha/react-sidedrawer">
  <link rel="author" href="https://github.com/adrianha" />
  <link rel="publisher" href="https://github.com/adrianha" />


text:
<?php
class Answer{
  /**
  *Save socket here so it can write to the diffrence websocket clients
  */
  private static $sockets = [];
  /**
  *Save the difference ajax answer to later output
  */
  private static $ajax = [
    "message" => []
  ];
  /**
  *Current user
  */
  private static $user;
  /**
  *database cache
  */
  private static $database;

  public static function setDatabase(DatabaseHandler $database){
    self::$database = $database;
  }

  public static function setUser(User $data){
    self::$user = $data;
  }

  public static function currentUser() : User{
    return self::$user;
  }

  public static function parse(AnswerRequest $answer){
    self::handle(
      $answer->getTo(),
      $answer->hasFrom() ? $answer->getFrom() : (self::$user == null ? 0 : self::$user->id()),
      $answer->hasAvatar() ? $answer->getAvatar() : (self::$user == null ?  "" : self::$user->avatar()),
      $answer->hasNick() ? $answer->getNick() : "Bot",
      $answer->hasChannel() ? $answer->getChannel() : "Bot",
      $answer->getMessage()
    );
  }

  public static function outputToUser(AnswerRequest $data){
    self::output(
      $data->getChannel(),
      $data->getTime(),
      $data->getAvatar(),
      $data->getNick(),
      $data->getMessage()
    );
  }

  public static function outputAjax(){
     if(headers_sent()){
       return;//if header is sent stop here
     }
     header('Content-Type: application/json');
     echo json_encode(self::$ajax);
  }

  private static function handle($private, int $from, string $avatar, string $nick, $channel, string $message){
    if($private !== null && $private == $from && $from == self::$user->id()){
      //no need to save message there is only to this user
      self::output(
        $channel,
        time(),
        $avatar,
        $nick,
        $message
      );
      return;
    }
    self::save(
       $from,
       $private,
       $channel,
       $nick,
       $message
    );
  }

  private static function save(int $from, $to, string $channel, string $nick, string $message){
     if(!is_numeric($channel)){
       $channel = self::convertNameToCid($channel);
     }

     self::$database->query("INSERT INTO `".DB_PREFIX."chat_message`(
       `uid`,
       `cid`,
       `isBot`,
       `time`,
       `message`,
       `isMsg`,
       `msgTo`
     ) VALUES (
       '".$from."',
       '".(int)$channel."',
       '".($nick == "Bot" ? Yes : No)."',
       NOW(),
       '".self::$database->clean($message)."',
       '".($to == null ? No : Yes)."',
       '".($to == null ? 0 : (int)$to)."'
     );");
  }

  private static function output($channel, int $time, string $avatar, string $nick, string $message){
    if(is_numeric($channel)){
      $channel = self::convertCidToName($channel);
    }

    self::$ajax["message"][] = [
      "channel" => htmlentities($channel),
      "time"    => date("H:i", $time),
      "avatar"  => htmlentities($avatar),
      "nick"    => htmlentities($nick),
      "message" => htmlentities($message),
    ];
  }

  private static function convertNameToCid(string $name) : int{
    if($name == "Bot"){
      return 1;
    }else{
      $query = self::$database->query("SELECT `id` FROM `".DB_PREFIX."chat_name` WHERE `name`='".self::$database->clean($name)."'");
      if(self::$database->isError){
        exit(self::$database->getError());
      }
      $data = $query->get();
      if(!$data)
        return 1;
      return $data["id"];
    }
  }

  private static function convertCidToName(int $cid) : string{
    if($cid == 1){
      return "Bot";
    }else{
      $query = self::$database->query("SELECT `name` FROM `".DB_PREFIX."chat_name` WHERE `id`='".$cid."'");
      if(self::$database->isError){
        exit(self::$database->getError());
      }

      $result = $query->get();
      return $result ? $result["name"] : "Bot";
    }
  }
}

class AnswerRequest{
  private $private;
  private $nick;
  private $channel;
  private $time;
  private $message;
  private $from;
  private $avatar;

  public function hasAvatar() : bool{
    return $this->avatar !== null;
  }

  public function setAvatar(string $avatar){
    $this->avatar = $avatar;
  }

  public function getAvatar(){
    return $this->avatar;
  }

  public function isPrivate() : bool{
   return $this->private !== null;
  }

  public function setPrivate(int $uid){
    $this->private = $uid;
  }

  public function setPublic(){
    $this->private = null;
  }

  public function getTo(){
    return $this->private;
  }

  public function setFrom(int $from){
    $this->from = $from;
  }

  public function getFrom() : int{
    return $this->from;
  }

  public function hasFrom() : bool{
    return $this->from !== null;
  }

  public function hasNick() : bool{
    return $this->nick !== null;
  }

  public function setNick(string $nick){
    $this->nick = $nick;
  }

  public function getNick() : string{
    return $this->nick;
  }

  public function hasChannel() : bool{
    return $this->channel !== null;
  }

  public function getChannel(){
    return $this->channel;
  }

  public function setChannel($channel){
    $this->channel = $channel;
  }

  public function setTime(int $time){
    $this->time = $time;
  }

  public function hasTime() : bool{
    return $this->time !== null;
  }

  public function getTime() : int{
    return $this->time;
  }

  public function setMessage(string $msg){
    $this->message = $msg;
  }

  public function getMessage() : string{
    return $this->message;
  }

  public function hasMessage() : bool{
    return $this->message !== null;
  }
}

function bot_other(int $uid, $channel, string $message){
  $data = new AnswerRequest();
  $data->setMessage($message);
  $data->setChannel($channel);
  $data->setNick("Bot");
  $data->setFrom($uid);
  Answer::parse($data);
}

function bot_self_other(int $uid, $channel, string $message){
  $data = new AnswerRequest();
  $data->setPrivate($uid);
  $data->setFrom($uid);
  $data->setMessage($message);
  $data->setChannel($channel);
  $data->setNick("Bot");
  Answer::parse($data);
}

function bot($channel, string $message){
  $data = new AnswerRequest();
  $data->setMessage($message);
  $data->setChannel($channel);
  $data->setNick("Bot");
  Answer::parse($data);
}

function bot_self($channel, string $message){
  $data = new AnswerRequest();
  $data->setPrivate(Answer::currentUser()->id());
  $data->setMessage($message);
  $data->setChannel($channel);
  $data->setNick("Bot");
  Answer::parse($data);
}


text:
namespace blink {

void BeginFilterDisplayItem::replay(GraphicsContext& context) const {
  FloatRect imageFilterBounds(m_bounds);
  imageFilterBounds.move(-m_origin.x(), -m_origin.y());
  context.save();
  context.translate(m_origin.x(), m_origin.y());
  context.beginLayer(1, SkBlendMode::kSrcOver, &imageFilterBounds,
                     ColorFilterNone, m_imageFilter);
  context.translate(-m_origin.x(), -m_origin.y());
}

void BeginFilterDisplayItem::appendToWebDisplayItemList(
    const IntRect& visualRect,
    WebDisplayItemList* list) const {
  list->appendFilterItem(m_compositorFilterOperations.asCcFilterOperations(),
                         m_bounds, m_origin);
}

bool BeginFilterDisplayItem::drawsContent() const {
  // Skia cannot currently tell us if a filter will draw content,
  // even when no input primitives are drawn.
  return true;
}

#ifndef NDEBUG
void BeginFilterDisplayItem::dumpPropertiesAsDebugString(
    WTF::StringBuilder& stringBuilder) const {
  DisplayItem::dumpPropertiesAsDebugString(stringBuilder);
  stringBuilder.append(
      WTF::String::format(", filter bounds: [%f,%f,%f,%f]", m_bounds.x(),
                          m_bounds.y(), m_bounds.width(), m_bounds.height()));
}
#endif

void EndFilterDisplayItem::replay(GraphicsContext& context) const {
  context.endLayer();
  context.restore();
}

void EndFilterDisplayItem::appendToWebDisplayItemList(
    const IntRect& visualRect,
    WebDisplayItemList* list) const {
  list->appendEndFilterItem();
}

}  // namespace blink


text:
@interface TaxCalculator ()

/// Tax Calculator Context.

@property (nonatomic, strong) TaxCalculatorContext *taxCalculatorContext;

@end

@implementation TaxCalculator

- (instancetype)init {

    self = [super init];

    if (self) {

        self.taxCalculatorContext = [[TaxCalculatorContext alloc] init];
    }

    return self;
}

- (float)getTaxes:(Product *)product {

    float taxes = 0.0f;

    self.taxCalculatorContext.taxCalculatorStrategy = [[BasicTaxStrategy alloc] init];
    taxes = [self.taxCalculatorContext calculateTax:product];

    self.taxCalculatorContext.taxCalculatorStrategy = [[ImportTaxStrategy alloc] init];
    taxes += [self.taxCalculatorContext calculateTax:product];

    return roundUp(taxes);
}

@end


text:
class AddDigitalCollectionsContentItems < ActiveRecord::Migration
  def change
    create_table(:digital_collections_content_items) do |table|
      table.string(:title, :null => false)
      table.integer(:thumbnail_id, :null => false)
      table.string(:mods_uuid, :limit => 36, :null => false)

      table.timestamps
    end

    # To make MODS UUID querying more efficient.
    add_index(:digital_collections_content_items, :mods_uuid)

    # To protect against the same MODS UUID from being stored twice.
    execute("ALTER TABLE digital_collections_content_items ADD CONSTRAINT unique_mods_uuid unique(mods_uuid)")

    # To allow for longer title values.
    execute("ALTER TABLE digital_collections_content_items ALTER COLUMN title TYPE character varying(510);")
  end
end