text:
.class public Landroid/support/constraint/solver/ArrayRow;
.super Ljava/lang/Object;
.source "ArrayRow.java"

# static fields
.field private static final DEBUG:Z

# instance fields
.field constantValue:F

.field isSimpleDefinition:Z

.field used:Z

.field variable:Landroid/support/constraint/solver/SolverVariable;

.field final variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

# direct methods
.method public constructor <init>(Landroid/support/constraint/solver/Cache;)V
    .registers 4
    .param p1, "cache"    # Landroid/support/constraint/solver/Cache;

    .prologue
    const/4 v1, 0x0

    .line 30
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 22
    const/4 v0, 0x0

    iput-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variable:Landroid/support/constraint/solver/SolverVariable;

    .line 23
    const/4 v0, 0x0

    iput v0, p0, Landroid/support/constraint/solver/ArrayRow;->constantValue:F

    .line 24
    iput-boolean v1, p0, Landroid/support/constraint/solver/ArrayRow;->used:Z

    .line 28
    iput-boolean v1, p0, Landroid/support/constraint/solver/ArrayRow;->isSimpleDefinition:Z

    .line 31
    new-instance v0, Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-direct {v0, p0, p1}, Landroid/support/constraint/solver/ArrayLinkedVariables;-><init>(Landroid/support/constraint/solver/ArrayRow;Landroid/support/constraint/solver/Cache;)V

    iput-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    .line 32
    return-void
.end method

# virtual methods
.method public addError(Landroid/support/constraint/solver/SolverVariable;Landroid/support/constraint/solver/SolverVariable;)Landroid/support/constraint/solver/ArrayRow;
    .registers 5
    .param p1, "error1"    # Landroid/support/constraint/solver/SolverVariable;
    .param p2, "error2"    # Landroid/support/constraint/solver/SolverVariable;

    .prologue
    .line 284
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    const/high16 v1, 0x3f800000    # 1.0f

    invoke-virtual {v0, p1, v1}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 285
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    const/high16 v1, -0x40800000    # -1.0f

    invoke-virtual {v0, p2, v1}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 286
    return-object p0
.end method

.method addSingleError(Landroid/support/constraint/solver/SolverVariable;I)Landroid/support/constraint/solver/ArrayRow;
    .registers 5
    .param p1, "error"    # Landroid/support/constraint/solver/SolverVariable;
    .param p2, "sign"    # I

    .prologue
    .line 155
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    int-to-float v1, p2

    invoke-virtual {v0, p1, v1}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 156
    return-object p0
.end method

.method createRowCentering(Landroid/support/constraint/solver/SolverVariable;Landroid/support/constraint/solver/SolverVariable;IFLandroid/support/constraint/solver/SolverVariable;Landroid/support/constraint/solver/SolverVariable;I)Landroid/support/constraint/solver/ArrayRow;
    .registers 12
    .param p1, "variableA"    # Landroid/support/constraint/solver/SolverVariable;
    .param p2, "variableB"    # Landroid/support/constraint/solver/SolverVariable;
    .param p3, "marginA"    # I
    .param p4, "bias"    # F
    .param p5, "variableC"    # Landroid/support/constraint/solver/SolverVariable;
    .param p6, "variableD"    # Landroid/support/constraint/solver/SolverVariable;
    .param p7, "marginB"    # I

    .prologue
    const/high16 v3, -0x40800000    # -1.0f

    const/high16 v2, 0x3f800000    # 1.0f

    .line 238
    if-ne p2, p5, :cond_18

    .line 242
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v0, p1, v2}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 243
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v0, p6, v2}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 244
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    const/high16 v1, -0x40000000    # -2.0f

    invoke-virtual {v0, p2, v1}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 280
    :cond_17
    :goto_17
    return-object p0

    .line 247
    :cond_18
    const/high16 v0, 0x3f000000    # 0.5f

    cmpl-float v0, p4, v0

    if-nez v0, :cond_3c

    .line 254
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v0, p1, v2}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 255
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v0, p2, v3}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 256
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v0, p5, v3}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 257
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v0, p6, v2}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 258
    if-gtz p3, :cond_36

    if-lez p7, :cond_17

    .line 259
    :cond_36
    neg-int v0, p3

    add-int/2addr v0, p7

    int-to-float v0, v0

    iput v0, p0, Landroid/support/constraint/solver/ArrayRow;->constantValue:F

    goto :goto_17

    .line 261
    :cond_3c
    const/4 v0, 0x0

    cmpg-float v0, p4, v0

    if-gtz v0, :cond_4f

    .line 263
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v0, p1, v3}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 264
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v0, p2, v2}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 265
    int-to-float v0, p3

    iput v0, p0, Landroid/support/constraint/solver/ArrayRow;->constantValue:F

    goto :goto_17

    .line 266
    :cond_4f
    cmpl-float v0, p4, v2

    if-ltz v0, :cond_61

    .line 268
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v0, p5, v3}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 269
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v0, p6, v2}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 270
    int-to-float v0, p7

    iput v0, p0, Landroid/support/constraint/solver/ArrayRow;->constantValue:F

    goto :goto_17

    .line 272
    :cond_61
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    sub-float v1, v2, p4

    mul-float/2addr v1, v2

    invoke-virtual {v0, p1, v1}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 273
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    sub-float v1, v2, p4

    mul-float/2addr v1, v3

    invoke-virtual {v0, p2, v1}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 274
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    mul-float v1, v3, p4

    invoke-virtual {v0, p5, v1}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 275
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    mul-float v1, v2, p4

    invoke-virtual {v0, p6, v1}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 276
    if-gtz p3, :cond_83

    if-lez p7, :cond_17

    .line 277
    :cond_83
    neg-int v0, p3

    int-to-float v0, v0

    sub-float v1, v2, p4

    mul-float/2addr v0, v1

    int-to-float v1, p7

    mul-float/2addr v1, p4

    add-float/2addr v0, v1

    iput v0, p0, Landroid/support/constraint/solver/ArrayRow;->constantValue:F

    goto :goto_17
.end method

.method createRowDefinition(Landroid/support/constraint/solver/SolverVariable;I)Landroid/support/constraint/solver/ArrayRow;
    .registers 4
    .param p1, "variable"    # Landroid/support/constraint/solver/SolverVariable;
    .param p2, "value"    # I

    .prologue
    .line 116
    iput-object p1, p0, Landroid/support/constraint/solver/ArrayRow;->variable:Landroid/support/constraint/solver/SolverVariable;

    .line 117
    int-to-float v0, p2

    iput v0, p1, Landroid/support/constraint/solver/SolverVariable;->computedValue:F

    .line 118
    int-to-float v0, p2

    iput v0, p0, Landroid/support/constraint/solver/ArrayRow;->constantValue:F

    .line 119
    const/4 v0, 0x1

    iput-boolean v0, p0, Landroid/support/constraint/solver/ArrayRow;->isSimpleDefinition:Z

    .line 120
    return-object p0
.end method

.method createRowDimensionPercent(Landroid/support/constraint/solver/SolverVariable;Landroid/support/constraint/solver/SolverVariable;Landroid/support/constraint/solver/SolverVariable;F)Landroid/support/constraint/solver/ArrayRow;
    .registers 7
    .param p1, "variableA"    # Landroid/support/constraint/solver/SolverVariable;
    .param p2, "variableB"    # Landroid/support/constraint/solver/SolverVariable;
    .param p3, "variableC"    # Landroid/support/constraint/solver/SolverVariable;
    .param p4, "percent"    # F

    .prologue
    .line 291
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    const/high16 v1, -0x40800000    # -1.0f

    invoke-virtual {v0, p1, v1}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 292
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    const/high16 v1, 0x3f800000    # 1.0f

    sub-float/2addr v1, p4

    invoke-virtual {v0, p2, v1}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 293
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v0, p3, p4}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 294
    return-object p0
.end method

.method public createRowDimensionRatio(Landroid/support/constraint/solver/SolverVariable;Landroid/support/constraint/solver/SolverVariable;Landroid/support/constraint/solver/SolverVariable;Landroid/support/constraint/solver/SolverVariable;F)Landroid/support/constraint/solver/ArrayRow;
    .registers 8
    .param p1, "variableA"    # Landroid/support/constraint/solver/SolverVariable;
    .param p2, "variableB"    # Landroid/support/constraint/solver/SolverVariable;
    .param p3, "variableC"    # Landroid/support/constraint/solver/SolverVariable;
    .param p4, "variableD"    # Landroid/support/constraint/solver/SolverVariable;
    .param p5, "ratio"    # F

    .prologue
    .line 311
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    const/high16 v1, -0x40800000    # -1.0f

    invoke-virtual {v0, p1, v1}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 312
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    const/high16 v1, 0x3f800000    # 1.0f

    invoke-virtual {v0, p2, v1}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 313
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v0, p3, p5}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 314
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    neg-float v1, p5

    invoke-virtual {v0, p4, v1}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 315
    return-object p0
.end method

