text:
.class Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;
.super Landroid/content/BroadcastReceiver;
.source "MobileDataStateTracker.java"

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Landroid/net/MobileDataStateTracker;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "MobileDataStateReceiver"
.end annotation

# instance fields
.field final synthetic this$0:Landroid/net/MobileDataStateTracker;

# direct methods
.method private constructor <init>(Landroid/net/MobileDataStateTracker;)V
    .locals 0

    .prologue
    .line 210
    iput-object p1, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Landroid/net/MobileDataStateTracker;Landroid/net/MobileDataStateTracker$1;)V
    .locals 0
    .param p1, "x0"    # Landroid/net/MobileDataStateTracker;
    .param p2, "x1"    # Landroid/net/MobileDataStateTracker$1;

    .prologue
    .line 210
    invoke-direct {p0, p1}, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;-><init>(Landroid/net/MobileDataStateTracker;)V

    return-void
.end method

# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 13
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "intent"    # Landroid/content/Intent;

    .prologue
    const/4 v8, 0x1

    const/4 v9, 0x0

    .line 213
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v10

    const-string v11, "android.intent.action.DATA_CONNECTION_CONNECTED_TO_PROVISIONING_APN"

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_2

    .line 215
    const-string v9, "apn"

    invoke-virtual {p2, v9}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 216
    .local v0, "apnName":Ljava/lang/String;
    const-string v9, "apnType"

    invoke-virtual {p2, v9}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 217
    .local v1, "apnType":Ljava/lang/String;
    iget-object v9, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    # getter for: Landroid/net/MobileDataStateTracker;->mApnType:Ljava/lang/String;
    invoke-static {v9}, Landroid/net/MobileDataStateTracker;->access$300(Landroid/net/MobileDataStateTracker;)Ljava/lang/String;

    move-result-object v9

    invoke-static {v9, v1}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v9

    if-nez v9, :cond_1

    .line 368
    .end local v0    # "apnName":Ljava/lang/String;
    .end local v1    # "apnType":Ljava/lang/String;
    :cond_0
    :goto_0
    return-void

    .line 226
    .restart local v0    # "apnName":Ljava/lang/String;
    .restart local v1    # "apnType":Ljava/lang/String;
    :cond_1
    iget-object v9, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    sget-object v10, Lcom/android/internal/telephony/PhoneConstants$DataState;->CONNECTING:Lcom/android/internal/telephony/PhoneConstants$DataState;

    # setter for: Landroid/net/MobileDataStateTracker;->mMobileDataState:Lcom/android/internal/telephony/PhoneConstants$DataState;
    invoke-static {v9, v10}, Landroid/net/MobileDataStateTracker;->access$402(Landroid/net/MobileDataStateTracker;Lcom/android/internal/telephony/PhoneConstants$DataState;)Lcom/android/internal/telephony/PhoneConstants$DataState;

    .line 227
    iget-object v9, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    # invokes: Landroid/net/MobileDataStateTracker;->updateLinkProperitesAndCapatilities(Landroid/content/Intent;)V
    invoke-static {v9, p2}, Landroid/net/MobileDataStateTracker;->access$500(Landroid/net/MobileDataStateTracker;Landroid/content/Intent;)V

    .line 228
    iget-object v9, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    # getter for: Landroid/net/MobileDataStateTracker;->mNetworkInfo:Landroid/net/NetworkInfo;
    invoke-static {v9}, Landroid/net/MobileDataStateTracker;->access$600(Landroid/net/MobileDataStateTracker;)Landroid/net/NetworkInfo;

    move-result-object v9

    invoke-virtual {v9, v8}, Landroid/net/NetworkInfo;->setIsConnectedToProvisioningNetwork(Z)V

    .line 232
    iget-object v8, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    sget-object v9, Landroid/net/NetworkInfo$DetailedState;->SUSPENDED:Landroid/net/NetworkInfo$DetailedState;

    const-string v10, ""

    # invokes: Landroid/net/MobileDataStateTracker;->setDetailedState(Landroid/net/NetworkInfo$DetailedState;Ljava/lang/String;Ljava/lang/String;)V
    invoke-static {v8, v9, v10, v0}, Landroid/net/MobileDataStateTracker;->access$700(Landroid/net/MobileDataStateTracker;Landroid/net/NetworkInfo$DetailedState;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 233
    .end local v0    # "apnName":Ljava/lang/String;
    .end local v1    # "apnType":Ljava/lang/String;
    :cond_2
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v10

    const-string v11, "android.intent.action.ANY_DATA_STATE"

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_8

    .line 235
    const-string v10, "apnType"

    invoke-virtual {p2, v10}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 241
    .restart local v1    # "apnType":Ljava/lang/String;
    iget-object v10, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    # getter for: Landroid/net/MobileDataStateTracker;->mApnType:Ljava/lang/String;
    invoke-static {v10}, Landroid/net/MobileDataStateTracker;->access$300(Landroid/net/MobileDataStateTracker;)Ljava/lang/String;

    move-result-object v10

    invoke-static {v1, v10}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v10

    if-eqz v10, :cond_0

    .line 245
    iget-object v10, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    # getter for: Landroid/net/MobileDataStateTracker;->mNetworkInfo:Landroid/net/NetworkInfo;
    invoke-static {v10}, Landroid/net/MobileDataStateTracker;->access$600(Landroid/net/MobileDataStateTracker;)Landroid/net/NetworkInfo;

    move-result-object v10

    invoke-virtual {v10, v9}, Landroid/net/NetworkInfo;->setIsConnectedToProvisioningNetwork(Z)V

    .line 250
    iget-object v10, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    # getter for: Landroid/net/MobileDataStateTracker;->mNetworkInfo:Landroid/net/NetworkInfo;
    invoke-static {v10}, Landroid/net/MobileDataStateTracker;->access$600(Landroid/net/MobileDataStateTracker;)Landroid/net/NetworkInfo;

    move-result-object v10

    invoke-virtual {v10}, Landroid/net/NetworkInfo;->getSubtype()I

    move-result v4

    .line 251
    .local v4, "oldSubtype":I
    invoke-static {}, Landroid/telephony/TelephonyManager;->getDefault()Landroid/telephony/TelephonyManager;

    move-result-object v10

    invoke-virtual {v10}, Landroid/telephony/TelephonyManager;->getNetworkType()I

    move-result v3

    .line 252
    .local v3, "newSubType":I
    invoke-static {}, Landroid/telephony/TelephonyManager;->getDefault()Landroid/telephony/TelephonyManager;

    move-result-object v10

    invoke-virtual {v10}, Landroid/telephony/TelephonyManager;->getNetworkTypeName()Ljava/lang/String;

    move-result-object v7

    .line 253
    .local v7, "subTypeName":Ljava/lang/String;
    iget-object v10, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    # getter for: Landroid/net/MobileDataStateTracker;->mNetworkInfo:Landroid/net/NetworkInfo;
    invoke-static {v10}, Landroid/net/MobileDataStateTracker;->access$600(Landroid/net/MobileDataStateTracker;)Landroid/net/NetworkInfo;

    move-result-object v10

    invoke-virtual {v10, v3, v7}, Landroid/net/NetworkInfo;->setSubtype(ILjava/lang/String;)V

    .line 254
    if-eq v3, v4, :cond_3

    iget-object v10, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    # getter for: Landroid/net/MobileDataStateTracker;->mNetworkInfo:Landroid/net/NetworkInfo;
    invoke-static {v10}, Landroid/net/MobileDataStateTracker;->access$600(Landroid/net/MobileDataStateTracker;)Landroid/net/NetworkInfo;

    move-result-object v10

    invoke-virtual {v10}, Landroid/net/NetworkInfo;->isConnected()Z

    move-result v10

    if-eqz v10, :cond_3

    .line 255
    iget-object v10, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    # getter for: Landroid/net/MobileDataStateTracker;->mTarget:Landroid/os/Handler;
    invoke-static {v10}, Landroid/net/MobileDataStateTracker;->access$800(Landroid/net/MobileDataStateTracker;)Landroid/os/Handler;

    move-result-object v10

    const v11, 0x70003

    iget-object v12, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    # getter for: Landroid/net/MobileDataStateTracker;->mNetworkInfo:Landroid/net/NetworkInfo;
    invoke-static {v12}, Landroid/net/MobileDataStateTracker;->access$600(Landroid/net/MobileDataStateTracker;)Landroid/net/NetworkInfo;

    move-result-object v12

    invoke-virtual {v10, v11, v4, v9, v12}, Landroid/os/Handler;->obtainMessage(IIILjava/lang/Object;)Landroid/os/Message;

    move-result-object v2

    .line 257
    .local v2, "msg":Landroid/os/Message;
    invoke-virtual {v2}, Landroid/os/Message;->sendToTarget()V

    .line 260
    .end local v2    # "msg":Landroid/os/Message;
    :cond_3
    const-class v10, Lcom/android/internal/telephony/PhoneConstants$DataState;

    const-string/jumbo v11, "state"

    invoke-virtual {p2, v11}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-static {v10, v11}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;

    move-result-object v6

    check-cast v6, Lcom/android/internal/telephony/PhoneConstants$DataState;

    .line 262
    .local v6, "state":Lcom/android/internal/telephony/PhoneConstants$DataState;
    const-string/jumbo v10, "reason"

    invoke-virtual {p2, v10}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 263
    .local v5, "reason":Ljava/lang/String;
    const-string v10, "apn"

    invoke-virtual {p2, v10}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 264
    .restart local v0    # "apnName":Ljava/lang/String;
    iget-object v10, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    # getter for: Landroid/net/MobileDataStateTracker;->mNetworkInfo:Landroid/net/NetworkInfo;
    invoke-static {v10}, Landroid/net/MobileDataStateTracker;->access$600(Landroid/net/MobileDataStateTracker;)Landroid/net/NetworkInfo;

    move-result-object v10

    const-string/jumbo v11, "networkRoaming"

    invoke-virtual {p2, v11, v9}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v11

    invoke-virtual {v10, v11}, Landroid/net/NetworkInfo;->setRoaming(Z)V

    .line 270
    iget-object v10, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    # getter for: Landroid/net/MobileDataStateTracker;->mNetworkInfo:Landroid/net/NetworkInfo;
    invoke-static {v10}, Landroid/net/MobileDataStateTracker;->access$600(Landroid/net/MobileDataStateTracker;)Landroid/net/NetworkInfo;

    move-result-object v10

    const-string/jumbo v11, "networkUnvailable"

    invoke-virtual {p2, v11, v9}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v11

    if-nez v11, :cond_4

    :goto_1
    invoke-virtual {v10, v8}, Landroid/net/NetworkInfo;->setIsAvailable(Z)V

    .line 277
    iget-object v8, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    # getter for: Landroid/net/MobileDataStateTracker;->mMobileDataState:Lcom/android/internal/telephony/PhoneConstants$DataState;
    invoke-static {v8}, Landroid/net/MobileDataStateTracker;->access$400(Landroid/net/MobileDataStateTracker;)Lcom/android/internal/telephony/PhoneConstants$DataState;

    move-result-object v8

    if-eq v8, v6, :cond_6

    .line 278
    iget-object v8, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    # setter for: Landroid/net/MobileDataStateTracker;->mMobileDataState:Lcom/android/internal/telephony/PhoneConstants$DataState;
    invoke-static {v8, v6}, Landroid/net/MobileDataStateTracker;->access$402(Landroid/net/MobileDataStateTracker;Lcom/android/internal/telephony/PhoneConstants$DataState;)Lcom/android/internal/telephony/PhoneConstants$DataState;

    .line 279
    sget-object v8, Landroid/net/MobileDataStateTracker$2;->$SwitchMap$com$android$internal$telephony$PhoneConstants$DataState:[I

    invoke-virtual {v6}, Lcom/android/internal/telephony/PhoneConstants$DataState;->ordinal()I

    move-result v10

    aget v8, v8, v10

    packed-switch v8, :pswitch_data_0

    .line 327
    :goto_2
    iget-object v8, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    # getter for: Landroid/net/MobileDataStateTracker;->mSamplingDataTracker:Landroid/net/SamplingDataTracker;
    invoke-static {v8}, Landroid/net/MobileDataStateTracker;->access$900(Landroid/net/MobileDataStateTracker;)Landroid/net/SamplingDataTracker;

    move-result-object v8

    invoke-virtual {v8}, Landroid/net/SamplingDataTracker;->resetSamplingData()V

    goto/16 :goto_0

    :cond_4
    move v8, v9

    .line 270
    goto :goto_1

    .line 281
    :pswitch_0
    iget-object v8, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    invoke-virtual {v8}, Landroid/net/MobileDataStateTracker;->isTeardownRequested()Z

    move-result v8

    if-eqz v8, :cond_5

    .line 282
    iget-object v8, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    invoke-virtual {v8, v9}, Landroid/net/MobileDataStateTracker;->setTeardownRequested(Z)V

    .line 285
    :cond_5
    iget-object v8, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    sget-object v9, Landroid/net/NetworkInfo$DetailedState;->DISCONNECTED:Landroid/net/NetworkInfo$DetailedState;

    # invokes: Landroid/net/MobileDataStateTracker;->setDetailedState(Landroid/net/NetworkInfo$DetailedState;Ljava/lang/String;Ljava/lang/String;)V
    invoke-static {v8, v9, v5, v0}, Landroid/net/MobileDataStateTracker;->access$700(Landroid/net/MobileDataStateTracker;Landroid/net/NetworkInfo$DetailedState;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_2

    .line 294
    :pswitch_1
    iget-object v8, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    sget-object v9, Landroid/net/NetworkInfo$DetailedState;->CONNECTING:Landroid/net/NetworkInfo$DetailedState;

    # invokes: Landroid/net/MobileDataStateTracker;->setDetailedState(Landroid/net/NetworkInfo$DetailedState;Ljava/lang/String;Ljava/lang/String;)V
    invoke-static {v8, v9, v5, v0}, Landroid/net/MobileDataStateTracker;->access$700(Landroid/net/MobileDataStateTracker;Landroid/net/NetworkInfo$DetailedState;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_2

    .line 297
    :pswitch_2
    iget-object v8, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    sget-object v9, Landroid/net/NetworkInfo$DetailedState;->SUSPENDED:Landroid/net/NetworkInfo$DetailedState;

    # invokes: Landroid/net/MobileDataStateTracker;->setDetailedState(Landroid/net/NetworkInfo$DetailedState;Ljava/lang/String;Ljava/lang/String;)V
    invoke-static {v8, v9, v5, v0}, Landroid/net/MobileDataStateTracker;->access$700(Landroid/net/MobileDataStateTracker;Landroid/net/NetworkInfo$DetailedState;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_2

    .line 300
    :pswitch_3
    iget-object v8, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    # invokes: Landroid/net/MobileDataStateTracker;->updateLinkProperitesAndCapatilities(Landroid/content/Intent;)V
    invoke-static {v8, p2}, Landroid/net/MobileDataStateTracker;->access$500(Landroid/net/MobileDataStateTracker;Landroid/content/Intent;)V

    .line 301
    iget-object v8, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    sget-object v9, Landroid/net/NetworkInfo$DetailedState;->CONNECTED:Landroid/net/NetworkInfo$DetailedState;

    # invokes: Landroid/net/MobileDataStateTracker;->setDetailedState(Landroid/net/NetworkInfo$DetailedState;Ljava/lang/String;Ljava/lang/String;)V
    invoke-static {v8, v9, v5, v0}, Landroid/net/MobileDataStateTracker;->access$700(Landroid/net/MobileDataStateTracker;Landroid/net/NetworkInfo$DetailedState;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_2

    .line 330
    :cond_6
    const-string v8, "linkPropertiesChanged"

    invoke-static {v5, v8}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v8

    if-eqz v8, :cond_0

    .line 331
    iget-object v9, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    const-string v8, "linkProperties"

    invoke-virtual {p2, v8}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v8

    check-cast v8, Landroid/net/LinkProperties;

    # setter for: Landroid/net/MobileDataStateTracker;->mLinkProperties:Landroid/net/LinkProperties;
    invoke-static {v9, v8}, Landroid/net/MobileDataStateTracker;->access$1002(Landroid/net/MobileDataStateTracker;Landroid/net/LinkProperties;)Landroid/net/LinkProperties;

    .line 333
    iget-object v8, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    # getter for: Landroid/net/MobileDataStateTracker;->mLinkProperties:Landroid/net/LinkProperties;
    invoke-static {v8}, Landroid/net/MobileDataStateTracker;->access$1000(Landroid/net/MobileDataStateTracker;)Landroid/net/LinkProperties;

    move-result-object v8

    if-nez v8, :cond_7

    .line 334
    iget-object v8, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    const-string v9, "No link property in LINK_PROPERTIES change event."

    # invokes: Landroid/net/MobileDataStateTracker;->loge(Ljava/lang/String;)V
    invoke-static {v8, v9}, Landroid/net/MobileDataStateTracker;->access$1100(Landroid/net/MobileDataStateTracker;Ljava/lang/String;)V

    .line 335
    iget-object v8, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    new-instance v9, Landroid/net/LinkProperties;

    invoke-direct {v9}, Landroid/net/LinkProperties;-><init>()V

    # setter for: Landroid/net/MobileDataStateTracker;->mLinkProperties:Landroid/net/LinkProperties;
    invoke-static {v8, v9}, Landroid/net/MobileDataStateTracker;->access$1002(Landroid/net/MobileDataStateTracker;Landroid/net/LinkProperties;)Landroid/net/LinkProperties;

    .line 338
    :cond_7
    iget-object v8, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    # getter for: Landroid/net/MobileDataStateTracker;->mNetworkInfo:Landroid/net/NetworkInfo;
    invoke-static {v8}, Landroid/net/MobileDataStateTracker;->access$600(Landroid/net/MobileDataStateTracker;)Landroid/net/NetworkInfo;

    move-result-object v8

    iget-object v9, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    # getter for: Landroid/net/MobileDataStateTracker;->mNetworkInfo:Landroid/net/NetworkInfo;
    invoke-static {v9}, Landroid/net/MobileDataStateTracker;->access$600(Landroid/net/MobileDataStateTracker;)Landroid/net/NetworkInfo;

    move-result-object v9

    invoke-virtual {v9}, Landroid/net/NetworkInfo;->getDetailedState()Landroid/net/NetworkInfo$DetailedState;

    move-result-object v9

    iget-object v10, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    # getter for: Landroid/net/MobileDataStateTracker;->mNetworkInfo:Landroid/net/NetworkInfo;
    invoke-static {v10}, Landroid/net/MobileDataStateTracker;->access$600(Landroid/net/MobileDataStateTracker;)Landroid/net/NetworkInfo;

    move-result-object v10

    invoke-virtual {v10}, Landroid/net/NetworkInfo;->getExtraInfo()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v8, v9, v5, v10}, Landroid/net/NetworkInfo;->setDetailedState(Landroid/net/NetworkInfo$DetailedState;Ljava/lang/String;Ljava/lang/String;)V

    .line 340
    iget-object v8, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    # getter for: Landroid/net/MobileDataStateTracker;->mTarget:Landroid/os/Handler;
    invoke-static {v8}, Landroid/net/MobileDataStateTracker;->access$800(Landroid/net/MobileDataStateTracker;)Landroid/os/Handler;

    move-result-object v8

    const v9, 0x70001

    iget-object v10, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    # getter for: Landroid/net/MobileDataStateTracker;->mNetworkInfo:Landroid/net/NetworkInfo;
    invoke-static {v10}, Landroid/net/MobileDataStateTracker;->access$600(Landroid/net/MobileDataStateTracker;)Landroid/net/NetworkInfo;

    move-result-object v10

    invoke-virtual {v8, v9, v10}, Landroid/os/Handler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;

    move-result-object v2

    .line 342
    .restart local v2    # "msg":Landroid/os/Message;
    invoke-virtual {v2}, Landroid/os/Message;->sendToTarget()V

    goto/16 :goto_0

    .line 345
    .end local v0    # "apnName":Ljava/lang/String;
    .end local v1    # "apnType":Ljava/lang/String;
    .end local v2    # "msg":Landroid/os/Message;
    .end local v3    # "newSubType":I
    .end local v4    # "oldSubtype":I
    .end local v5    # "reason":Ljava/lang/String;
    .end local v6    # "state":Lcom/android/internal/telephony/PhoneConstants$DataState;
    .end local v7    # "subTypeName":Ljava/lang/String;
    :cond_8
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v8

    const-string v10, "android.intent.action.DATA_CONNECTION_FAILED"

    invoke-virtual {v8, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_0

    .line 347
    const-string v8, "apnType"

    invoke-virtual {p2, v8}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 348
    .restart local v1    # "apnType":Ljava/lang/String;
    iget-object v8, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    # getter for: Landroid/net/MobileDataStateTracker;->mApnType:Ljava/lang/String;
    invoke-static {v8}, Landroid/net/MobileDataStateTracker;->access$300(Landroid/net/MobileDataStateTracker;)Ljava/lang/String;

    move-result-object v8

    invoke-static {v1, v8}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v8

    if-eqz v8, :cond_0

    .line 357
    iget-object v8, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    # getter for: Landroid/net/MobileDataStateTracker;->mNetworkInfo:Landroid/net/NetworkInfo;
    invoke-static {v8}, Landroid/net/MobileDataStateTracker;->access$600(Landroid/net/MobileDataStateTracker;)Landroid/net/NetworkInfo;

    move-result-object v8

    invoke-virtual {v8, v9}, Landroid/net/NetworkInfo;->setIsConnectedToProvisioningNetwork(Z)V

    .line 358
    const-string/jumbo v8, "reason"

    invoke-virtual {p2, v8}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 359
    .restart local v5    # "reason":Ljava/lang/String;
    const-string v8, "apn"

    invoke-virtual {p2, v8}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 364
    .restart local v0    # "apnName":Ljava/lang/String;
    iget-object v8, p0, Landroid/net/MobileDataStateTracker$MobileDataStateReceiver;->this$0:Landroid/net/MobileDataStateTracker;

    sget-object v9, Landroid/net/NetworkInfo$DetailedState;->FAILED:Landroid/net/NetworkInfo$DetailedState;

    # invokes: Landroid/net/MobileDataStateTracker;->setDetailedState(Landroid/net/NetworkInfo$DetailedState;Ljava/lang/String;Ljava/lang/String;)V
    invoke-static {v8, v9, v5, v0}, Landroid/net/MobileDataStateTracker;->access$700(Landroid/net/MobileDataStateTracker;Landroid/net/NetworkInfo$DetailedState;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0

    .line 279
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method


text:
<?xml version="1.0" encoding="utf-8"?>
<CrawlItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Text>Pizza stigla za 20 umjesto 40min, odlična!!!!!!!!!</Text>
  <Rating>6</Rating>
  <Source>http://pauza.hr/menu/pizza-slavonija</Source>
</CrawlItem>

redpajama_set_name: RedPajamaGithub


text:
// +k8s:deepcopy-gen=package

// Package v1 is the v1 version of the API.
// +groupName=velero.io
package v1


text:
if (!(Get-Module PSScriptAnalyzer)) {
    Import-Module PSScriptAnalyzer
}

$directory = Split-Path $MyInvocation.MyCommand.Path
$settingsTestDirectory = [System.IO.Path]::Combine($directory, "SettingsTest")
$project1Root = [System.IO.Path]::Combine($settingsTestDirectory, "Project1")
$project2Root = [System.IO.Path]::Combine($settingsTestDirectory, "Project2")
$settingsTypeName = 'Microsoft.Windows.PowerShell.ScriptAnalyzer.Settings'

Describe "Settings Precedence" {
    Context "settings object is explicit" {
        It "runs rules from the explicit setting file" {
            $settingsFilepath = [System.IO.Path]::Combine($project1Root, "ExplicitSettings.psd1")
            $violations = Invoke-ScriptAnalyzer -Path $project1Root -Settings $settingsFilepath -Recurse
            $violations.Count | Should Be 2
        }
    }

    Context "settings file is implicit" {
        It "runs rules from the implicit setting file" {
            $violations = Invoke-ScriptAnalyzer -Path $project1Root -Recurse
            $violations.Count | Should Be 1
            $violations[0].RuleName | Should Be "PSAvoidUsingCmdletAliases"
        }

        It "cannot find file if not named PSScriptAnalyzerSettings.psd1" {
            $violations = Invoke-ScriptAnalyzer -Path $project2Root -Recurse
            $violations.Count | Should Be 2
        }
    }
}

Describe "Settings Class" {
    Context "When an empty hashtable is provided" {
        BeforeAll {
            $settings = New-Object -TypeName $settingsTypeName -ArgumentList @{}
        }

        'IncludeRules', 'ExcludeRules', 'Severity', 'RuleArguments' | ForEach-Object {
            It ("Should return empty {0} property" -f $_) {
                $settings.${$_}.Count | Should Be 0
            }
        }
    }

    Context "When a string is provided for IncludeRules in a hashtable" {
        BeforeAll {
            $ruleName = "PSAvoidCmdletAliases"
            $settings = New-Object -TypeName $settingsTypeName -ArgumentList @{ IncludeRules = $ruleName }
        }

        It "Should return an IncludeRules array with 1 element" {
            $settings.IncludeRules.Count | Should Be 1
        }

        It "Should return the rule in the IncludeRules array" {
            $settings.IncludeRules[0] | Should Be $ruleName
        }
    }

    Context "When rule arguments are provided in a hashtable" {
        BeforeAll {
            $settingsHashtable = @{
                Rules = @{
                    PSAvoidUsingCmdletAliases = @{
                        WhiteList = @("cd", "cp")
                    }
                }
            }
            $settings = New-Object -TypeName $settingsTypeName -ArgumentList $settingsHashtable
        }

        It "Should return the rule arguments" {
            $settings.RuleArguments["PSAvoidUsingCmdletAliases"]["WhiteList"].Count | Should Be 2
            $settings.RuleArguments["PSAvoidUsingCmdletAliases"]["WhiteList"][0] | Should Be "cd"
            $settings.RuleArguments["PSAvoidUsingCmdletAliases"]["WhiteList"][1] | Should Be "cp"
        }

        It "Should be case insensitive" {
            $settings.RuleArguments["psAvoidUsingCmdletAliases"]["whiteList"].Count | Should Be 2
            $settings.RuleArguments["psAvoidUsingCmdletAliases"]["whiteList"][0] | Should Be "cd"
            $settings.RuleArguments["psAvoidUsingCmdletAliases"]["whiteList"][1] | Should Be "cp"
        }
    }

    Context "When a settings file path is provided" {
        BeforeAll {
            $settings = New-Object -TypeName $settingsTypeName `
                              -ArgumentList ([System.IO.Path]::Combine($project1Root, "ExplicitSettings.psd1"))
        }

        It "Should return 2 IncludeRules" {
            $settings.IncludeRules.Count | Should Be 3
        }

        It "Should return 2 ExcludeRules" {
            $settings.ExcludeRules.Count | Should Be 3
        }

        It "Should return 1 rule argument" {
            $settings.RuleArguments.Count | Should Be 3
        }

        It "Should parse boolean type argument" {
            $settings.RuleArguments["PSUseConsistentIndentation"]["Enable"] | Should Be $true
        }

        It "Should parse int type argument" {
            $settings.RuleArguments["PSUseConsistentIndentation"]["IndentationSize"] | Should Be 4
        }

        It "Should parse string literal" {
            $settings.RuleArguments["PSProvideCommentHelp"]["Placement"] | Should Be 'end'
        }
    }

    Context "When CustomRulePath parameter is provided" {
        It "Should return an array of 1 item when only 1 path is given in a hashtable" {
            $rulePath = "C:\rules\module1"
            $settingsHashtable = @{
                CustomRulePath = $rulePath
            }

            $settings = New-Object -TypeName $settingsTypeName  -ArgumentList $settingsHashtable
            $settings.CustomRulePath.Count | Should Be 1
            $settings.CustomRulePath[0] | Should be $rulePath
        }

        It "Should return an array of n items when n items are given in a hashtable" {
            $rulePaths = @("C:\rules\module1", "C:\rules\module2")
            $settingsHashtable = @{
                CustomRulePath = $rulePaths
            }

            $settings = New-Object -TypeName $settingsTypeName  -ArgumentList $settingsHashtable
            $settings.CustomRulePath.Count | Should Be $rulePaths.Count
            0..($rulePaths.Count - 1) | ForEach-Object { $settings.CustomRulePath[$_] | Should be $rulePaths[$_] }

        }

        It "Should detect the parameter in a settings file" {
            $settings = New-Object -TypeName $settingsTypeName `
                              -ArgumentList ([System.IO.Path]::Combine($project1Root, "CustomRulePathSettings.psd1"))
            $settings.CustomRulePath.Count | Should Be 2
        }
    }

    @("IncludeDefaultRules", "RecurseCustomRulePath") | ForEach-Object {
        $paramName = $_
        Context "When $paramName parameter is provided" {
            It "Should correctly set the value if a boolean is given - true" {
                $settingsHashtable = @{}
                $settingsHashtable.Add($paramName, $true)

                $settings = New-Object -TypeName $settingsTypeName -ArgumentList $settingsHashtable
                $settings."$paramName" | Should Be $true
            }

            It "Should correctly set the value if a boolean is given - false" {
                $settingsHashtable = @{}
                $settingsHashtable.Add($paramName, $false)

                $settings = New-Object -TypeName $settingsTypeName -ArgumentList $settingsHashtable
                $settings."$paramName" | Should Be $false
            }

            It "Should throw if a non-boolean value is given" {
                $settingsHashtable = @{}
                $settingsHashtable.Add($paramName, "some random string")

                { New-Object -TypeName $settingsTypeName -ArgumentList $settingsHashtable } | Should Throw
            }

            It "Should detect the parameter in a settings file" {
                $settings = New-Object -TypeName $settingsTypeName `
                    -ArgumentList ([System.IO.Path]::Combine($project1Root, "CustomRulePathSettings.psd1"))
                $settings."$paramName" | Should Be $true
            }
        }
    }
}


text:
// Copyright 2011-2016 Google LLC
//
// 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.security.zynamics.reil.translators.x86;

import com.google.security.zynamics.reil.OperandSize;
import com.google.security.zynamics.reil.ReilHelpers;
import com.google.security.zynamics.reil.ReilInstruction;
import com.google.security.zynamics.reil.translators.IInstructionTranslator;
import com.google.security.zynamics.reil.translators.ITranslationEnvironment;
import com.google.security.zynamics.reil.translators.InternalTranslationException;
import com.google.security.zynamics.reil.translators.TranslationHelpers;
import com.google.security.zynamics.reil.translators.TranslationResult;
import com.google.security.zynamics.zylib.disassembly.IInstruction;
import com.google.security.zynamics.zylib.disassembly.IOperandTree;

import java.util.List;

/**
 * Translates DIV instructions to REIL code.
 */
public class DivTranslator implements IInstructionTranslator {

  /**
   * Translates a DIV instruction to REIL code.
   *
   * @param environment A valid translation environment
   * @param instruction The DIV instruction to translate
   * @param instructions The generated REIL code will be added to this list
   *
   * @throws InternalTranslationException if any of the arguments are null the passed instruction is
   *         not an DIV instruction
   */
  @Override
  public void translate(final ITranslationEnvironment environment, final IInstruction instruction,
      final List<ReilInstruction> instructions) throws InternalTranslationException {

    TranslationHelpers.checkTranslationArguments(environment, instruction, instructions, "div");

    if (instruction.getOperands().size() != 1) {
      throw new InternalTranslationException(
          "Error: Argument instruction is not a div instruction (invalid number of operands)");
    }

    final long baseOffset = instruction.getAddress().toLong() * 0x100;
    long offset = baseOffset;

    final List<? extends IOperandTree> operands = instruction.getOperands();

    final IOperandTree divisorOperand = operands.get(0);

    final OperandSize size = Helpers.getOperandSize(divisorOperand);

    // Load the dividend
    final TranslationResult resultDividend = Helpers.loadFirstDivOperand(environment, offset, size);
    instructions.addAll(resultDividend.getInstructions());

    // Adjust the offset of the next REIL instruction
    offset = baseOffset + instructions.size();

    final String dividend = resultDividend.getRegister();

    // Load the divisor
    final TranslationResult resultDivisor =
        Helpers.translateOperand(environment, offset, divisorOperand, true);
    instructions.addAll(resultDivisor.getInstructions());

    // Adjust the offset of the next REIL instruction
    offset = baseOffset + instructions.size();

    final String divisor = resultDivisor.getRegister();

    final String divResult = environment.getNextVariableString();
    final String modResult = environment.getNextVariableString();

    // Perform divison and modulo operation
    instructions.add(ReilHelpers.createDiv(offset++, size, dividend, size, divisor, size, divResult));
    instructions.add(ReilHelpers.createMod(offset++, size, dividend, size, divisor, size,
        modResult));

    // Write the result back and set the flags
    instructions
        .addAll(Helpers.writeDivResult(environment, offset++, divResult, modResult, size));
    offset = baseOffset + instructions.size();
    // Undefine flags
    instructions.add(ReilHelpers.createUndef(offset++, OperandSize.BYTE, Helpers.AUXILIARY_FLAG));
    instructions.add(ReilHelpers.createUndef(offset++, OperandSize.BYTE, Helpers.CARRY_FLAG));
    instructions.add(ReilHelpers.createUndef(offset++, OperandSize.BYTE, Helpers.OVERFLOW_FLAG));
    instructions.add(ReilHelpers.createUndef(offset++, OperandSize.BYTE, Helpers.PARITY_FLAG));
    instructions.add(ReilHelpers.createUndef(offset++, OperandSize.BYTE, Helpers.SIGN_FLAG));
    instructions.add(ReilHelpers.createUndef(offset++, OperandSize.BYTE, Helpers.ZERO_FLAG));
  }

}


text:
import * as auth from './auth.js';

// The AWS SDK lacks commonjs support so this workaround just uses the

// prebuilt file that's loaded in index.html
// const AWS = window.AWS;

// const bucket = new AWS.S3({
//   params: {
//     Bucket: config.aws.bucket
//   }
// });

export async function uploadFile(file) {
  console.warn('TODO');
  return;

  // const credentials = await auth.fetchAwsCredentials();
  // const {profile} = await auth.authorize();
  //
  // // TODO: figure out why this is needed, since AWS' SDK already has credentials configured
  // bucket.config.credentials = new AWS.Credentials(
  //     credentials.AccessKeyId,
  //     credentials.SecretAccessKey,
  //     credentials.SessionToken);
  // AWS.config.region = 'ap-southeast-1';
  //
  //
  // var objectKey = `${config.aws.folderPrefix}${profile.user_id}/${file.name}`;
  // var params = {
  //   Key: objectKey,
  //   ContentType: file.type,
  //   Body: file,
  //   ACL: 'private'
  // };
  //
  // return new Promise((resolve, reject) => {
  //   log('file upload in progress...');
  //   bucket.putObject(params, function (error, data) {
  //     log('file upload complete in upload.js', error, data);
  //     if (error) {reject(error);}
  //     else {
  //       bucket.getSignedUrl('getObject', {
  //         Key: objectKey,
  //         Expires: 60 * 60 * 24 * 30
  //       }, (error, url) => {
  //         if (error) {reject(error);}
  //         else {resolve(url);}
  //       });
  //     }
  //   });
  // });
}


text:
'use strict';

/**
 * @ngdoc function
 * @name frontEndApp.controller:UserCtrl
 * @description
 * # UserCtrl
 * Controller of the frontEndApp
 */
angular.module('frontEndApp')
  .controller('UserCtrl', ['$log', 'UserService', '$window', '$mdSidenav', '$location', '$cookies', function ($log, UserService, $window, $mdSidenav, $location, $cookies) {

     // debugger;
      $log.log('entered UserCtrl');

      var desiredRoute = $cookies.get('clientStartRoute');
      if (desiredRoute) {
          if (desiredRoute !== $location.url()) {
              $location.url(desiredRoute);
          }
      }

      var self = this;
      self.user = {};
      self.timesheet = {};

      self.showSpinner = true;

      self.user.AgeGroups = "N/A";
      self.user.Status = "Active";
      self.timesheet.IsActive = "true";

      // function declarations
      self.saveUserInfo = function () {
       // debugger;
          UserService.saveUserDetails(self.user).then(function (res) {
              self.showSpinner = false;
           //   $window.location.href = '#!/Home';
          });
          self.showSpinner = true;
      }

      self.toggleNav = function() {
          $mdSidenav('left').toggle();
      }

      self.hrefHandle = function (href) {
         // debugger;
          $mdSidenav('left').close();
          $window.location.href = href;
      }

      // form helpers
      self.months = function () {
          return _.range(1, 12 + 1);
      };

      self.days = function () {
          return _.range(1, 31 + 1);
      };

      self.languages = ['English', 'Spanish', 'French'];

      self.transformChip = function (chip) {
          return chip;
      };

      function createFilterFor(query) {
          var lowercaseQuery = angular.lowercase(query);
          return function filterFn(language) {
              return language.toLowerCase().indexOf(lowercaseQuery) >= 0;
          };
      };

      self.querylanguageSearch = function (query) {
          return query ? self.languages.filter(createFilterFor(query)) : [];
      };

      self.saveTimesheet = function (frmLogTime) {
          //debugger;
          if (frmLogTime.selectLogdate.$viewValue) {
              self.timesheet.Date = frmLogTime.selectLogdate.$viewValue;
          }
          UserService.createTimesheet(self.timesheet).then(function () {

              self.getTimesheetHistory();

              frmLogTime.$setUntouched();
              frmLogTime.$setPristine();
              self.timesheet = null;
              self.timesheet = {};
              self.timesheet.IsActive = "true";
          });

      }

      self.updateTimeSheet=function(timesheet)
      {
        //  debugger;
          self.upddata = timesheet;
          UserService.updateTimeSheet(self.upddata).then(function (data) {
              $log.log('got timesheet list:', data);
              self.getTimesheetHistory();
          });
      }
      self.toggleNav = function () {
          $mdSidenav('left').toggle();
      }

      self.getTimesheetHistory = function () {
         // debugger;
          UserService.getTimesheets().then(function (data) {
              $log.log('got timesheet list:', data);
              self.timesheetList = data;
          });
      };

      // run once for initialization
      UserService.getUserDetails().then(function (data) {
       // debugger;
          self.user = data;
          self.user.Status = "Active";
          self.showSpinner = false;
      });
      self.getTimesheetHistory();

      $log.log('exiting UserCtrl');

  }]);


text:
class TableTracker(object):

    def __init__(self, path=None):
        if path is None:
            ValueError('path not specified')

        self.path = path
        self.token = None

    @property
    def token(self):
        return self.token

    @token.setter
    def token(self, token):
        self.token = token


text:
package org.spongepowered.common.data.property.store.item;

import net.minecraft.item.ItemFood;
import net.minecraft.item.ItemStack;
import org.spongepowered.api.data.property.item.SaturationProperty;
import org.spongepowered.common.data.property.store.common.AbstractItemStackPropertyStore;

import java.util.Optional;

public class SaturationPropertyStore extends AbstractItemStackPropertyStore<SaturationProperty> {

    @Override
    protected Optional<SaturationProperty> getFor(ItemStack itemStack) {
        if (itemStack.getItem() instanceof ItemFood) {
            final ItemFood food = (ItemFood) itemStack.getItem();
            // Translate's Minecraft's weird internal value to the actual saturation value
            final double saturationModifier = food.getSaturationModifier(itemStack) * food.getHealAmount(itemStack) * 2.0;
            return Optional.of(new SaturationProperty(saturationModifier));
        }
        return Optional.empty();
    }
}


text:
Release Operation
========

Update version number
--------

Note to update version number in files below:

### project/build.scala

```scala
object MyBuild extends Build {
  val Organization = "gitbucket"
  val Name = "gitbucket"
  val Version = "3.2.0" // <---- update here!!
  val ScalaVersion = "2.11.6"
  val ScalatraVersion = "2.3.1"
```

### env.sh

```bash
#!/bin/sh
export GITBUCKET_VERSION=3.3.0 # <---- update here!!
```

Generate release files
--------

Note: Release operation requires [Ant](http://ant.apache.org/) and [Maven](https://maven.apache.org/).

### Make release war file

Run `release/make-release-war.sh`. The release war file is generated into `target/scala-2.11/gitbucket.war`.

```bash
$ cd release
$ ./make-release-war.sh
```

### Deploy assembly jar file

For plug-in development, we have to publish the assembly jar file to the public Maven repository by `release/deploy-assembly-jar.sh`.

```bash
$ cd release/
$ ./deploy-assembly-jar.sh
```


text:
[![CI Status](http://img.shields.io/travis/gregttn/GTToast.svg?style=flat)](https://travis-ci.org/gregttn/GTToast)
[![Version](https://img.shields.io/cocoapods/v/GTToast.svg?style=flat)](http://cocoapods.org/pods/GTToast)
[![License](https://img.shields.io/cocoapods/l/GTToast.svg?style=flat)](http://cocoapods.org/pods/GTToast)
[![Platform](https://img.shields.io/cocoapods/p/GTToast.svg?style=flat)](http://cocoapods.org/pods/GTToast)

GTToast is a library written in Swift which allows toast notifcations to be displayed. You can create toasts with text and/or images.
There are many options available to allow you to adapt look and feel of the toast messages to your app.

![Preview](https://raw.githubusercontent.com/gregttn/GTToast/master/sample.gif)

## Usage

There are multiple ways you can display toast message:

* Simple toast

```swift
GTToast.create("your message").show()
```
This will create and show toast with default settings and your message

* Simple toast with image

```swift
GTToast.create("your message", image: yourImage).show()
```

This will create and show toast with your message and image displayed on the left.

* Custom toast

```swift
GTToast.create("your message", config: GTToastConfig(), image: yourImage).show()
```

This will create and show toast with message and custom config. You can find all properties of GTToastConfig below

* All toasts with the same configuration

You can specify global configuration for all of your toast.

```swift
let config: GTToastConfig = GTToastConfig()
let toastFactory: GTToast = GTToast(config: config)
toastFactory.create("your message").show()
toastFactory.create("your message", image: smallImage).show()
```

* Dismiss a toast

It is possible to force toast to disappear. In order to do that you will need to keep the reference to GTToastView

```swift
var toast: GTToastView = GTToast.create("foo bar")
toast.show()

// later when you are ready
toast.dismiss()
```

## Configuration

You can use GTToastConfig to configure the look of the toast. Here is a list of all possible configuration options that can be specified:

* contentInsets: UIEdgeInsets

Allows you to specify the padding of the toast. Default: *UIEdgeInsets(top: 3.0, left: 3.0, bottom: 3.0, right: 3.0)*

* cornerRadius: CGFloat

The corner radius of the toast. Default 3.0

* font: UIFont

Font used to render the text message. Default: *UIFont.systemFontOfSize(12.0)*

* textColor: UIColor

Text color of the message. Default: *UIColor.whiteColor()*

* textAlignment: NSTextAlignment

Alignment of the text. Default: *NSTextAlignment.Center*

* backgroundColor: UIColor

Background color of the toast. Default: *UIColor.blackColor().colorWithAlphaComponent(0.8)*

* animation: GTAnimation

The animation type to be used when displaying and hidding the toast. Default: *GTBottomSlideInAnimation* (see below for full list)

* displayInterval: NSTimeInterval

The amount of time the toast will be displayed for: Default: 4

* bottomMargin: CGFloat

Bottom margin of the toast. Default: 5

* imageMargins: UIEdgeInsets

The margins of the image displayed in the toast. Default: *UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)*

* imageAlignment: GTToastAlignment

Allows you to specify where image should be displayed (Top, Bottom, Left or Right). Default: *GTToastAlignment.Left*

* maxImageSize: CGSize

Specifes the max image size. The width property is only into account when image is located on the Right or Left. Similarly, the height is only applied when image in Top or Bottom. Default: *CGSize(width: 100, height: 200)*

You can specify all of the above by creating GTToastConfig

```swift
GTToastConfig(
  contentInsets: UIEdgeInsets(top:10, left: 9, bottom: 8, right: 7),
  cornerRadius: 8.0,
  font: UIFont.systemFont(ofSize: 100),
  textColor: UIColor.red,
  textAlignment: NSTextAlignment.right,
  backgroundColor: UIColor.blue.withAlphaComponent(0.8),
  animation: GTScaleAnimation(),
  displayInterval: 2,
  bottomMargin: 15.0,
  imageMargins: UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10),
  imageAlignment: GTToastAlignment.top,
  maxImageSize: CGSize(width: 100, height: 100)
)
```

Only the properties that you want to change can be provided. No need for all of them.

## GTAnimation

GTAnimation is a protocol that describes state of the view during different phases of the animation. Following are the provided implementations of it:

* GTAlphaAnimation
* GTBottomSlideInAnimation
* GTLeftSlideInAnimation
* GTRightSlideInAnimation
* GTScaleAnimation
* GTLeftInRightOutAnimation
* GTRightInLeftOutAnimation
* GTNoAnimation

## Providing your own animation

There are three methods that you must implements when providing you implementation for `GTAnimation` protocol

* `func before(view: UIView) -> Void` - State of the view before the animation begins.
* `func show(view: UIView) -> Void` - State of the view when shown on the screen.
* `func hide(view: UIView) -> Void` - State of the view when user dismissed it.

Have a look at the current implementation in `GTAnimation.swift`

## Requirements

This control is written in Swift 3. You will need at least Xcode 8.
You will need deployment target set to at least 8.0
Also this project uses CocoaPods.

## Installation

Install GTToast by using [CocoaPods](http://cocoapods.org). Include the following in your Podfile:

```ruby
use_frameworks!
pod 'GTToast'
```

## Running the project

After cloning the project you will need to run 'pod install' in the Example directory.
To view in Xcode open the GTToast.xcworkspace which is located in the Example directory.

## Author

Grzegorz Tatarzyn, gregttn@gmail.com

## License

GTToast is available under the MIT license.


text:
require 'console/table'

RSpec.describe PrinTable do

    before :example do
        @printable = PrinTable.new
    end

    context '#print_simple_table' do
        it 'should omit headers if not present' do
            headers, data = [nil, [[1, 2], [3, 4]]]
            expect(@printable.print_simple_table(headers, data)).to eq([ "1 2", "3 4" ])
            headers, data = [[], [[1, 2], [3, 4]]]
            expect(@printable.print_simple_table(headers, data)).to eq([ "1 2", "3 4" ])
        end

        it 'should generate a well idented table' do
            headers, data = [ [ "Key", "Value" ], [
                [ "fruit", "apple" ], [ "car", "porsche" ]
            ] ]
            expect(@printable.print_simple_table(headers, data)).to eq([ "Key   Value", "fruit apple", "car   porsche" ])
        end
    end

    context '#print_raw_table' do
        it 'should omit headers if not present' do
            expect(@printable.print_raw_table(nil, [])).to eq([])
            expect(@printable.print_raw_table(nil, [ [] ])).to eq([])
            expect(@printable.print_raw_table(nil, [ [ "a" ] ])).to eq([ "a" ])
            expect(@printable.print_raw_table(nil, [ [ "a", "b" ] ])).to eq([ "a b" ])
            tabledata = [
                [ "alma", "korte" ], [ "repa", "cukor" ]
            ]
            expect(@printable.print_raw_table(nil, tabledata)).to eq(["alma korte", "repa cukor"])
        end
    end

    context '#max_field_count' do
        it 'should return zero when data is omitted' do
            expect(@printable.max_field_count(nil)).to eq(0)
        end

        it 'should return the maximum number of fields found in data' do
            expect(@printable.max_field_count([])).to eq(0)
            expect(@printable.max_field_count([[]])).to eq(0)
            expect(@printable.max_field_count([[1]])).to eq(1)
            expect(@printable.max_field_count([[1], [2]])).to eq(1)
            expect(@printable.max_field_count([[1], [2, 3]])).to eq(2)
            expect(@printable.max_field_count([[1, 1, 2], []])).to eq(3)
        end
    end

    context '#max_field_length' do
        it 'should return the maximum length of fields' do
            expect(@printable.max_field_length([[]], 0)).to eq(0)
            expect(@printable.max_field_length([["1"]], 0)).to eq(1)
            expect(@printable.max_field_length([["1"]], 1)).to eq(0)
            expect(@printable.max_field_length([["123", "1234"], ["1", "123"]], 0)).to eq(3)
            expect(@printable.max_field_length([["1"], ["123", "1"]], 0)).to eq(3)
        end
    end
end


text:
OGR="/Library/Frameworks/GDAL.framework/Versions/1.8/Programs/ogr2ogr"
R=$(rm -R file_merged.*)
SHPLIST=$(find . -maxdepth 2 -mindepth 2 -type f -name '*.shp')
FIRST="true"
for SHP in $SHPLIST; do
    if [ -n "$FIRST" ]; then
        M=$($OGR file_merged.shp $SHP)
        FIRST=""
    else
        M=$($OGR -update -append file_merged.shp $SHP -nln file_merged)
    fi
done
exit 0


text:
from setuptools import setup, find_packages

def find_version(filename):
    import os
    import re

    here = os.path.dirname(os.path.abspath(__file__))
    with open(os.path.join(here, filename)) as fd:
        version_match = re.search(
            r"^__version__ = ['\"]([^'\"]*)['\"]", fd.read(), re.M
        )
        if version_match:
            return version_match.group(1)
    raise RuntimeError('Unable to find version string.')

setup(
    # Main
    name='txnd',
    version=find_version('lib/l10n/__init__.py'),
    package_dir={'': 'lib'},
    packages=find_packages('lib'),

    # Extra metadata
    author='Carlos Jenkins',
    author_email='carlos@jenkins.co.cr',
    url='http://i10n.readthedocs.org/',
    description='Improved l10n Python Module',
    long_description=open('README.rst', 'r').read(),
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: Apache Software License',
        'Operating System :: POSIX',
        'Operating System :: POSIX :: Linux',
        'Operating System :: Unix',
        'Operating System :: Microsoft :: Windows',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: Utilities',
    ],
)


text:
package com.thaleslima.android.popularmovies.domain;

/**
 * Created by thales on 18/01/17.
 */

public class Review {
    public String id;
    public String author;
    public String content;
    public String url;
}


text:
require 'set'
require_relative 'smell_configuration'

module Reek
  module Smells
    #
    # Shared responsibilities of all smell detectors.
    #
    # See
    #   - {file:docs/Basic-Smell-Options.md}
    #   - {file:docs/Code-Smells.md}
    #   - {file:docs/Configuration-Files.md}
    # for details.
    #
    # @api private
    class SmellDetector
      attr_reader :source

      # The name of the config field that lists the names of code contexts
      # that should not be checked. Add this field to the config for each
      # smell that should ignore this code element.
      EXCLUDE_KEY = 'exclude'

      # The default value for the +EXCLUDE_KEY+ if it isn't specified
      # in any configuration file.
      DEFAULT_EXCLUDE_SET = []

      class << self
        def contexts
          [:def, :defs]
        end

        def default_config
          {
            SmellConfiguration::ENABLED_KEY => true,
            EXCLUDE_KEY => DEFAULT_EXCLUDE_SET.dup
          }
        end

        def inherited(subclass)
          subclasses << subclass
        end

        def descendants
          subclasses
        end

        private

        def subclasses
          @subclasses ||= []
        end
      end

      def smell_category
        self.class.smell_category
      end

      def smell_type
        self.class.smell_type
      end

      class << self
        def smell_category
          @smell_category ||= default_smell_category
        end

        def smell_type
          @smell_type ||= default_smell_category
        end

        def default_smell_category
          name.split(/::/)[-1]
        end
      end

      attr_reader :smells_found # SMELL: only published for tests

      def initialize(source, config = self.class.default_config)
        @source = source
        @config = SmellConfiguration.new(config)
        @smells_found = []
      end

      def register(hooks)
        return unless config.enabled?
        self.class.contexts.each { |ctx| hooks[ctx] << self }
      end

      # SMELL: Getter (only used in 1 test)
      def enabled?
        config.enabled?
      end

      def configure_with(new_config)
        config.merge!(new_config)
      end

      def examine(context)
        return unless enabled_for? context
        return if exception?(context)

        sm = examine_context(context)
        self.smells_found += sm
      end

      def enabled_for?(context)
        enabled? && config_for(context)[SmellConfiguration::ENABLED_KEY] != false
      end

      def exception?(context)
        context.matches?(value(EXCLUDE_KEY, context, DEFAULT_EXCLUDE_SET))
      end

      def report_on(report)
        smells_found.each { |smell| smell.report_on(report) }
      end

      def value(key, ctx, fall_back)
        config_for(ctx)[key] || config.value(key, ctx, fall_back)
      end

      def config_for(ctx)
        ctx.config_for(self.class)
      end

      protected

      attr_writer :smells_found

      private

      private_attr_reader :config
    end
  end
end


text:
<?php

namespace greevex\gss\translator\action;

interface translatorInterface
{
    public function __construct($blockContent);

    public function getSourceCode();
}


text:
require 'simplecov'

SimpleCov.start do
  add_filter 'spec'
end

SimpleCov.use_merging false

require 'blinkytape-orb'

RSpec.configure do |config|
  config.color = true
end


text:
define([
      'jquery', 'underscore', 'backbone'
], function($, _, Backbone) {
  return Backbone.Model.extend({
    initialize: function() {
      this.set("fresh", true);
      this.set("fromDb", false);
    }
    , getValues: function(){
      return _.reduce(this.get("fields"), function(o, v, k){
        if (v["type"] == "select") {
          o[k] = _.find(v["value"], function(o){return o.selected})["value"];
        } else {
          o[k] = v["value"];
        }
        return o;
      }, {});
    }

    , idFriendlyTitle: function(){
      return this.get("title").replace(/\W/g,'').toLowerCase();
    }
    , setField: function(name, value) {
      var fields = this.get("fields")
      fields[name]["value"] = value;
      this.set("fields", fields);
    }
    , setFieldFromJson: function(name, value){

      var fields = this.get("fields")
      if(typeof fields[name] === "undefined") {
        console.log("CAUTION: one of the field is missing in ", name)
        return;
      }
      var type = fields[name]["type"]
      switch(type) {
        case "string":
          fields[name]["value"] = value
          this.set("fields", fields);
          break;
        case "checkbox":
          fields[name]["value"] = value
          this.set("fields", fields);
          break;
        case "input":
          if(fields[name]["hide"] !== "undefined" && fields[name]["hide"]) {

          } else {
             fields[name]["value"] = value
             this.set("fields", fields);
          }
          break;
        case "textarea":
          fields[name]["value"] = JSON.parse(JSON.stringify(value))
          this.set("fields", fields);
          break;
        case "textarea-split":
          var checkboxvalarr = _.map(value, function(t){return $.trim(t["label"])})
          fields[name]["value"] = checkboxvalarr
          this.set("fields", fields);
          break;
        case "select":
          var valmatch = _.find(fields[name]["value"], function(v){
            return value.startsWith(v["value"])
          });
          var valarr = _.map(fields[name]["value"], function(v){
            return {value: v["value"], label: v["label"], selected: value.startsWith(v["value"])
                    ,needExtra :  v["needExtra"]  }
          });

          if(typeof valmatch["needExtra"] !=="undefined" && valmatch["needExtra"]) {
            fields["customField"]["value"] = value.substring(value.indexOf("(")+2, value.lastIndexOf(")")-1)
          }
          fields[name]["value"] = valarr;
          this.set("fields", fields);
          break;
      }

    }
    , mergeField: function(snippet){
	    var fields = this.get("fields")
	    var thatFields = snippet.get("fields")
	    this.set("fields", _.extend(fields, thatFields))

      }

  });
});


text:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item>
        <shape android:shape="oval" >
            <solid android:color="@color/bg_color_2" />
        </shape>
    </item>
</layer-list>


text:
namespace foo {
}

module bar {
}

declare module buzz {
}

declare module "hoge" {
}
declare module 'fuga' {
}

namespace foo.bar {
}
namespace foo.bar.baz {
}
namespace foo {
    namespace bar.baz {
    }
}

namespace foo.bar {
    module baz {
        namespace buzz {
        }
    }
}

module foo.bar {
    namespace baz {
        module buzz {
        }
    }
}

namespace name.namespace {
}
namespace namespace.name {
}

// intentionally malformed for test cases, do not format
declare module declare
.dec{}
declare  module dec . declare  {
}

module  mod.module{}
module module.mod
{
}


text:
package phoneticruletype

import "strings"

// https://github.com/elastic/elasticsearch-specification/blob/4ca0cc05d3ae3fa06c2cd7be91905b656a474334/specification/_types/analysis/phonetic-plugin.ts#L59-L62
type PhoneticRuleType struct {
	Name string
}

var (
	Approx = PhoneticRuleType{"approx"}

	Exact = PhoneticRuleType{"exact"}
)

func (p PhoneticRuleType) MarshalText() (text []byte, err error) {
	return []byte(p.String()), nil
}

func (p *PhoneticRuleType) UnmarshalText(text []byte) error {
	switch strings.ToLower(string(text)) {

	case "approx":
		*p = Approx
	case "exact":
		*p = Exact
	default:
		*p = PhoneticRuleType{string(text)}
	}

	return nil
}

func (p PhoneticRuleType) String() string {
	return p.Name
}


text:
module Stylesheet
  class StyleSheetList
    extend Forwardable
    def_delegators :@styles, :length, :size, :[], :each, :to_s
    include Enumerable

    def initialize(styles)
      @styles = styles.map {|args| CssStyleSheet.new(args) }
    end

    def item(index)
      @styles[index]
    end
  end
end


text:
require 'rubyneat'
require 'rubyneat/cli'
require 'bunny'
require 'thor'
require 'rubyneat'
require 'json'
require 'awesome_print'
require 'parser'
require 'unparser'
require_relative 'rubyneat_rabbitmq/sexp'
require_relative 'rubyneat_rabbitmq/cli'
require_relative 'rubyneat_rabbitmq/dsl'
require_relative 'rubyneat_rabbitmq/monkey'


text:
Datetimepicker
==============

## Introduction

Class to create a Datetimepicker [xdan/datetimepicker](https://github.com/xdan/datetimepicker) with more options like date conversion on the fly :

* Timestamp to Fr
* Date US to Fr
* Timestamp to Us
* ...

## Requirements

* Datetimepicker 2.x : [xdan/datetimepicker](https://github.com/xdan/datetimepicker)
* jQuery >= 1.7.2 : [jquery](https://github.com/jquery/jquery)

## Installation

### With [bower](http://bower.io/) (RECOMMENDED)
`bower install datetimepicker_ozee`

In HTML or PHP page insert diffenrents scripts :
```
<link rel="stylesheet" href="bower_components/datetimepicker/jquery.datetimepicker.css">

<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/datetimepicker/jquery.datetimepicker.js"></script>
<script src="bower_components/datetimepicker_ozee/class.datetimepicker_ozee.js"></script>
```

### Or Download sources on GitHub
Copy "class.datetimepicker_ozee.js" file and "bower_components" folder into project

In HTML or PHP page insert diffenrents scripts :
```
<link rel="stylesheet" href="bower_components/datetimepicker/jquery.datetimepicker.css">

<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/datetimepicker/jquery.datetimepicker.js"></script>
<script src="class.datetimepicker_ozee.js"></script>
```

## Usage

`new OZEE.Datepicker('input_id', options);`

### Options :
Object Json : `{}`
- format : date format used in datepicker (default Fr format "d/m/Y H:i")
- formatBDD : date format used in database (default Us format "Y-m-d H:i:s")
- lang : datepicker language (default "Fr")
- [See all options](http://xdsoft.net/jqplugins/datetimepicker/)

## Examples

- Default value is a Date US "Y-m-d H:i:s" but display a date FR "d/m/Y H:i" in datetimepicker
`new OZEE.Datepicker('input_id');`

- Default value is a Timestamp but display a date FR "d/m/Y H:i" in datetimepicker
`new OZEE.Datepicker('input_id', {formatBDD:'timestamp'});`

- More exemples : see "index.html" and "demo.js"


text:
package org.tt.core.sql;

/**
 * AbstractQueries is the interface that contains method descriptions for
 * all the needed operations in AbstractSQLManager. Simply, queries definitions.
 *

 * We use abstraction to allow developers change the provider of the database
 * and use, for instance MySQL instead of H2 or has
 * different implementation and realization of these queries.
 *

 * For more information please follow `see` link.
 *
 * @author Vlad Slepukhin
 * @see org.tt.core.sql.H2Queries
 * @since 1.0
 */
public interface AbstractQueries {

    String getLastID();

    String qAddDepartment();

    String qAddGroups();

    String qAddDateTime();

    String qAddSubject();

    String qAddTeacher();

    String qAddLocation();

    String qAddSubGroup();

    String qAddLessonRecord();

    String qGetDepartments();

    String qGetDepartmentTags();

    String qGetDepartmentMessage();

    String qGetGroups();

    String qGetGroupID();

    String qGetGroupName();

    String qGetDateTimeID();

    String qGetSubjectID();

    String qGetTeacherID();

    String qGetLocationID();

    String qGetSubGroupID();

    String qGetParityID();

    String qGetActivityID();

    String qGetTT();

    String qGetLessonList();

    String qDeleteDepartment();

    String qDeleteGroup();

    String qDeleteGroupSubgroups();

    String qDeleteGroupLessons();

    String qDeleteLessonEntry();

    String qGlobalDelete();

    String qIDRestart();

    String qUpdateDepartmentMessage();

    String qUpdateDepartmentData();

    String qDepartmentExists();

    String qGroupIDExists();

    String qSubjectExists();

    String qGroupTTExists();
}


text:
#include "RKFWCaptureSettings.h"

#include <sstream>

namespace RKFW
{

CaptureSettings::CaptureSettings()
	: mImageContent(ImageContent_Color),
	  mImageFormat(),
	  mFrameRate(0),
	  mFocalDistanceInPixels(0)
{
}
CaptureSettings::CaptureSettings( ImageContentEnum imageContent, const ImageFormat& imageFormat, unsigned int frameRate, float focalDistanceInPixels )
	: mImageContent( imageContent ),
	  mImageFormat(imageFormat),
	  mFrameRate(frameRate),
	  mFocalDistanceInPixels(focalDistanceInPixels)
{
}

bool CaptureSettings::operator==( const CaptureSettings& other ) const
{
	return	mImageContent==other.mImageContent &&
			mImageFormat==other.mImageFormat &&
			mFrameRate==other.mFrameRate &&
			mFocalDistanceInPixels==other.mFocalDistanceInPixels;
}

std::string CaptureSettings::toString() const
{
	std::stringstream stream;
	if ( mImageContent==ImageContent_Color )
		stream << "Color";
	else if ( mImageContent==ImageContent_Infrared )
		stream << "Infrared";
	else if ( mImageContent==ImageContent_Depth )
		stream << "Depth";
	stream << ", " << mImageFormat.toString() << ", " << mFrameRate << " frames/s " << mFocalDistanceInPixels << " px focal distance";
	return stream.str();
}

}


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

  <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
  <meta name=viewport content="width=device-width, initial-scale=0.3333334">
  <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4"/>
  <title>ImageMagick: MagickCore, C API for ImageMagick: Count the Colors in an Image</title>
  <meta http-equiv="content-language" content="en-US"/>
  <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
  <meta http-equiv="reply-to" content="magick-users@imagemagick.org"/>
  <meta name="application-name" content="ImageMagick"/>
  <meta name="description" content="A collection of tools and libraries to read, write, and manipulate an image in any of the more popular image formats."/>
  <meta name="application-url" content="http://www.imagemagick.org"/>
  <meta name="generator" content="PHP"/>
  <meta name="keywords" content="magickcore, c, api, for, imagemagick:, count, the, colors, in, an, image, convert, edit, compose, image, pixel"/>
  <meta name="rating" content="GENERAL"/>
  <meta name="robots" content="INDEX, FOLLOW"/>
  <meta name="generator" content="ImageMagick Studio LLC"/>
  <meta name="author" content="ImageMagick Studio LLC"/>
  <meta name="revisit-after" content="2 DAYS"/>
  <meta name="resource-type" content="document"/>
  <meta name="copyright" content="Copyright (c) 1999-2012 ImageMagick Studio LLC"/>
  <meta name="distribution" content="Global"/>
  <link rel="icon" href="../../images/wand.png"/>
  <link rel="shortcut icon" href="../../images/wand.ico" type="images/x-icon"/>
  <link rel="canonical" href="http://www.imagemagick.org" />
  <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf"/>

  <link rel="stylesheet" href="http://www.imagemagick.org/fancybox/source/jquery.fancybox.css?v=2.1.5" type="text/css" media="screen" />

  <link rel="stylesheet" href="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-buttons.css?v=1.0.5" type="text/css" media="screen" />

  <link rel="stylesheet" href="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-thumbs.css?v=1.0.7" type="text/css" media="screen" />

  About ImageMagick

  Binary Releases

    Unix

    Mac OS X

    iOS

    Windows

  Command-line Tools

    Processing

    Options

    Usage

  Program Interfaces

    MagickWand

    MagickCore

    PerlMagick

    Magick++

   Install from Source

    Unix

    Windows

  Resources

  Architecture

  Download

  Search

  Site Map

  Links

Module color Methods

[GetColorInfoList • GetColorList • ListColorInfo • LoadColorList • QueryColorCompliance • QueryColorDatabase • QueryColorname • QueryMagickColorCompliance • QueryMagickColor • QueryMagickColorname]

GetColorInfoList

GetColorInfoList() returns any colors that match the specified pattern.

The format of the GetColorInfoList function is:

  const ColorInfo **GetColorInfoList(const char *pattern,
    size_t *number_colors,ExceptionInfo *exception)

A description of each parameter follows:

pattern

Specifies a pointer to a text string containing a pattern.

number_colors

This integer returns the number of colors in the list.

exception

return any errors or warnings in this structure.

GetColorList

GetColorList() returns any colors that match the specified pattern.

The format of the GetColorList function is:

  char **GetColorList(const char *pattern,size_t *number_colors,
    ExceptionInfo *exception)

A description of each parameter follows:

pattern

Specifies a pointer to a text string containing a pattern.

number_colors

This integer returns the number of colors in the list.

exception

return any errors or warnings in this structure.

ListColorInfo

ListColorInfo() lists color names to the specified file.  Color names are a convenience.  Rather than defining a color by its red, green, and blue intensities just use a color name such as white, blue, or yellow.

The format of the ListColorInfo method is:

  MagickBooleanType ListColorInfo(FILE *file,ExceptionInfo *exception)

A description of each parameter follows.

file

List color names to this file handle.

exception

return any errors or warnings in this structure.

LoadColorList

LoadColorList() loads one or more color configuration file which provides a mapping between color attributes and a color name.

The format of the LoadColorLists method is:

  MagickBooleanType LoadColorLists(const char *filename,
    ExceptionInfo *exception)

A description of each parameter follows:

filename

the font file name.

exception

return any errors or warnings in this structure.

QueryColorCompliance

QueryColorCompliance() returns the red, green, blue, and opacity intensities for a given color name.

The format of the QueryColorCompliance method is:

  MagickBooleanType QueryColorCompliance(const char *name,
    const ComplianceType compliance,PixelPacket *color,
    ExceptionInfo *exception)

A description of each parameter follows:

name

the color name (e.g. white, blue, yellow).

compliance

Adhere to this color standard: SVG, X11, or XPM.

color

the red, green, blue, and opacity intensities values of the named color in this structure.

exception

return any errors or warnings in this structure.

QueryColorDatabase

QueryColorDatabase() returns the red, green, blue, and opacity intensities for a given color name.

The format of the QueryColorDatabase method is:

  MagickBooleanType QueryColorDatabase(const char *name,PixelPacket *color,
    ExceptionInfo *exception)

A description of each parameter follows:

name

the color name (e.g. white, blue, yellow).

color

the red, green, blue, and opacity intensities values of the named color in this structure.

exception

return any errors or warnings in this structure.

QueryColorname

QueryColorname() returns a named color for the given color intensity.  If an exact match is not found, a rgb() color is returned instead.

The format of the QueryColorname method is:

  MagickBooleanType QueryColorname(const Image *image,
    const PixelPacket *color,const ComplianceType compliance,char *name,
    ExceptionInfo *exception)

A description of each parameter follows.

image

the image.

color

the color intensities.

compliance

Adhere to this color standard: SVG, X11, or XPM.

name

Return the color name or hex value.

exception

return any errors or warnings in this structure.

QueryMagickColorCompliance

QueryMagickColorCompliance() returns the red, green, blue, and opacity intensities for a given color name and standards compliance.

The format of the QueryMagickColor method is:

  MagickBooleanType QueryMagickColorCompilence(const char *name,
    const ComplianceType compliance,MagickPixelPacket *color,
    ExceptionInfo *exception)

A description of each parameter follows:

name

the color name (e.g. white, blue, yellow).

compliance

Adhere to this color standard: SVG, X11, or XPM.

color

the red, green, blue, and opacity intensities values of the named color in this structure.

exception

return any errors or warnings in this structure.

QueryMagickColor

QueryMagickColor() returns the red, green, blue, and opacity intensities for a given color name.

The format of the QueryMagickColor method is:

  MagickBooleanType QueryMagickColor(const char *name,
    MagickPixelPacket *color,ExceptionInfo *exception)

A description of each parameter follows:

name

the color name (e.g. white, blue, yellow).

color

the red, green, blue, and opacity intensities values of the named color in this structure.

exception

return any errors or warnings in this structure.

QueryMagickColorname

QueryMagickColorname() returns a named color for the given color intensity. If an exact match is not found, a hex value is returned instead.  For example an intensity of rgb:(0,0,0) returns black whereas rgb:(223,223,223) returns #dfdfdf.

The format of the QueryMagickColorname method is:

  MagickBooleanType QueryMagickColorname(const Image *image,
    const PixelPacket *color,const ComplianceType compliance,char *name,
    ExceptionInfo *exception)

A description of each parameter follows.

image

the image.

color

the color intensities.

Compliance

Adhere to this color standard: SVG, X11, or XPM.

name

Return the color name or hex value.

exception

return any errors or warnings in this structure.

      Discourse Server •
      Public Key •
      Studio •
      JqMagick

  ©  1999-2015 ImageMagick Studio LLC
   Contact the Wizards


text:
package ru.job4j.list;

import org.junit.Test;

import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;

/**
 * Created for testing class DynamicArray.
 *
 * @author abondarev.
 * @since 02.09.2017.
 */
public class DynamicArrayTest {

    /**
     * Test method add().
     */
    @Test
    public void whenAddElementThenSizeIncreaseByOne() {
        DynamicArray<Integer> da = new DynamicArray<>();
        int startSize = da.size();
        da.add(4);
        int result = da.size();
        assertThat(result, is(startSize + 1));
    }

    /**
     * Test method get() when element index in bounds of container.
     */
    @Test
    public void whenCalledGetInBoundsOfContainerShouldReturnElement() {
        DynamicArray<String> da = new DynamicArray<>();
        da.add("element");
        String result = da.get(0);
        assertThat(result, is("element"));
    }

    /**
     * Tests method get() when index out of bounds of the container.
     */
    @Test(expected = IndexOutOfBoundsException.class)
    public void whenIndexOurOfBoundsShouldThrowsException() {
        DynamicArray<String> da = new DynamicArray<>();
        da.add("element");
        String result = da.get(1);
    }

    /**
     * Test dynamics of container. If capacity not enough then capacity
     * should be increased.
     */
    @Test
    public void testDynamicsOfContainer() {
        DynamicArray<Integer> da = new DynamicArray<>(1);
        da.add(3);
        int size = da.size();
        da.add(53);
        int result = da.size();
        assertThat(result, is(size + 1));
    }
}


text:
package resty

// Version # of resty
const Version = "1.9.1"


text:
def is_aware(value): # taken from django/utils/timezone.py
    """
    Determines if a given datetime.datetime is aware.

    The logic is described in Python's docs:
    http://docs.python.org/library/datetime.html#datetime.tzinfo
    """
    return value.tzinfo is not None and value.tzinfo.utcoffset(value) is not None


text:
'use strict';

var util = require('speedt-utils');

var conf = require('../../../settings');

var biz = {
	customer: require('../../../../biz/customer'),
	corp: require('../../../../biz/house/corp')
};

/**
 *
 * @params
 * @return
 */
exports.indexUI = function(req, res, next){
	biz.corp.findAll(function (err, docs){
		// TODO
		res.render('manage/house/corp/Index', {
			conf: conf,
			title: req.query.name +' | '+ conf.corp.name,
			description: '',
			keywords: ',dolalive,html5',
			data: {
				title: req.query.name,
				projects: docs
			}
		});
	});
};

/**
 *
 * @params
 * @return
 */
exports.editUI = function(req, res, next){
	biz.corp.getById(req.query.id, function (err, doc){
		if(err) return next(err);
		// TODO
		res.render('manage/house/corp/Edit', {
			conf: conf,
			title: '编辑 | '+ req.query.name +' | '+ conf.corp.name,
			description: '',
			keywords: ',dolalive,html5',
			data: {
				corp: doc,
				title: req.query.name
			}
		});
	})
};

/**
 *
 * @params
 * @return
 */
exports.edit = function(req, res, next){
	var result = { success: false },
		data = req._data;
	// TODO
	result.success = true;
	res.send(result);
};


text:
package nl.bhogerheijde.example.rxmvp.di;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

import javax.inject.Scope;

/**
 * Flickr app built with RxJava, Dagger and MVP pattern.
 *
 * @author Boyd Hogerheijde
 */
@Scope
@Retention(RetentionPolicy.RUNTIME)
public @interface PerActivity {
}


text:
using Chloe.AzureSearch.Cli.Abstractions.Native;
using System;

namespace Chloe.AzureSearch.Cli.Abstractions
{
    public static class RuntimeEnvironment
    {
        private static readonly string OverrideEnvironmentVariableName = "DOTNET_RUNTIME_ID";

        public static Platform OperatingSystemPlatform { get; } = PlatformApis.GetOSPlatform();

        public static string OperatingSystemVersion { get; } = PlatformApis.GetOSVersion();

        public static string OperatingSystem { get; } = PlatformApis.GetOSName();

        public static string RuntimeArchitecture { get; } = GetArch();

        private static string GetArch()
        {
#if NET451
            return Environment.Is64BitProcess ? "x64" : "x86";
#else
            return IntPtr.Size == 8 ? "x64" : "x86";
#endif
        }

        public static string GetRuntimeIdentifier()
        {
            return
                Environment.GetEnvironmentVariable(OverrideEnvironmentVariableName) ??
                (GetRIDOS() + GetRIDVersion() + GetRIDArch());
        }

        private static string GetRIDArch()
        {
            if (!string.IsNullOrEmpty(RuntimeArchitecture))
            {
                return $"-{RuntimeArchitecture.ToLowerInvariant()}";
            }
            return string.Empty;
        }

        private static string GetRIDVersion()
        {
            // Windows RIDs do not separate OS name and version by "." due to legacy
            // Others do, that's why we have the "." prefix on them below
            switch (OperatingSystemPlatform)
            {
                case Platform.Windows:
                    return GetWindowsProductVersion();
                case Platform.Linux:
                    return $".{OperatingSystemVersion}";
                case Platform.Darwin:
                    return $".{OperatingSystemVersion}";
                default:
                    return string.Empty; // Unknown Platform? Unknown Version!
            }
        }

        private static string GetWindowsProductVersion()
        {
            var ver = Version.Parse(OperatingSystemVersion);
            if (ver.Major == 6)
            {
                if (ver.Minor == 1)
                {
                    return "7";
                }
                else if (ver.Minor == 2)
                {
                    return "8";
                }
                else if (ver.Minor == 3)
                {
                    return "81";
                }
            }
            else if (ver.Major == 10 && ver.Minor == 0)
            {
                // Not sure if there will be  10.x (where x > 0) or even 11, so let's be defensive.
                return "10";
            }
            return string.Empty; // Unknown version
        }

        private static string GetRIDOS()
        {
            switch (OperatingSystemPlatform)
            {
                case Platform.Windows:
                    return "win";
                case Platform.Linux:
                    return OperatingSystem.ToLowerInvariant();
                case Platform.Darwin:
                    return "osx";
                default:
                    return "unknown";
            }
        }
    }
}


text:
title:  Studiehjälp
date:  11/02/2022
---

Läs Ellen White: "Kärlekens förkunnare", s. 403–407 i Genom vatten och eld och "Judas", s. 665–672 i Messias.

"Kampen mot det egna jaget är den svåraste kamp som vi någonsin måste utkämpa. Det är inte lätt att lämna allt åt Gud och böja sig under hans vilja. Det kräver inre kamp. Vi måste överlämna oss helt, innan vi kan bli förnyade till ett heligt liv" (Ellen White: Vägen till Kristus, s. 60).

"Johannes ville bli lik Jesus. Jesus omskapande kärlek påverkade honom så att han också blev mild och ödmjuk. Hans eget jag doldes i Jesus. Han överlämnade sig åt detta underbara liv i högre grad än någon av sina medarbetare …

Det var Johannes djupa kärlek till Kristus som gjorde att han alltid ville hålla sig tätt intill honom. Frälsaren älskade alla de tolv apostlarna, men Johannes var mest mottaglig för hans kärlek. Han var yngre än de andra, och han visade mer av ett barns enkla tillit när han öppnade sitt sinne för Jesus. På så sätt fick han en mycket nära gemenskap med Jesus, och genom honom förmedlades Frälsarens mest andefyllda undervisning till folket …

Från hans ansikte strålade Guds härlighet. Helgelsens skönhet hade förvandlat honom, och den lyste med en Kristuslik klarhet från hans ansikte. Han betraktade Frälsaren med beundran och kärlek tills hans enda önskan blev att likna honom och att umgås med honom. Med hela sitt väsen återspeglade han Mästarens egenskaper" (Ellen White: Genom vatten och eld, s. 407, 408)

**Samtalsstart**

Ibland kan vi känna oss missmodiga och kanske förlora en del av vår tillit till Gud. Vad kan vi göra då för att få tillbaka den tilliten?

**Förbön**

Be för människor du känner som du vet behöver få uppleva Guds förvandlande kärlek och nåd i deras liv.

**Samtalsfrågor**

`Johannes, den älskade lärjungens, och Judas Iskariots liv utgör viktiga kontraster. När Jesus såg Johannes och hans bror kallade han dem Boanerges, åskans söner. Johannes hade stora brister. Judas hade också brister men de var inte mer dramatiska eller allvarliga än Johannes. Varför förvandlades Johannes till Jesus avbild medan Judas öde blev så annorlunda? Vad var skillnaden?`

`Jesus inbjuder de troende att ta sitt kors och följa honom. Vad är det för skillnad mellan att få lida för korsets skull och att utstå misshandel och trakasserier av andra orsaker? Varför är det viktigt att skilja på dessa?`

`Varför begär Gud fullständig överlåtelse av våra liv till honom? Vad är förhållandet mellan fri vilja och frälsning?`


text:
'use strict';

var BaseRenderer = require('power-assert-renderer-base');
var inherits = require('util').inherits;
var forEach = require('core-js/library/fn/array/for-each');
var stringifier = require('stringifier');
var stringWidth = require('power-assert-util-string-width');
var assign = require('core-js/library/fn/object/assign');
var defaultOptions = require('./lib/default-options');

/**
 * options.stringify [function]
 * options.maxDepth [number]
 * options.lineSeparator [string]
 * options.anonymous [string]
 * options.circular [string]
 *
 * options.widthOf [function]
 * options.ambiguousEastAsianCharWidth [number]
 */
function DiagramRenderer (config) {
    BaseRenderer.call(this);
    this.config = assign({}, defaultOptions(), config);
    this.events = [];
    if (typeof this.config.stringify === 'function') {
        this.stringify = this.config.stringify;
    } else {
        this.stringify = stringifier(this.config);
    }
    if (typeof this.config.widthOf === 'function') {
        this.widthOf = this.config.widthOf;
    } else {
        this.widthOf = (this.config.ambiguousEastAsianCharWidth === 1) ? stringWidth.narrow : stringWidth;
    }
    this.initialVertivalBarLength = 1;
}
inherits(DiagramRenderer, BaseRenderer);

DiagramRenderer.prototype.onStart = function (context) {
    this.assertionLine = context.source.content;
    this.initializeRows();
};

DiagramRenderer.prototype.onData = function (esNode) {
    if (!esNode.isCaptured) {
        return;
    }
    this.events.push({value: esNode.value, leftIndex: esNode.range[0]});
};

DiagramRenderer.prototype.onEnd = function () {
    this.events.sort(rightToLeft);
    this.constructRows(this.events);
    var _this = this;
    forEach(this.rows, function (columns) {
        _this.write(columns.join(''));
    });
};

DiagramRenderer.prototype.initializeRows = function () {
    this.rows = [];
    for (var i = 0; i <= this.initialVertivalBarLength; i += 1) {
        this.addOneMoreRow();
    }
};

DiagramRenderer.prototype.newRowFor = function (assertionLine) {
    return createRow(this.widthOf(assertionLine), ' ');
};

DiagramRenderer.prototype.addOneMoreRow = function () {
    this.rows.push(this.newRowFor(this.assertionLine));
};

DiagramRenderer.prototype.lastRow = function () {
    return this.rows[this.rows.length - 1];
};

DiagramRenderer.prototype.renderVerticalBarAt = function (columnIndex) {
    var i, lastRowIndex = this.rows.length - 1;
    for (i = 0; i < lastRowIndex; i += 1) {
        this.rows[i].splice(columnIndex, 1, '|');
    }
};

DiagramRenderer.prototype.renderValueAt = function (columnIndex, dumpedValue) {
    var i, width = this.widthOf(dumpedValue);
    for (i = 0; i < width; i += 1) {
        this.lastRow().splice(columnIndex + i, 1, dumpedValue.charAt(i));
    }
};

DiagramRenderer.prototype.isOverlapped = function (prevCapturing, nextCaputuring, dumpedValue) {
    return (typeof prevCapturing !== 'undefined') && this.startColumnFor(prevCapturing) <= (this.startColumnFor(nextCaputuring) + this.widthOf(dumpedValue));
};

DiagramRenderer.prototype.constructRows = function (capturedEvents) {
    var that = this;
    var prevCaptured;
    forEach(capturedEvents, function (captured) {
        var dumpedValue = that.stringify(captured.value);
        if (that.isOverlapped(prevCaptured, captured, dumpedValue)) {
            that.addOneMoreRow();
        }
        that.renderVerticalBarAt(that.startColumnFor(captured));
        that.renderValueAt(that.startColumnFor(captured), dumpedValue);
        prevCaptured = captured;
    });
};

DiagramRenderer.prototype.startColumnFor = function (captured) {
    return this.widthOf(this.assertionLine.slice(0, captured.leftIndex));
};

function createRow (numCols, initial) {
    var row = [], i;
    for(i = 0; i < numCols; i += 1) {
        row[i] = initial;
    }
    return row;
}

function rightToLeft (a, b) {
    return b.leftIndex - a.leftIndex;
}

module.exports = DiagramRenderer;


text:
"""
    REST API Documentation for the NRS TFRS Credit Trading Application

    The Transportation Fuels Reporting System is being designed to streamline compliance reporting for transportation fuel suppliers in accordance with the Renewable & Low Carbon Fuel Requirements Regulation.

    OpenAPI spec version: v1

    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.
"""

import datetime

from django.db import models
from django.utils import timezone

class CreditTradeType(models.Model):
    theType = models.CharField(max_length=255, blank=True, null=True)
    description = models.CharField(max_length=255, blank=True, null=True)
    effectiveDate = models.DateField()
    expirationDate = models.DateField()
    displayOrder = models.IntegerField()
    isGovOnlyType = models.BooleanField()


text:
#import <Foundation/Foundation.h>
/**
 *  The SFAODataParameter class contains OData parameter key and its corresponding value.
 */
@interface SFAODataParameter : NSObject
/**
 *  OData parameter key.
 */
@property (nonatomic, copy) NSString *key;
/**
 *  OData parameter value.
 */
@property (nonatomic, copy) NSString *value;
/**
 *  BOOL value indicating if value needs to be encoded. Default is NO. This only has effect if key is nil or empty.
 */
@property (nonatomic) BOOL encodeValue;
/**
 *  Initializes SFAODataParameter with provided parameters.
 *
 *  @param aKey      NSString containing key.
 *  @param val       NSString containing value.
 *  @param encodeVal BOOL value of encodeValue.
 *
 *  @return Returns initialized SFAODataParameter object or nil if an object could not be created for some reason.
 */
- (instancetype)initWithKey:(NSString *)aKey value:(NSString *)val encodeValue:(BOOL)encodeVal;
/**
 *  Initializes SFAODataParameter with provided parameters.
 *
 *  @param val       NSString containing value.
 *  @param encodeVal BOOL value of encodeValue.
 *
 *  @return Returns initialized SFAODataParameter object or nil if an object could not be created for some reason.
 */
- (instancetype)initWithValue:(NSString *)val encodeValue:(BOOL)encodeVal;
/**
 *  Initializes SFAODataParameter with provided parameters.
 *
 *  @param aKey       NSString containing key.
 *  @param val        NSString containing value.
 *
 *  @return Returns initialized SFAODataParameter object or nil if an object could not be created for some reason.
 */
- (instancetype)initWithKey:(NSString *)key value:(NSString *)val;
/**
 *  Create a NSString suitable for use in URL/URI, replacing certain characters with the equivalent percent escape sequence if needed.
 *
 *  @return Returns NSString suitable for use in URL/URI.
 */
- (NSString *)toStringForUri;

@end


text:
package gobblin.example.simplejson;

import java.io.IOException;
import java.util.List;

import com.google.common.base.Splitter;
import com.google.common.collect.Lists;

import gobblin.configuration.ConfigurationKeys;
import gobblin.configuration.SourceState;
import gobblin.configuration.WorkUnitState;
import gobblin.source.Source;
import gobblin.source.extractor.Extractor;
import gobblin.source.workunit.Extract;
import gobblin.source.workunit.WorkUnit;

/**
 * An implementation of {@link Source} for the simple JSON example.
 *
 * <p>
 *   This source creates one {@link gobblin.source.workunit.WorkUnit}
 *   for each file to pull and uses the {@link SimpleJsonExtractor} to pull the data.
 * </p>
 *
 * @author Yinan Li
 */
@SuppressWarnings("unused")
public class SimpleJsonSource implements Source<String, String> {

  public static final String SOURCE_FILE_KEY = "source.file";

  @Override
  public List<WorkUnit> getWorkunits(SourceState state) {
    List<WorkUnit> workUnits = Lists.newArrayList();

    if (!state.contains(ConfigurationKeys.SOURCE_FILEBASED_FILES_TO_PULL)) {
      return workUnits;
    }

    // Create a single snapshot-type extract for all files
    Extract extract = new Extract(Extract.TableType.SNAPSHOT_ONLY,
        state.getProp(ConfigurationKeys.EXTRACT_NAMESPACE_NAME_KEY, "ExampleNamespace"), "ExampleTable");

    String filesToPull = state.getProp(ConfigurationKeys.SOURCE_FILEBASED_FILES_TO_PULL);
    for (String file : Splitter.on(',').omitEmptyStrings().split(filesToPull)) {
      // Create one work unit for each file to pull
      WorkUnit workUnit = WorkUnit.create(extract);
      workUnit.setProp(SOURCE_FILE_KEY, file);
      workUnits.add(workUnit);
    }

    return workUnits;
  }

  @Override
  public Extractor<String, String> getExtractor(WorkUnitState state)
      throws IOException {
    return new SimpleJsonExtractor(state);
  }

  @Override
  public void shutdown(SourceState state) {
    // Nothing to do
  }
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<Code_Passenger xmlns="http://www.opentravel.org/OTM/Common/v0">ADT</Code_Passenger>


text:
title: Map.prototype.forEach
---
## Map.prototype.forEach

Executes the provided function once per each key/value pair in the `Map` object, in insertion order.
Returns `undefined`.

## Syntax
```javascript
myMap.forEach(callback, thisArg)
```

## Parameters
**callback** Function to execute for each element.
**thisArg** Value to use as this when executing callback.

##Example
```javascript
const myMap = new Map();
myMap.set('foo',1);
myMap.set('bar',2);
myMap.set('baz',3);

function valueLogger(value, key, map){
    console.log(`${value}`);
}

myMap.forEach(valueLogger);
// 1
// 2
// 3
```