.method public createRowEqualDimension(FFFLandroid/support/constraint/solver/SolverVariable;ILandroid/support/constraint/solver/SolverVariable;ILandroid/support/constraint/solver/SolverVariable;ILandroid/support/constraint/solver/SolverVariable;I)Landroid/support/constraint/solver/ArrayRow;
    .registers 18
    .param p1, "currentWeight"    # F
    .param p2, "totalWeights"    # F
    .param p3, "nextWeight"    # F
    .param p4, "variableStartA"    # Landroid/support/constraint/solver/SolverVariable;
    .param p5, "marginStartA"    # I
    .param p6, "variableEndA"    # Landroid/support/constraint/solver/SolverVariable;
    .param p7, "marginEndA"    # I
    .param p8, "variableStartB"    # Landroid/support/constraint/solver/SolverVariable;
    .param p9, "marginStartB"    # I
    .param p10, "variableEndB"    # Landroid/support/constraint/solver/SolverVariable;
    .param p11, "marginEndB"    # I

    .prologue
    .line 211
    const/4 v4, 0x0

    cmpl-float v4, p2, v4

    if-eqz v4, :cond_9

    cmpl-float v4, p1, p3

    if-nez v4, :cond_30

    .line 215
    :cond_9
    neg-int v4, p5

    sub-int/2addr v4, p7

    add-int/2addr v4, p9

    add-int v4, v4, p11

    int-to-float v4, v4

    iput v4, p0, Landroid/support/constraint/solver/ArrayRow;->constantValue:F

    .line 216
    iget-object v4, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    const/high16 v5, 0x3f800000    # 1.0f

    invoke-virtual {v4, p4, v5}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 217
    iget-object v4, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    const/high16 v5, -0x40800000    # -1.0f

    invoke-virtual {v4, p6, v5}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 218
    iget-object v4, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    const/high16 v5, 0x3f800000    # 1.0f

    move-object/from16 v0, p10

    invoke-virtual {v4, v0, v5}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 219
    iget-object v4, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    const/high16 v5, -0x40800000    # -1.0f

    invoke-virtual {v4, p8, v5}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 233
    :goto_2f
    return-object p0

    .line 221
    :cond_30
    div-float v1, p1, p2

    .line 222
    .local v1, "cw":F
    div-float v2, p3, p2

    .line 223
    .local v2, "nw":F
    div-float v3, v1, v2

    .line 227
    .local v3, "w":F
    neg-int v4, p5

    sub-int/2addr v4, p7

    int-to-float v4, v4

    int-to-float v5, p9

    mul-float/2addr v5, v3

    add-float/2addr v4, v5

    move/from16 v0, p11

    int-to-float v5, v0

    mul-float/2addr v5, v3

    add-float/2addr v4, v5

    iput v4, p0, Landroid/support/constraint/solver/ArrayRow;->constantValue:F

    .line 228
    iget-object v4, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    const/high16 v5, 0x3f800000    # 1.0f

    invoke-virtual {v4, p4, v5}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 229
    iget-object v4, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    const/high16 v5, -0x40800000    # -1.0f

    invoke-virtual {v4, p6, v5}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 230
    iget-object v4, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    move-object/from16 v0, p10

    invoke-virtual {v4, v0, v3}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 231
    iget-object v4, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    neg-float v5, v3

    invoke-virtual {v4, p8, v5}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    goto :goto_2f
.end method

.method public createRowEquals(Landroid/support/constraint/solver/SolverVariable;I)Landroid/support/constraint/solver/ArrayRow;
    .registers 5
    .param p1, "variable"    # Landroid/support/constraint/solver/SolverVariable;
    .param p2, "value"    # I

    .prologue
    .line 124
    if-gez p2, :cond_f

    .line 125
    mul-int/lit8 v0, p2, -0x1

    int-to-float v0, v0

    iput v0, p0, Landroid/support/constraint/solver/ArrayRow;->constantValue:F

    .line 126
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    const/high16 v1, 0x3f800000    # 1.0f

    invoke-virtual {v0, p1, v1}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 131
    :goto_e
    return-object p0

    .line 128
    :cond_f
    int-to-float v0, p2

    iput v0, p0, Landroid/support/constraint/solver/ArrayRow;->constantValue:F

    .line 129
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    const/high16 v1, -0x40800000    # -1.0f

    invoke-virtual {v0, p1, v1}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    goto :goto_e
.end method

.method public createRowEquals(Landroid/support/constraint/solver/SolverVariable;Landroid/support/constraint/solver/SolverVariable;I)Landroid/support/constraint/solver/ArrayRow;
    .registers 9
    .param p1, "variableA"    # Landroid/support/constraint/solver/SolverVariable;
    .param p2, "variableB"    # Landroid/support/constraint/solver/SolverVariable;
    .param p3, "margin"    # I

    .prologue
    const/high16 v4, 0x3f800000    # 1.0f

    const/high16 v3, -0x40800000    # -1.0f

    .line 135
    const/4 v0, 0x0

    .line 136
    .local v0, "inverse":Z
    if-eqz p3, :cond_10

    .line 137
    move v1, p3

    .line 138
    .local v1, "m":I
    if-gez v1, :cond_d

    .line 139
    mul-int/lit8 v1, v1, -0x1

    .line 140
    const/4 v0, 0x1

    .line 142
    :cond_d
    int-to-float v2, v1

    iput v2, p0, Landroid/support/constraint/solver/ArrayRow;->constantValue:F

    .line 144
    .end local v1    # "m":I
    :cond_10
    if-nez v0, :cond_1d

    .line 145
    iget-object v2, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v2, p1, v3}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 146
    iget-object v2, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v2, p2, v4}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 151
    :goto_1c
    return-object p0

    .line 148
    :cond_1d
    iget-object v2, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v2, p1, v4}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 149
    iget-object v2, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v2, p2, v3}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    goto :goto_1c
.end method

.method public createRowGreaterThan(Landroid/support/constraint/solver/SolverVariable;Landroid/support/constraint/solver/SolverVariable;Landroid/support/constraint/solver/SolverVariable;I)Landroid/support/constraint/solver/ArrayRow;
    .registers 10
    .param p1, "variableA"    # Landroid/support/constraint/solver/SolverVariable;
    .param p2, "variableB"    # Landroid/support/constraint/solver/SolverVariable;
    .param p3, "slack"    # Landroid/support/constraint/solver/SolverVariable;
    .param p4, "margin"    # I

    .prologue
    const/high16 v4, 0x3f800000    # 1.0f

    const/high16 v3, -0x40800000    # -1.0f

    .line 162
    const/4 v0, 0x0

    .line 163
    .local v0, "inverse":Z
    if-eqz p4, :cond_10

    .line 164
    move v1, p4

    .line 165
    .local v1, "m":I
    if-gez v1, :cond_d

    .line 166
    mul-int/lit8 v1, v1, -0x1

    .line 167
    const/4 v0, 0x1

    .line 169
    :cond_d
    int-to-float v2, v1

    iput v2, p0, Landroid/support/constraint/solver/ArrayRow;->constantValue:F

    .line 171
    .end local v1    # "m":I
    :cond_10
    if-nez v0, :cond_22

    .line 172
    iget-object v2, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v2, p1, v3}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 173
    iget-object v2, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v2, p2, v4}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 174
    iget-object v2, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v2, p3, v4}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 180
    :goto_21
    return-object p0

    .line 176
    :cond_22
    iget-object v2, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v2, p1, v4}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 177
    iget-object v2, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v2, p2, v3}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 178
    iget-object v2, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v2, p3, v3}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    goto :goto_21
.end method

.method public createRowLowerThan(Landroid/support/constraint/solver/SolverVariable;Landroid/support/constraint/solver/SolverVariable;Landroid/support/constraint/solver/SolverVariable;I)Landroid/support/constraint/solver/ArrayRow;
    .registers 10
    .param p1, "variableA"    # Landroid/support/constraint/solver/SolverVariable;
    .param p2, "variableB"    # Landroid/support/constraint/solver/SolverVariable;
    .param p3, "slack"    # Landroid/support/constraint/solver/SolverVariable;
    .param p4, "margin"    # I

    .prologue
    const/high16 v4, 0x3f800000    # 1.0f

    const/high16 v3, -0x40800000    # -1.0f

    .line 185
    const/4 v0, 0x0

    .line 186
    .local v0, "inverse":Z
    if-eqz p4, :cond_10

    .line 187
    move v1, p4

    .line 188
    .local v1, "m":I
    if-gez v1, :cond_d

    .line 189
    mul-int/lit8 v1, v1, -0x1

    .line 190
    const/4 v0, 0x1

    .line 192
    :cond_d
    int-to-float v2, v1

    iput v2, p0, Landroid/support/constraint/solver/ArrayRow;->constantValue:F

    .line 194
    .end local v1    # "m":I
    :cond_10
    if-nez v0, :cond_22

    .line 195
    iget-object v2, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v2, p1, v3}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 196
    iget-object v2, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v2, p2, v4}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 197
    iget-object v2, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v2, p3, v3}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 203
    :goto_21
    return-object p0

    .line 199
    :cond_22
    iget-object v2, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v2, p1, v4}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 200
    iget-object v2, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v2, p2, v3}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 201
    iget-object v2, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v2, p3, v4}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    goto :goto_21
.end method

.method ensurePositiveConstant()V
    .registers 3

    .prologue
    .line 337
    iget v0, p0, Landroid/support/constraint/solver/ArrayRow;->constantValue:F

    const/4 v1, 0x0

    cmpg-float v0, v0, v1

    if-gez v0, :cond_13

    .line 339
    iget v0, p0, Landroid/support/constraint/solver/ArrayRow;->constantValue:F

    const/high16 v1, -0x40800000    # -1.0f

    mul-float/2addr v0, v1

    iput v0, p0, Landroid/support/constraint/solver/ArrayRow;->constantValue:F

    .line 340
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v0}, Landroid/support/constraint/solver/ArrayLinkedVariables;->invert()V

    .line 342
    :cond_13
    return-void
.end method

.method hasAtLeastOnePositiveVariable()Z
    .registers 2

    .prologue
    .line 39
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v0}, Landroid/support/constraint/solver/ArrayLinkedVariables;->hasAtLeastOnePositiveVariable()Z

    move-result v0

    return v0
.end method

.method hasKeyVariable()Z
    .registers 3

    .prologue
    .line 43
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variable:Landroid/support/constraint/solver/SolverVariable;

    if-eqz v0, :cond_15

    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variable:Landroid/support/constraint/solver/SolverVariable;

    iget-object v0, v0, Landroid/support/constraint/solver/SolverVariable;->mType:Landroid/support/constraint/solver/SolverVariable$Type;

    sget-object v1, Landroid/support/constraint/solver/SolverVariable$Type;->UNRESTRICTED:Landroid/support/constraint/solver/SolverVariable$Type;

    if-eq v0, v1, :cond_13

    iget v0, p0, Landroid/support/constraint/solver/ArrayRow;->constantValue:F

    const/4 v1, 0x0

    cmpg-float v0, v0, v1

    if-ltz v0, :cond_15

    :cond_13
    const/4 v0, 0x1

    :goto_14
    return v0

    :cond_15
    const/4 v0, 0x0

    goto :goto_14
.end method

.method hasVariable(Landroid/support/constraint/solver/SolverVariable;)Z
    .registers 3
    .param p1, "v"    # Landroid/support/constraint/solver/SolverVariable;

    .prologue
    .line 112
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v0, p1}, Landroid/support/constraint/solver/ArrayLinkedVariables;->containsKey(Landroid/support/constraint/solver/SolverVariable;)Z

    move-result v0

    return v0
.end method

.method pickRowVariable()V
    .registers 3

    .prologue
    .line 345
    iget-object v1, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v1}, Landroid/support/constraint/solver/ArrayLinkedVariables;->pickPivotCandidate()Landroid/support/constraint/solver/SolverVariable;

    move-result-object v0

    .line 346
    .local v0, "pivotCandidate":Landroid/support/constraint/solver/SolverVariable;
    if-eqz v0, :cond_b

    .line 347
    invoke-virtual {p0, v0}, Landroid/support/constraint/solver/ArrayRow;->pivot(Landroid/support/constraint/solver/SolverVariable;)V

    .line 349
    :cond_b
    iget-object v1, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    iget v1, v1, Landroid/support/constraint/solver/ArrayLinkedVariables;->currentSize:I

    if-nez v1, :cond_14

    .line 350
    const/4 v1, 0x1

    iput-boolean v1, p0, Landroid/support/constraint/solver/ArrayRow;->isSimpleDefinition:Z

    .line 352
    :cond_14
    return-void
.end method

.method pivot(Landroid/support/constraint/solver/SolverVariable;)V
    .registers 6
    .param p1, "v"    # Landroid/support/constraint/solver/SolverVariable;

    .prologue
    const/high16 v3, -0x40800000    # -1.0f

    .line 355
    iget-object v1, p0, Landroid/support/constraint/solver/ArrayRow;->variable:Landroid/support/constraint/solver/SolverVariable;

    if-eqz v1, :cond_10

    .line 357
    iget-object v1, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    iget-object v2, p0, Landroid/support/constraint/solver/ArrayRow;->variable:Landroid/support/constraint/solver/SolverVariable;

    invoke-virtual {v1, v2, v3}, Landroid/support/constraint/solver/ArrayLinkedVariables;->put(Landroid/support/constraint/solver/SolverVariable;F)V

    .line 358
    const/4 v1, 0x0

    iput-object v1, p0, Landroid/support/constraint/solver/ArrayRow;->variable:Landroid/support/constraint/solver/SolverVariable;

    .line 361
    :cond_10
    iget-object v1, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v1, p1}, Landroid/support/constraint/solver/ArrayLinkedVariables;->remove(Landroid/support/constraint/solver/SolverVariable;)F

    move-result v1

    mul-float v0, v1, v3

    .line 362
    .local v0, "amount":F
    iput-object p1, p0, Landroid/support/constraint/solver/ArrayRow;->variable:Landroid/support/constraint/solver/SolverVariable;

    .line 363
    const/high16 v1, 0x3f800000    # 1.0f

    cmpl-float v1, v0, v1

    if-nez v1, :cond_21

    .line 368
    :goto_20
    return-void

    .line 366
    :cond_21
    iget v1, p0, Landroid/support/constraint/solver/ArrayRow;->constantValue:F

    div-float/2addr v1, v0

    iput v1, p0, Landroid/support/constraint/solver/ArrayRow;->constantValue:F

    .line 367
    iget-object v1, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v1, v0}, Landroid/support/constraint/solver/ArrayLinkedVariables;->divideByAmount(F)V

    goto :goto_20
.end method

.method public reset()V
    .registers 2

    .prologue
    .line 105
    const/4 v0, 0x0

    iput-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variable:Landroid/support/constraint/solver/SolverVariable;

    .line 106
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v0}, Landroid/support/constraint/solver/ArrayLinkedVariables;->clear()V

    .line 107
    const/4 v0, 0x0

    iput v0, p0, Landroid/support/constraint/solver/ArrayRow;->constantValue:F

    .line 108
    const/4 v0, 0x0

    iput-boolean v0, p0, Landroid/support/constraint/solver/ArrayRow;->isSimpleDefinition:Z

    .line 109
    return-void
.end method

.method sizeInBytes()I
    .registers 3

    .prologue
    .line 319
    const/4 v0, 0x0

    .line 320
    .local v0, "size":I
    iget-object v1, p0, Landroid/support/constraint/solver/ArrayRow;->variable:Landroid/support/constraint/solver/SolverVariable;

    if-eqz v1, :cond_7

    .line 321
    add-int/lit8 v0, v0, 0x4

    .line 323
    :cond_7
    add-int/lit8 v0, v0, 0x4

    .line 324
    add-int/lit8 v0, v0, 0x4

    .line 326
    iget-object v1, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v1}, Landroid/support/constraint/solver/ArrayLinkedVariables;->sizeInBytes()I

    move-result v1

    add-int/2addr v0, v1

    .line 327
    return v0
.end method

.method toReadableString()Ljava/lang/String;
    .registers 12

    .prologue
    const/high16 v10, -0x40800000    # -1.0f

    const/4 v9, 0x0

    .line 55
    const-string v5, ""

    .line 56
    .local v5, "s":Ljava/lang/String;
    iget-object v7, p0, Landroid/support/constraint/solver/ArrayRow;->variable:Landroid/support/constraint/solver/SolverVariable;

    if-nez v7, :cond_5c

    .line 57
    new-instance v7, Ljava/lang/StringBuilder;

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

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

    move-result-object v7

    const-string v8, "0"

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

    move-result-object v7

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

    move-result-object v5

    .line 61
    :goto_1c
    new-instance v7, Ljava/lang/StringBuilder;

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

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

    move-result-object v7

    const-string v8, " = "

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

    move-result-object v7

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

    move-result-object v5

    .line 62
    const/4 v0, 0x0

    .line 63
    .local v0, "addedVariable":Z
    iget v7, p0, Landroid/support/constraint/solver/ArrayRow;->constantValue:F

    cmpl-float v7, v7, v9

    if-eqz v7, :cond_4a

    .line 64
    new-instance v7, Ljava/lang/StringBuilder;

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

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

    move-result-object v7

    iget v8, p0, Landroid/support/constraint/solver/ArrayRow;->constantValue:F

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v7

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

    move-result-object v5

    .line 65
    const/4 v0, 0x1

    .line 67
    :cond_4a
    iget-object v7, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    iget v2, v7, Landroid/support/constraint/solver/ArrayLinkedVariables;->currentSize:I

    .line 68
    .local v2, "count":I
    const/4 v3, 0x0

    .local v3, "i":I
    :goto_4f
    if-ge v3, v2, :cond_f6

    .line 69
    iget-object v7, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v7, v3}, Landroid/support/constraint/solver/ArrayLinkedVariables;->getVariable(I)Landroid/support/constraint/solver/SolverVariable;

    move-result-object v6

    .line 70
    .local v6, "v":Landroid/support/constraint/solver/SolverVariable;
    if-nez v6, :cond_70

    .line 68
    :goto_59
    add-int/lit8 v3, v3, 0x1

    goto :goto_4f

    .line 59
    .end local v0    # "addedVariable":Z
    .end local v2    # "count":I
    .end local v3    # "i":I
    .end local v6    # "v":Landroid/support/constraint/solver/SolverVariable;
    :cond_5c
    new-instance v7, Ljava/lang/StringBuilder;

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

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

    move-result-object v7

    iget-object v8, p0, Landroid/support/constraint/solver/ArrayRow;->variable:Landroid/support/constraint/solver/SolverVariable;

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v7

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

    move-result-object v5

    goto :goto_1c

    .line 73
    .restart local v0    # "addedVariable":Z
    .restart local v2    # "count":I
    .restart local v3    # "i":I
    .restart local v6    # "v":Landroid/support/constraint/solver/SolverVariable;
    :cond_70
    iget-object v7, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v7, v3}, Landroid/support/constraint/solver/ArrayLinkedVariables;->getVariableValue(I)F

    move-result v1

    .line 74
    .local v1, "amount":F
    invoke-virtual {v6}, Landroid/support/constraint/solver/SolverVariable;->toString()Ljava/lang/String;

    move-result-object v4

    .line 75
    .local v4, "name":Ljava/lang/String;
    if-nez v0, :cond_ad

    .line 76
    cmpg-float v7, v1, v9

    if-gez v7, :cond_94

    .line 77
    new-instance v7, Ljava/lang/StringBuilder;

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

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

    move-result-object v7

    const-string v8, "- "

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

    move-result-object v7

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

    move-result-object v5

    .line 78
    mul-float/2addr v1, v10

    .line 88
    :cond_94
    :goto_94
    const/high16 v7, 0x3f800000    # 1.0f

    cmpl-float v7, v1, v7

    if-nez v7, :cond_da

    .line 89
    new-instance v7, Ljava/lang/StringBuilder;

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

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

    move-result-object v7

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

    move-result-object v7

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

    move-result-object v5

    .line 93
    :goto_ab
    const/4 v0, 0x1

    goto :goto_59

    .line 81
    :cond_ad
    cmpl-float v7, v1, v9

    if-lez v7, :cond_c5

    .line 82
    new-instance v7, Ljava/lang/StringBuilder;

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

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

    move-result-object v7

    const-string v8, " + "

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

    move-result-object v7

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

    move-result-object v5

    goto :goto_94

    .line 84
    :cond_c5
    new-instance v7, Ljava/lang/StringBuilder;

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

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

    move-result-object v7

    const-string v8, " - "

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

    move-result-object v7

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

    move-result-object v5

    .line 85
    mul-float/2addr v1, v10

    goto :goto_94

    .line 91
    :cond_da
    new-instance v7, Ljava/lang/StringBuilder;

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

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

    move-result-object v7

    invoke-virtual {v7, v1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, " "

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

    move-result-object v7

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

    move-result-object v7

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

    move-result-object v5

    goto :goto_ab

    .line 95
    .end local v1    # "amount":F
    .end local v4    # "name":Ljava/lang/String;
    .end local v6    # "v":Landroid/support/constraint/solver/SolverVariable;
    :cond_f6
    if-nez v0, :cond_10b

    .line 96
    new-instance v7, Ljava/lang/StringBuilder;

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

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

    move-result-object v7

    const-string v8, "0.0"

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

    move-result-object v7

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

    move-result-object v5

    .line 101
    :cond_10b
    return-object v5
.end method

.method public toString()Ljava/lang/String;
    .registers 2

    .prologue
    .line 51
    invoke-virtual {p0}, Landroid/support/constraint/solver/ArrayRow;->toReadableString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method updateClientEquations()V
    .registers 2

    .prologue
    .line 35
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v0, p0}, Landroid/support/constraint/solver/ArrayLinkedVariables;->updateClientEquations(Landroid/support/constraint/solver/ArrayRow;)V

    .line 36
    return-void
.end method

.method updateRowWithEquation(Landroid/support/constraint/solver/ArrayRow;)Z
    .registers 3
    .param p1, "definition"    # Landroid/support/constraint/solver/ArrayRow;

    .prologue
    .line 331
    iget-object v0, p0, Landroid/support/constraint/solver/ArrayRow;->variables:Landroid/support/constraint/solver/ArrayLinkedVariables;

    invoke-virtual {v0, p0, p1}, Landroid/support/constraint/solver/ArrayLinkedVariables;->updateFromRow(Landroid/support/constraint/solver/ArrayRow;Landroid/support/constraint/solver/ArrayRow;)V

    .line 332
    const/4 v0, 0x1

    return v0
.end method


text:
/**
 * This module defines the Ambrose.View namespace in which other view modules are registered.
 */
define(['lib/jquery', 'lib/d3', 'lib/colorbrewer', '../core'], function(
  $, d3, colorbrewer, Ambrose
) {
  var pending = d3.rgb(0, 0, 0);
  var running = d3.rgb('#5cb85c').brighter();
  var complete = d3.rgb('#ccc');
  var failed = d3.rgb(196, 98, 98);
  var selected = d3.rgb(98, 98, 196);
  var mouseover = selected.brighter();
  var nodeEdgeDefault = d3.rgb(170, 170, 170);
  var nodeEdgeScaled = nodeEdgeDefault.darker();

  return Ambrose.View = {
    Theme: {
      colors: {
        pending: pending,
        running: running,
        complete: complete,
        failed: failed,
        selected: selected,
        mouseover: mouseover,
        nodeEdgeDefault: nodeEdgeDefault,
        nodeEdgeScaled: nodeEdgeScaled
      },
      palettes: {
        queued: colorbrewer.Greys,
        complete: colorbrewer.Greens,
        failed: colorbrewer.Reds
      }
    }
  };
});

redpajama_set_name: RedPajamaGithub


text:
extern const char FILE_core__sorter[];
#define COLOR_core__array__AbstractArrayRead___length 0
extern const struct type type_core__Int;
extern const char FILE_core__kernel[];
void core___core__Comparator___sub_sort(val* self, val* p0, long p1, long p2);
void core___core__Comparator___quick_sort(val* self, val* p0, long p1, long p2);
void core___core__Comparator___bubble_sort(val* self, val* p0, long p1, long p2);
val* core___core__Array___core__abstract_collection__SequenceRead___91d_93d(val* self, long p0);
#define COLOR_core__sorter__Comparator__compare 16
void core___core__Array___core__abstract_collection__Sequence___91d_93d_61d(val* self, long p0, val* p1);
#define COLOR_core__sorter__Comparator__COMPARED 0
#define COLOR_core__kernel__Comparable___60d_61d_62d 16
val* NEW_core__DefaultComparator(const struct type* type);
extern const struct type type_core__DefaultComparator;


text:
package io.opensec.six.oval.model.common;

/**
 * A base class for all the concrete file behaviors.
 *
 * @author  Akihito Nakamura, AIST
 * @see OVAL Language
 */
public abstract class AbstractFileBehaviors
    extends AbstractBehaviors
{

    /**
     * The default recurseFileSystem: "all".
     */
    public static final RecurseFileSystemEnumeration  DEFAULT_RECURSE_FILE_SYSTEM =
        RecurseFileSystemEnumeration.ALL;

    private RecurseFileSystemEnumeration  recurse_file_system;
    //{optional, default="all"}

    /**
     * Constructor.
     */
    public AbstractFileBehaviors()
    {
    }

    /**
     */
    public void setRecurseFileSystem(
                    final RecurseFileSystemEnumeration recurse_file_system
                    )
    {
        this.recurse_file_system = recurse_file_system;
    }

    public RecurseFileSystemEnumeration getRecurseFileSystem()
    {
        return recurse_file_system;
    }

    public static final RecurseFileSystemEnumeration recurseFileSystem(
                    final AbstractFileBehaviors obj
                    )
    {
        RecurseFileSystemEnumeration  recurse_file_system = obj.getRecurseFileSystem();
        return (recurse_file_system == null ? DEFAULT_RECURSE_FILE_SYSTEM : recurse_file_system);
    }

    //**************************************************************
    //  java.lang.Object
    //**************************************************************

    @Override
    public int hashCode()
    {
        final int  prime = 37;
        int  result = super.hashCode();

        result = prime * result + recurseFileSystem( this ).hashCode();

        return result;
    }

    @Override
    public boolean equals(
                    final Object obj
                    )
    {
        if (!(obj instanceof AbstractFileBehaviors)) {
            return false;
        }

        if (super.equals( obj )) {
            AbstractFileBehaviors  other = (AbstractFileBehaviors)obj;
            if (recurseFileSystem( this ) == recurseFileSystem( other )) {
                return true;
            }
        }

        return false;
    }

    @Override
    public String toString()
    {
        return super.toString()
                        + ", recurse_file_system=" + getRecurseFileSystem()
                        ;
    }

}
// AbstractFileBehaviors


text:
import { Injectable } from '@angular/core';
import { Resolve, ActivatedRouteSnapshot } from '@angular/router';
import { ArticleService } from './article.service';
import { Article } from "./article";
import { Location } from "@angular/common";

@Injectable()
export class ArticleResolve implements Resolve<Article> {

    constructor(private articleService: ArticleService, private location: Location) { }

    resolve(route: ActivatedRouteSnapshot): Promise<Article> {
        return this.articleService.getArticle(route.paramMap.get('name')).then((article) => {

            if (article) {
                return Promise.resolve(article);
            }
            else {
                //Stop them?
                return Promise.reject("Article not found");
            }

        })
    }
}


text:
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse" ng-click="toggleNav()">
                Toggle navigation

            </button>

            Quickstick

Home

Users

Create

Documentation

Logout

Login

        <button class="close" data-dismiss="alert">×</button>
        {{message.content}}


text: The implementation of AES in JavaScript


text:
import React from "react"
import PropTypes from "prop-types"
import { connect } from "react-redux"
import { Card, CardTitle, CardText } from "material-ui/Card"
import RawJson from "../RawJson/RawJson"

const AllocationRaw = ({ allocation }) =>
  <Card>
    <CardTitle title="Raw allocation data" />
    <CardText>
      <RawJson json={allocation} />
    </CardText>
  </Card>

function mapStateToProps({ allocation }) {
  return { allocation }
}

AllocationRaw.propTypes = {
  allocation: PropTypes.object.isRequired
}

export default connect(mapStateToProps)(AllocationRaw)


text:
[![Gem Version](https://badge.fury.io/rb/sped2db.svg)](https://badge.fury.io/rb/sped2db) [![Build Status](https://travis-ci.org/elvisgs/sped2db.svg?branch=master)](https://travis-ci.org/elvisgs/sped2db)

Importa registros de arquivos no formato [SPED](http://sped.rfb.gov.br) fiscal/contribuições para um Banco de Dados

## Instalação

O sped2db usa o [Sequel](https://github.com/jeremyevans/sequel) para acesso ao banco de dados. Para tanto, é necessário instalar também o driver ruby adequado.

```
$ gem install sped2db
$ gem install <driver do seu BD>
```

Sendo que driver pode ser `sqlite3`, `pg`, `mysql2`, etc.

## Uso

```
$ sped2db [opções] <caminho sped>
Opções:
    -c, --config             Arquivo de configuração ou URI de conexão (default: ./sped2db.yml)
    -n, --dbname             Nome do BD (sobrescreve config)
    -u, --user               Nome do usuário do BD (sobrescreve config)
    -p, --passwd             Senha do usuário (sobrescreve config)
    -e, --continue-on-error  Continua se encontrar erro (default: false)
    -v, --version
    -h, --help
```

O caminho SPED pode ser um único arquivo ou um diretório contendo arquivos SPED.

## Exemplos

1. Usa configurações de conexão do `sped2db.yml` (se existir) no diretório atual e carrega arquivo `~/sped.txt` no BD teste:
```
$ sped2db -n teste ~/sped.txt
```

2. Usa configurações de conexão contidas em `~/database.yml` com usuário john, senha 123 e carrega arquivo `~/sped.txt`:
```
$ sped2db -c ~/database.yml -u john -p 123 ~/sped.txt
```

3. Usa URI de conexão e carrega todos os arquivos SPED do diretório `~/sped-files/`, mesmo se algum tiver erros:
```
$ sped2db -c postgres://localhost/teste -e ~/sped-files/
```

Um arquivo de configuração tem o seguinte formato:
```yaml
adapter: postgres
host: localhost
port: 5432
user: myUser
password: myPassword
database: sped
```
Para mais detalhes sobre configuração e strings de conexão, consulte a [documentação](https://github.com/jeremyevans/sequel/blob/master/doc/opening_databases.rdoc) do Sequel.

## Desenvolvimento

Depois de clonar o repo, execute `bundle install` para instalar as dependências, então execute `rake spec` para rodar os testes. Execute `bundle exec sped2db` para usar a gem neste diretório, ignorando outras cópias desta gem instaladas.

Para instalar esta gem na sua máquina local, execute `bundle exec rake install`. Para fazer o release de uma nova versão, atualize o número de versão em `version.rb` e então execute `bundle exec rake release`, que criará uma tag git para a versão, fará push no git dos commits e tags e mandará o `.gem` para [rubygems.org](https://rubygems.org).

## Licença

Esta gem está disponível como open source sob os termos da [MIT License](http://opensource.org/licenses/MIT).


text:
package org.apache.wicket.examples.library;

import org.apache.wicket.authroles.authentication.panel.SignInPanel;
import org.apache.wicket.examples.WicketExamplePage;
import org.apache.wicket.request.mapper.parameter.PageParameters;

/**
 * Simple example of a sign in page.
 *
 * @author Jonathan Locke
 */
public final class SignIn extends WicketExamplePage
{
	/**
	 * Constructor
	 */
	public SignIn()
	{
		this(null);
	}

	/**
	 * Constructor
	 *
	 * @param parameters
	 *            The page parameters
	 */
	public SignIn(final PageParameters parameters)
	{
		super(parameters);
		add(new SignInPanel("signInPanel", false));
	}
}


text:
using System;
using VkNet.Utils;

namespace VkNet.Enums;

/// <summary>
/// Значение приватности подарка (только для текущего пользователя).
/// </summary>
[Serializable]
public enum GiftPrivacy
{
	/// <summary>
	/// 0 — имя отправителя и сообщение видно всем
	/// </summary>
	All = 0,

	/// <summary>
	/// 1 — имя отправителя видно всем, сообщение видно только получателю
	/// </summary>
	NameAllMessageUser,

	/// <summary>
	/// 2 — имя отправителя скрыто, сообщение видно только получателю
	/// </summary>
	[DefaultValue]
	NameHideMessageUser
}


text:
using System.Collections.Generic;

using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Diagnostics.HealthChecks;
using Microsoft.Extensions.HealthChecks;
using Microsoft.Extensions.Options;

using Raven.DependencyInjection;

namespace Microsoft.Extensions.DependencyInjection
{
    public static class HealthCheckBuilderExtensions
    {
        /// <summary>
        /// Add a HealthCheck for RavenDb.
        /// </summary>
        /// <param name="builder">The <see cref="IHealthChecksBuilder"/>.</param>
        /// <param name="name">The name of the HealthCheck.</param>
        /// <param name="failureStatus">The <see cref="HealthStatus"/>The type should be reported when the health check fails. Optional. If <see langword="null"/> then</param>
        /// <param name="tags">A list of tags that can be used to filter sets of health checks. Optional.</param>
        /// <returns></returns>
        public static IHealthChecksBuilder AddRavenDbCheck(this IHealthChecksBuilder builder, string name = "ravendb", HealthStatus? failureStatus = default, IEnumerable<string>? tags = default)
        {
            builder.Add(new HealthCheckRegistration(
                name,
                sp => {
                    var options = sp.GetRequiredService<IOptions<RavenOptions>>();
                    return new RavenDbHealthCheck(options);
                 },

                failureStatus,
                tags));

            return builder;
        }
    }
}


text:
@class NSArray, NSString;

@interface IBICFileType : IBICMultipartImageRepSlotComponent <IBICPseudoXMLGeneration, NSCoding>
{
    BOOL _renderThumbnailWithQuickLook;
    NSArray *_extensions;
}

+ (id)fileTypeWithIdentifier:(id)arg1 title:(id)arg2 extensions:(id)arg3 displayOrder:(double)arg4 renderThumbnailWithQuickLook:(BOOL)arg5;
@property(readonly, nonatomic) BOOL renderThumbnailWithQuickLook; // @synthesize renderThumbnailWithQuickLook=_renderThumbnailWithQuickLook;
@property(readonly, nonatomic) NSArray *extensions; // @synthesize extensions=_extensions;
- (void).cxx_destruct;
- (void)ibic_appendAdditionalPseudoXMLAttrbutes:(id)arg1;
- (id)ibic_pseudoXML;
- (void)encodeWithCoder:(id)arg1;
- (id)initWithCoder:(id)arg1;
- (BOOL)isValidFileExtension:(id)arg1;
- (id)initWithIdentifier:(id)arg1 title:(id)arg2 extensions:(id)arg3 displayOrder:(double)arg4 renderThumbnailWithQuickLook:(BOOL)arg5;

// Remaining properties
@property(readonly, copy) NSString *debugDescription;
@property(readonly, copy) NSString *description;
@property(readonly) unsigned long long hash;
@property(readonly) Class superclass;

@end


text:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Rename_ctrlr extends MX_Controller
{

/*****************************************************
 * Perfect controller methods
 *****************************************************/
	function __construct() {
		 parent::__construct();
	    $this->load->model('rename_mdl');

	 }

	function get($order_by){
	    $query = $this->rename_mdl->get($order_by);
	    return $query;
	 }

	function get_with_limit($limit, $offset, $order_by) {
	    $query = $this->rename_mdl->get_with_limit($limit, $offset, $order_by);
	    return $query;
	 }

	function get_where($id){
	    $query = $this->rename_mdl->get_where($id);
	    return $query;
	 }

	function get_where_custom($col, $value) {
	    $query = $this->rename_mdl->get_where_custom($col, $value);
	    return $query;
	 }

	function _insert($data){
	    $this->rename_mdl->_insert($data);
	 }

	function _update($id, $data){
	    $this->rename_mdl->_update($id, $data);
	 }

	function _delete($id){
	    $this->rename_mdl->_delete($id);
	 }

	function count_where($column, $value) {
	    $count = $this->rename_mdl->count_where($column, $value);
	    return $count;
	 }

	function get_max() {
	    $max_id = $this->rename_mdl->get_max();
	    return $max_id;
	 }

	function _custom_query($mysql_query) {
	    $query = $this->rename_mdl->_custom_query($mysql_query);
	    return $query;
	 }

/*****************************************************
 * Miscellaneous methods
 *****************************************************/

}


text:
All entry points are third level headings relative to API base URL.

Requests must at least have a `method` defined, sessionId is required for all other operations than logging in.

    {
        method: string,
        sessionId: string/null
    }

Responses always have the base structure of:

    {
        error: string/null,
        data: object/null
    }

Where `data` contains the full response object from the backend. All error messages by definition are user friendly and can be displayed as received.

Datetime format is `YYYY-MM-DD HH:MM:SS` and all times are in UTC.

## Session

User session management.

### Login

Request:

    {
        method: 'login',
        username: string,
        password: string,
    }

Response:

    {
        error: string/null,
        data: {
            sessionId: string,
            superUser: bool
        }
    }

### Logout

Request:

    {
        method: 'logout'
    }

Response is empty.

## User

Manage users and access levels. These are only available for users with `superUser` flag on.

### User list

Request:

    {
        method: 'userList'
    }

Response:

    {
        error: string/null,
        data: [
            {
                id: int,
                superUser: bool,
                username: string,
            },
            ...
        ]
    }

### User add

Request:

    {
        method: 'userAdd',
        superUser: bool,
        username: string,
        password: string
    }

Response is empty.

### User edit

Request:

    {
        method: 'userEdit',
        id: int,
        superUser: bool,
        username: string,
        password: string/null
    }

Response is empty.

### User delete

Request:

    {
        method: 'userDelete',
        id: int
    }

Response is empty.

## Server

Manages server list and server configurations like rcon password. Server host is in format `host/ip:port`, for example `127.0.0.1:29710`.

### Server list

Request:

    {
        method: 'serverList'
    }

Response:

    {
        error: string/null,
        data: [
            {
                id: int,
                host: string,
                name: string,
                uptime: string
            },
            ...
        ]
    }

### Server add

Request:

    {
        method: 'serverAdd',
        sessionId: string,
        name: string,
        host: string,
        rcon: string
    }

Response is empty.

### Server edit

Request:

    {
        method: 'serverAdd',
        sessionId: string,
        id: int,
        name: string,
        host: string,
        rcon: string
    }

Response is empty.

### Server delete

Request:

    {
        method: 'serverDelete',
        sessionId: string,
        id: int
    }

Response is empty.

## Rcon

Raw remote rcon. Response has the reply from the command or null with error string set in case of error.

Request:

    {
        method: 'rcon',
        sessionId: string,
        serverId: int,
        command: string
    }

Response:

    {
        error: string/null,
        data: string/null
    }

## Ban management

Handles bans with a possible expiration date.

### Ban list

Request:

    {
        method: 'banList',
        sessionId: string
    }

Response:

    {
        error: string/null,
        data: [
            {
                id: int,
                cidr: string,
                nick: string,
                reason: string,
                expires: datetime/null,
                added: datetime,
                username: string
            },
            ...
        ]
    }

### Ban add

Request:

    {
        method: 'banAdd',
        cidr: string,
        nick: string,
        reason: string,
        expires: datetime/null
    }

Response is empty.

### Ban delete

Request:

    {
        method: 'banDelete',
        id: int
    }

Response is empty.

## Log

User action log. These are only available for users with `superUser` flag on.

### View

Request:

    {
        method: 'logView',
        limit: int,
        offset: int
    }

Response:

    {
        error: string/null,
        data: [
            {
                value: string,
                added: datetime,
                username: string
            }
        ]


text:
using UnityEngine;
using System.Collections;

public class RemovePlayerRpcCallSenderProcessor : AbstractRpcCallSenderProcessor
{
	private const string RPC_NAME = RpcCall.REMOVE_PLAYER;

	private NetworkPlayer toRemove;

	public RemovePlayerRpcCallSenderProcessor(NetworkPlayer toRemove)
		: base(RPC_NAME)
	{
		this.toRemove = toRemove;
	}

	public override void Send()
	{
		SendRpc(Builder().As(toRemove).ToAll());
	}
}


text:
Acknowledgements
================

Many thanks to following people for the time spent helping with Asphalt's development:

* Alice Bevan-McGregor (brainstorming and documentation QA)
* Guillaume "Cman" Brun (brainstorming)
* Darin Gordon (brainstorming and documentation QA)
* Antti Haapala (brainstorming)
* Olli Paloheimo (Asphalt logo design).
* Cody Scott (tutorials QA)


text:
<?php

    /**
     * Minimal class autoloader
     *
     * @param string $class Full qualified name of the class
     */
    function miniAutoloader(string $class)
    {
        $class = str_replace('\\', '/', $class);
        require __DIR__ . '/../src/' . $class . '.php';
    }

    spl_autoload_register('miniAutoloader');

    $term = $_POST['term'] ?? null;

?>
<!DOCTYPE html>

    <meta charset="utf-8">
    <title>StringCalc Demo</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/framy/latest/css/framy.min.css">

StringCalc Demo

    <form method="POST">

            Term:
            <input id="term" class="form-field" name="term" type="text" value="<?php echo $term !== null ? $term : '1+(2+max(-3,3))' ?>">

        <input type="submit" value="Calc" class="button">
    </form>

        <?php

            $stringCalc = new ChrisKonnertz\StringCalc\StringCalc();

            if ($term !== null) {
                try {
                    $result = $stringCalc->calculate($term);

                    echo '
Result: ' . $result . ' (Type: ' . gettype($result) . ')
';
                } catch (ChrisKonnertz\StringCalc\Exceptions\StringCalcException $exception) {
                    echo '
'.$exception->getMessage();
                    if ($exception->getPosition()) {
                        echo ' at position ' . $exception->getPosition() . '';
                    }
                    if ($exception->getSubject()) {
                        echo ' with subject "' . $exception->getSubject() . '"';
                    }
                    echo '
';
                } catch (Exception $exception) {
                    echo '
'.$exception->getMessage().'
';
                }
            }

        ?>

        <?php

            $grammar = new \ChrisKonnertz\StringCalc\Grammar\StringCalcGrammar();
            echo '
Grammar rules

'.$grammar->__toString().'
';

        ?>


text:
{% extends "base.html" %}

{% block content %}
  <form action="" method="post">{% csrf_token %}

Sign Up

      {{ form.as_p }}

Paste <input id="profileURL" readonly value="{{ profile_url }}"> into your hacker news profile, replacing username with your hacker news username.

<input type="submit" value="register" />

  </form>
{% endblock %}

{% block extra_head %}

{% endblock %}


text:
define({
  "_widgetLabel": "Zwijanie",
  "swipeText": " Wybierz warstwę, która ma być zwijana",
  "spyglassText": "Wybierz warstwę, która ma się pojawić w lupie",
  "disableTips": "Kliknij, aby wyłączyć narzędzie zwijania",
  "enableTips": "Kliknij, aby włączyć narzędzie zwijania"
});


text:
{{--
    Widget for displaying images

    This widget does not provide aspect ratio fixing, it acts
    like <img> tag. But can be easily used for inline images.
    It gwros with the image as needed.

    Do not expect the size to be constant because of the srcset
    attribute. Use CSS to make the size predictable.

    Basically use this as image widget with variable aspect ratio.

    Arguments:
    $key - shroom data key
    $class - css classes to be applied (string)
    $style - css styles to be applied (string)
--}}

@inject("mycelium", "mycelium")
@inject("shroom", "mycelium.shroom")

@php
    if (!isset($key))
        throw new Exception("'key' argument not present.");

    if (!isset($class))
        $class = "";

    if (!isset($style))
        $style = "";

    $value = $shroom->data("public")->get($key, []);
    $handle = collect($value)->get("@spore", null);
    $spore = $shroom->spore($handle);

    $url = "";
    if ($spore !== null)
        $url = $spore->get("url", "");

    $srcset = "";
    if ($spore !== null)
        $srcset = Mycelium\SporeHandlers\ImageHandler::getSrcset($shroom, $spore);
@endphp

@if($mycelium->editing())
    <span
        mycelium-widget="image"
        mycelium-key="{{ $key }}"
        class="{{ $class }}"
        style="{{ $style }}"
    >
        <img
            class="{{ $class }}"
            style="{{ $style }}"
            src="{{ $url }}"
        >
        <button class="edit-button">E</button>
    </span>
@else
    <img
        class="{{ $class }}"
        style="{{ $style }}"
        src="{{ $url }}"
        srcset="{{ $srcset }}"
    >
@endif


text:
#import "ISRHttpHandler.h"

#import <UIKit/UIKit.h>

#import "../helper/ISRLogger.h"
#import "../view/ISRHtmlView.h"

#import "ISRMessageHandlerFactory.h"

static NSString* TAG_ = @"ISRHttpethod";

@implementation ISRHttpHandler

-(void)process: (NSDictionary<NSString*, NSObject*>*)data {
	NSString* htmlData = (NSString*)data[@"html"];
	if (htmlData == nil) {
		[[ISRLogger sharedLogger] debugWithTag:TAG_ message:
         @"Not exist 'html' key in notification data!"];
		return;
	}

	NSString* orientationStr = (NSString*)data[@"orientation"];
	if (orientationStr == nil) {
		[[ISRLogger sharedLogger] debugWithTag:TAG_ message:
         @"Not exist 'orientation' key in notification data!"];
		return;
	}

	NSString* percentageStr = (NSString*)data[@"percentage"];
	if (percentageStr == nil) {
		[[ISRLogger sharedLogger] debugWithTag:TAG_ message:
         @"Not exist 'percentage' key in notification data!"];
		return;
	}

	NSInteger percentage = [percentageStr integerValue];
	if (percentage == 0) {
		[[ISRLogger sharedLogger] debugWithTag:TAG_ message:
         [NSString stringWithFormat:@"Incorrect value for 'percentage': %ld",
          (long)percentage]];
		return;
	}

	NSInteger ratio;
	NSString* ratioStr = (NSString*)data[@"ratio"];
	if (ratioStr != nil) {
		ratio = [ratioStr integerValue];
		if (ratio == 0) {
			ratio = 100;
		}
	} else {
		ratio = 100;
	}

	NSInteger vertical;
	NSString* verticalStr = (NSString*)data[@"vertical"];
	if (verticalStr != nil) {
		vertical = [verticalStr integerValue];
	} else {
		vertical = 0;
	}

	UIViewController* currentController = [[[UIApplication sharedApplication]
                                            keyWindow] rootViewController];

    ISRViewOrientation orientation = (ISRViewOrientation)[orientationStr integerValue];

    ISRHtmlView* htmlView = [[ISRHtmlView alloc]
                             initWithHtmlData:htmlData percentage:(int)percentage
                             ratio:(int)ratio vertical:(int)vertical
                             orientation:orientation];

    UIView* previousView = [ISRMessageHandlerFactory getCurrentView];
    if (previousView != nil) {
        [previousView removeFromSuperview];
    }
    [ISRMessageHandlerFactory setCurrentView:htmlView];

    [htmlView setTranslatesAutoresizingMaskIntoConstraints:false];
    [[currentController view] addSubview:htmlView];

    NSLayoutConstraint* withConstraint = [NSLayoutConstraint
                                          constraintWithItem:htmlView attribute:NSLayoutAttributeWidth
                                          relatedBy:NSLayoutRelationEqual toItem:[currentController view]
                                          attribute:NSLayoutAttributeWidth multiplier:1.0 constant:0];

    NSLayoutConstraint* heightConstraint = [NSLayoutConstraint
                                            constraintWithItem:htmlView attribute:NSLayoutAttributeHeight
                                            relatedBy:NSLayoutRelationEqual toItem:[currentController view]
                                            attribute:NSLayoutAttributeHeight multiplier:1.0 constant:0];

    [NSLayoutConstraint activateConstraints:[[NSArray alloc] initWithObjects:
                                             withConstraint, heightConstraint,
                                             nil]];
}

@end


text:
import { createSelector } from 'reselect';
import { isPreviewMediaDialogOpenSelector } from './dialogSelectors';
import { isMutedSelector, volumeSelector } from './settingSelectors';
import { currentTimeSelector } from './timeSelectors';
import { currentUserSelector, currentUserHasRoleSelector, usersSelector } from './userSelectors';

var baseSelector = function baseSelector(state) {
  return state.booth;
};

export var historyIDSelector = createSelector(baseSelector, function (booth) {
  return booth.historyID;
});
export var mediaSelector = createSelector(baseSelector, function (booth) {
  return booth.media;
});
export var startTimeSelector = createSelector(baseSelector, function (booth) {
  return booth.startTime || 0;
});
export var mediaDurationSelector = createSelector(mediaSelector, function (media) {
  return media ? media.end - media.start : 0;
});
export var endTimeSelector = createSelector(startTimeSelector, mediaDurationSelector, function (startTime, duration) {
  return startTime + duration * 1000 || 0;
});
export var timeElapsedSelector = createSelector(startTimeSelector, currentTimeSelector, // in seconds! because media duration is in seconds, too.
function (startTime, currentTime) {
  return startTime ? Math.max((currentTime - startTime) / 1000, 0) : 0;
});
export var timeRemainingSelector = createSelector(mediaDurationSelector, timeElapsedSelector, function (duration, elapsed) {
  return duration > 0 ? duration - elapsed : 0;
});
export var mediaProgressSelector = createSelector(mediaDurationSelector, timeElapsedSelector, function (duration, elapsed) {
  return duration // Ensure that the result is between 0 and 1
  // It can be outside this range if a network or server hiccup
  // results in an advance event getting delayed.
  ? Math.max(0, Math.min(1, elapsed / duration)) : 0;
});
export var djSelector = createSelector(baseSelector, usersSelector, function (booth, users) {
  return users[booth.djID];
});
export var isCurrentDJSelector = createSelector(djSelector, currentUserSelector, function (dj, me) {
  return dj && me ? dj._id === me._id : false;
});
export var canSkipSelector = createSelector(historyIDSelector, isCurrentDJSelector, currentUserHasRoleSelector, function (historyID, isCurrentDJ, hasRole) {
  if (!historyID) {
    return false;
  }

  return isCurrentDJ ? hasRole('booth.skip.self') : hasRole('booth.skip.other');
}); // Playback should be muted when the user requested it,
// and when a media preview dialog is open. (Otherwise their audio will interfere.)

var playbackMutedSelector = createSelector(isMutedSelector, isPreviewMediaDialogOpenSelector, function (isMuted, isPreviewMediaDialogOpen) {
  return isMuted || isPreviewMediaDialogOpen;
});
export var playbackVolumeSelector = createSelector(volumeSelector, playbackMutedSelector, function (volume, isMuted) {
  return isMuted ? 0 : volume;
});
export var mobilePlaybackVolumeSelector = createSelector(playbackMutedSelector, function (isMuted) {
  return isMuted ? 0 : 100;
});
//# sourceMappingURL=boothSelectors.js.map


text:
"""Simple Mako renderer.

Just a wrapper around the mako rendering library.

"""

import getopt
import imp
import os
import cPickle as pickle
import shutil
import sys

from mako.lookup import TemplateLookup
from mako.runtime import Context
from mako.template import Template
import bunch
import yaml

# Imports a plugin
def import_plugin(name):
  _, base_ex = os.path.split(name)
  base, _ = os.path.splitext(base_ex)

  with open(name, 'r') as plugin_file:
    plugin_code = plugin_file.read()
  plugin_module = imp.new_module(base)
  exec plugin_code in plugin_module.__dict__
  return plugin_module

def out(msg):
  print >> sys.stderr, msg

def showhelp():
  out('mako-renderer.py [-o out] [-m cache] [-P preprocessed_input] [-d dict] [-d dict...]'
      ' [-t template] [-w preprocessed_output]')

def main(argv):
  got_input = False
  module_directory = None
  preprocessed_output = None
  dictionary = {}
  json_dict = {}
  got_output = False
  plugins = []
  output_name = None
  got_preprocessed_input = False
  output_merged = None

  try:
    opts, args = getopt.getopt(argv, 'hM:m:d:o:p:t:P:w:')
  except getopt.GetoptError:
    out('Unknown option')
    showhelp()
    sys.exit(2)

  for opt, arg in opts:
    if opt == '-h':
      out('Displaying showhelp')
      showhelp()
      sys.exit()
    elif opt == '-o':
      if got_output:
        out('Got more than one output')
        showhelp()
        sys.exit(3)
      got_output = True
      output_name = arg
    elif opt == '-m':
      if module_directory is not None:
        out('Got more than one cache directory')
        showhelp()
        sys.exit(4)
      module_directory = arg
    elif opt == '-M':
      if output_merged is not None:
        out('Got more than one output merged path')
        showhelp()
        sys.exit(5)
      output_merged = arg
    elif opt == '-P':
      assert not got_preprocessed_input
      assert json_dict == {}
      sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), 'plugins')))
      with open(arg, 'r') as dict_file:
        dictionary = pickle.load(dict_file)
      got_preprocessed_input = True
    elif opt == '-d':
      assert not got_preprocessed_input
      with open(arg, 'r') as dict_file:
        bunch.merge_json(json_dict, yaml.load(dict_file.read()))
    elif opt == '-p':
      plugins.append(import_plugin(arg))
    elif opt == '-w':
      preprocessed_output = arg

  if not got_preprocessed_input:
    for plugin in plugins:
      plugin.mako_plugin(json_dict)
    if output_merged:
      with open(output_merged, 'w') as yaml_file:
        yaml_file.write(yaml.dump(json_dict))
    for k, v in json_dict.items():
      dictionary[k] = bunch.to_bunch(v)

  if preprocessed_output:
    with open(preprocessed_output, 'w') as dict_file:
      pickle.dump(dictionary, dict_file)

  cleared_dir = False
  for arg in args:
    got_input = True
    with open(arg) as f:
      srcs = list(yaml.load_all(f.read()))
    for src in srcs:
      if isinstance(src, basestring):
        assert len(srcs) == 1
        template = Template(src,
                            filename=arg,
                            module_directory=module_directory,
                            lookup=TemplateLookup(directories=['.']))
        with open(output_name, 'w') as output_file:
          template.render_context(Context(output_file, **dictionary))
      else:
        # we have optional control data: this template represents
        # a directory
        if not cleared_dir:
          if not os.path.exists(output_name):
            pass
          elif os.path.isfile(output_name):
            os.unlink(output_name)
          else:
            shutil.rmtree(output_name, ignore_errors=True)
          cleared_dir = True
        items = []
        if 'foreach' in src:
          for el in dictionary[src['foreach']]:
            if 'cond' in src:
              args = dict(dictionary)
              args['selected'] = el
              if not eval(src['cond'], {}, args):
                continue
            items.append(el)
          assert items
        else:
          items = [None]
        for item in items:
          args = dict(dictionary)
          args['selected'] = item
          item_output_name = os.path.join(
              output_name, Template(src['output_name']).render(**args))
          if not os.path.exists(os.path.dirname(item_output_name)):
            os.makedirs(os.path.dirname(item_output_name))
          template = Template(src['template'],
                              filename=arg,
                              module_directory=module_directory,
                              lookup=TemplateLookup(directories=['.']))
          with open(item_output_name, 'w') as output_file:
            template.render_context(Context(output_file, **args))

  if not got_input and not preprocessed_output:
    out('Got nothing to do')
    showhelp()

if __name__ == '__main__':
  main(sys.argv[1:])


text:
[INCOMPLETE]

> ### Elm codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the [RealWorld](https://github.com/gothinkster/realworld) spec and API.

This codebase was created to demonstrate a fully fledged fullstack application built with Elm including CRUD operations, authentication, routing, pagination, and more.

## Purpose
Even though a version for this app was made, I wanted to make my own and learn more about Elm.
I also wanted to try to track my progress with a log.

## Development

`elm-live --output=elm.js src/Main.elm --pushstate --open --debug`


text:
"""SMPC AST Creation.

__init__ file for SMPC. This defines various modules, classes and methods which we currently support.
We create an AST for all these modules, classes and methods so that they can be called remotely.
"""
# stdlib
from typing import Optional

# relative
from ...ast import add_classes
from ...ast import add_methods
from ...ast import add_modules
from ...ast.globals import Globals
from ..node.abstract.node import AbstractNodeClient
from .store import CryptoStore

from .protocol import beaver  # noqa: 401 isort: skip

def create_smpc_ast(client: Optional[AbstractNodeClient] = None) -> Globals:
    """Creates SMPC Abstract Syntax Tree (AST).
        Define a set of modules, classes and methods which are used for the creation of the SMPC AST.

    Args:
        client (Optional[AbstractNodeClient]):  Input client object for AST operations.

    Returns:
        The constructed SMPC AST.
    """
    ast = Globals(client)

    modules = [
        "syft",
        "syft.core",
        "syft.core.smpc",
        "syft.core.smpc.store",
        "syft.core.smpc.protocol",
        "syft.core.smpc.protocol.spdz",
        "syft.core.smpc.protocol.spdz.spdz",
    ]

    classes = [
        (
            "syft.core.smpc.store.CryptoStore",
            "syft.core.smpc.store.CryptoStore",
            CryptoStore,
        ),
    ]

    methods = [
        (
            "syft.core.smpc.store.CryptoStore.get_primitives_from_store",
            "syft.lib.python.List",
        ),
        ("syft.core.smpc.store.CryptoStore.store", "syft.lib.python.Dict"),
        (
            "syft.core.smpc.store.CryptoStore.populate_store",
            "syft.lib.python._SyNone",
        ),
    ]

    add_modules(ast, modules)
    add_classes(ast, classes)
    add_methods(ast, methods)

    for klass in ast.classes:
        klass.create_pointer_class()
        klass.create_send_method()
        klass.create_storable_object_attr_convenience_methods()

    return ast


text:
package loon.core.graphics.device;

public class RectF {
	public RectF(float l, float t, float r, float b) {
		left = l;
		top = t;
		right = r;
		bottom = b;
	}

	public RectF() {
		top = 0;
		left = 0;
		right = 0;
		bottom = 0;
	}

	public float top;
	public float left;
	public float right;
	public float bottom;

	public float width() {
		return Math.abs(right - left);
	}

	public float height() {
		return Math.abs(bottom - top);
	}

	public void set(float l, float t, float r, float b) {
		left = l;
		top = t;
		right = r;
		bottom = b;
	}
}


text:
package libstorage

import (
	"crypto/md5"
	"crypto/tls"
	"fmt"
	"io"
	"os"

	log "github.com/Sirupsen/logrus"
	"github.com/akutz/gofig"
	"github.com/akutz/goof"

	"github.com/emccode/libstorage/api/context"
	"github.com/emccode/libstorage/api/types"
	"github.com/emccode/libstorage/api/utils"
)

type client struct {
	types.APIClient
	ctx             types.Context
	config          gofig.Config
	clientType      types.ClientType
	serviceCache    *lss
	lsxCache        *lss
	instanceIDCache types.Store
}

func (c *client) isController() bool {
	return c.clientType == types.ControllerClient
}

func (c *client) dial(ctx types.Context) error {

	ctx.WithField("path", lsxMutex).Info("lsx lock file path")

	svcInfos, err := c.Services(ctx)
	if err != nil {
		return err
	}

	// controller clients do not have any additional dialer logic
	if c.isController() {
		return nil
	}

	store := utils.NewStore()
	c.ctx = c.ctx.WithValue(context.ServerKey, c.ServerName())

	if !c.config.GetBool(types.ConfigExecutorNoDownload) {

		ctx.Info("initializing executors cache")
		if _, err := c.Executors(ctx); err != nil {
			return err
		}

		if err := c.updateExecutor(ctx); err != nil {
			return err
		}
	}

	for service, _ := range svcInfos {
		ctx := c.ctx.WithValue(context.ServiceKey, service)
		ctx.Info("initializing instance ID cache")
		if _, err := c.InstanceID(ctx, store); err != nil {
			return err
		}
	}

	return nil
}

func getHost(proto, lAddr string, tlsConfig *tls.Config) string {
	if tlsConfig != nil && tlsConfig.ServerName != "" {
		return tlsConfig.ServerName
	} else if proto == "unix" {
		return "libstorage-server"
	} else {
		return lAddr
	}
}

func (c *client) getServiceInfo(service string) (*types.ServiceInfo, error) {

	if si := c.serviceCache.GetServiceInfo(service); si != nil {
		return si, nil
	}
	return nil, goof.WithField("name", service, "unknown service")
}

func (c *client) updateExecutor(ctx types.Context) error {

	if c.isController() {
		return utils.NewUnsupportedForClientTypeError(
			c.clientType, "updateExecutor")
	}

	ctx.Debug("updating executor")

	lsxi := c.lsxCache.GetExecutorInfo(types.LSX.Name())
	if lsxi == nil {
		return goof.WithField("lsx", types.LSX, "unknown executor")
	}

	ctx.Debug("waiting on executor lock")
	if err := c.lsxMutexWait(); err != nil {
		return err
	}
	defer func() {
		ctx.Debug("signalling executor lock")
		if err := c.lsxMutexSignal(); err != nil {
			panic(err)
		}
	}()

	if !types.LSX.Exists() {
		ctx.Debug("executor does not exist, download executor")
		return c.downloadExecutor(ctx)
	}

	ctx.Debug("executor exists, getting local checksum")

	checksum, err := c.getExecutorChecksum(ctx)
	if err != nil {
		return err
	}

	if lsxi.MD5Checksum != checksum {
		ctx.WithFields(log.Fields{
			"remoteChecksum": lsxi.MD5Checksum,
			"localChecksum":  checksum,
		}).Debug("executor checksums do not match, download executor")
		return c.downloadExecutor(ctx)
	}

	return nil
}

func (c *client) getExecutorChecksum(ctx types.Context) (string, error) {

	if c.isController() {
		return "", utils.NewUnsupportedForClientTypeError(
			c.clientType, "getExecutorChecksum")
	}

	ctx.Debug("getting executor checksum")

	f, err := os.Open(types.LSX.String())
	if err != nil {
		return "", err
	}
	defer f.Close()

	h := md5.New()
	buf := make([]byte, 1024)
	for {
		n, err := f.Read(buf)
		if err == io.EOF {
			break
		}
		if err != nil {
			return "", err
		}
		if _, err := h.Write(buf[:n]); err != nil {
			return "", err
		}
	}

	sum := fmt.Sprintf("%x", h.Sum(nil))
	ctx.WithField("localChecksum", sum).Debug("got local executor checksum")
	return sum, nil
}

func (c *client) downloadExecutor(ctx types.Context) error {

	if c.isController() {
		return utils.NewUnsupportedForClientTypeError(
			c.clientType, "downloadExecutor")
	}

	ctx.Debug("downloading executor")

	f, err := os.OpenFile(
		types.LSX.String(),
		os.O_CREATE|os.O_RDWR|os.O_TRUNC,
		0755)
	if err != nil {
		return err
	}

	defer f.Close()

	rdr, err := c.APIClient.ExecutorGet(ctx, types.LSX.Name())
	n, err := io.Copy(f, rdr)
	if err != nil {
		return err
	}

	if err := f.Sync(); err != nil {
		return err
	}

	ctx.WithField("bytes", n).Debug("downloaded executor")
	return nil
}


text:
Fungus
======

The goal of Fungus is to provide a free, open source tool for creating interactive storytelling games in Unity 3D. Fungus is designed to be easy to learn for beginners to Unity 3D, especially for people with no coding experience. For power users, it provides an intuitive, fast workflow for visual scripting and interactive storytelling. Fungus is being used to create Visual Novels, Point and Click Adventure Games, Childrens Stories, Hidden Object Games, eLearning apps and also some frankly weird stuff which defies classification :)

- Author: Chris Gregan
- Website: fungusgames.com
- Email: chris@fungusgames.com
- Twtter: @gofungus
- Facebook: facebook.com/fungusgames

Installation
============

Download & installation instructions and tutorial videos are available on the official Fungus website.
http://fungusgames.com/download

Support
=======

If you have questions about Fungus, please search our forum first as someone may have had the same issue already. If you can't find an answer please start a new discussion and we'll answer you as soon as we can. Fungus is designed for beginners and we love to hear from users so please don't be shy about posting!
http://fungusgames.com/forum

Contributing
============

Many thanks to everyone who has contributed code to the project.
https://github.com/fungusgames/fungus/graphs/contributors

If you would like to contribute a bug fix or new feature, please submit a pull request on github. If you are interested in contributing in some other way (art, audio, documentation, pizza) just email me at chris at snozbot.com.


text:
<?xml version="1.0" encoding="utf-8"?>
<ColorSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <FontColor>White</FontColor>
  <FontOutlineColor>#867A96</FontOutlineColor>
  <BarColor>#4F484B</BarColor>
  <BarOutlineColor>#373737</BarOutlineColor>
</ColorSet>


text:
https://github.com/socialgorithm/ultimate-ttt-js/tree/master

command to run:
java -cp "lib/java-json.jar;classes" com.theaigames.tictactoe.Tictactoe "node C:/Users/username/bot/BotStarter.js" "node C:/Users/username/bot/BotStarter.js" 2>err.txt 1>out.txt

against old bot:
(54, 47, 57)/100
52.6/100

added blocking enemy completes
(58, 57, 64)/100
59.66/100

against random bot:
(79,90)/100
84.5/100


text:
{% if site.theme_settings.footer_text %}

{{ site.theme_settings.footer_text }}

                {% include icons.html %}

{% endif %}


text:
      Authorize access to Google Sheets API

      <button id="authorize-button" onclick="handleAuthClick(event)">
        Authorize
      </button>


text:
[![Gem Version](https://badge.fury.io/rb/smart_csv.png)](http://badge.fury.io/rb/smart_csv)
[![Build Status](https://travis-ci.org/raglub/smart_csv.png)](https://travis-ci.org/raglub/smart_csv)
[![Code Climate](https://codeclimate.com/github/raglub/smart_csv.png)](https://codeclimate.com/github/raglub/smart_csv)
[![Dependency Status](https://gemnasium.com/raglub/smart_csv.png)](https://gemnasium.com/raglub/smart_csv)
[![Coverage Status](https://coveralls.io/repos/raglub/smart_csv/badge.png)](https://coveralls.io/r/raglub/smart_csv)

Extend CSV class. CSV can delete or select some records.

Compatible with:
Ruby 1.9.2, 1.9.3, and 2.0.0

# Getting started

For Example we can use following data

```ruby
data = "id,firstname,lastname\n1,One,One\n2,Two,Two\n4,One,Four\n5,One,Five"
csv = CSV.parse(data, {:col_sep => ',', :headers => true}
```

And now we can:

* create a new record

```ruby
csv.create("id"=> '13', "lastname" => '1992')
```

* select records

```ruby
csv.where('firstname' => 'One').where_not('id' => '4')
```
* select opposite records

```ruby
csv.not{where('firstname' => 'One')}
```

* select records which satisfy two conditions

```ruby
csv.where('firstname' => 'One').and{lt('id', 4)}
```

* select records which satisfy one of two conditions

```ruby
csv.where('firstname' => 'One').or{where('firstname' => 'Two')}
```

* update record

```ruby
csv.where('firstname' => 'One').first.update({"lastname" => "Seven", "wartosc" => 2012}) }
```

* delete all records

```ruby
csv.delete_all
```

* delete all records from scope of condition

```ruby
csv.where('firstname' => 'One').delete_all
```

* select all records which have 'id' attribute greater than 2

```ruby
csv.gt('id', '2')
```

* select all records which have 'id' attribute greater or equal 2

```ruby
csv.ge('id', '2')
```

* select all records which have 'id' attribute less than 2

```ruby
csv.lt('id', '2')
```

* select all records which have 'id' attribute less or equal 2

```ruby
csv.le('id', '2')
```

* select all records which have 'firstname' attribute equal 'Tom'

```ruby
csv.eq('firstname', 'Tom')
```

* select all records which have 'firstname' attribute not equal 'Tom'

```ruby
csv.ne('firstname', 'Tom')
```

# License

SmartCSV uses the MIT license. Please check the [LICENSE][] file for more details.

[license]: https://github.com/raglub/smart_csv/blob/master/LICENSE


text:
package mx.udlap.settheory;

import java.util.*;

import mx.udlap.sofia.R;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.EditText;
import android.widget.TextView;

public class Solve_solver extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_solve_solver);
		// Obtenemos los datos de nuestra otra actividad y lo asginamos al EditText (Resultado)
		Bundle extras = getIntent().getExtras();
		String resultado = extras.getString("resultado");

		 TextView textconjuntoa = (TextView) findViewById(R.id.textResult);

		 textconjuntoa.setText(resultado);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.solve_solver, menu);
		return true;
	}

}


text:
<?php

namespace GXSelenium\Engine\Provider\Traits;

use Facebook\WebDriver\Remote\RemoteWebDriver;
use Facebook\WebDriver\Remote\RemoteWebElement;

/**
 * Trait MouseTrait
 * @package GXSelenium\Engine\Provider\Traits
 */
trait MouseTrait
{
	/**
	 * Move the web drivers mouse to the expected element.
	 *
	 * @param RemoteWebElement $element Element to hover.
	 * @param bool|null        $click   (Optional) Click at the hovered element after moving.
	 *
	 * @return MouseTrait|$this Same instance for chained method calls.
	 */
	public function moveMouseToElement(RemoteWebElement $element, $click = null)
	{
		$mouse = $this->getWebDriver()->getMouse()->mouseMove($element->getCoordinates());
		($click) ? $mouse->click() : null;

		return $this;
	}

	/**
	 * Returns the web driver instance.
	 *
	 * @return RemoteWebDriver
	 */
	abstract public function getWebDriver();
}


text:
using System.Diagnostics.Contracts;

namespace Test
{
    internal class Class
    {
        internal string Method{caret}()
        {
            Contract.Ensures(true);

            return "";
        }
    }
}