text:
.class public final Landroid/security/keymaster/KeymasterDefs;
.super Ljava/lang/Object;
.source "KeymasterDefs.java"

# static fields
.field public static final HW_AUTH_FINGERPRINT:I = 0x2

.field public static final HW_AUTH_PASSWORD:I = 0x1

.field public static final KM_ALGORITHM_AES:I = 0x20

.field public static final KM_ALGORITHM_EC:I = 0x3

.field public static final KM_ALGORITHM_HMAC:I = 0x80

.field public static final KM_ALGORITHM_RSA:I = 0x1

.field public static final KM_BIGNUM:I = -0x80000000

.field public static final KM_BLOB_REQUIRES_FILE_SYSTEM:I = 0x1

.field public static final KM_BLOB_STANDALONE:I = 0x0

.field public static final KM_BOOL:I = 0x70000000

.field public static final KM_BYTES:I = -0x70000000

.field public static final KM_DATE:I = 0x60000000

.field public static final KM_DIGEST_MD5:I = 0x1

.field public static final KM_DIGEST_NONE:I = 0x0

.field public static final KM_DIGEST_SHA1:I = 0x2

.field public static final KM_DIGEST_SHA_2_224:I = 0x3

.field public static final KM_DIGEST_SHA_2_256:I = 0x4

.field public static final KM_DIGEST_SHA_2_384:I = 0x5

.field public static final KM_DIGEST_SHA_2_512:I = 0x6

.field public static final KM_ENUM:I = 0x10000000

.field public static final KM_ENUM_REP:I = 0x20000000

.field public static final KM_ERROR_CALLER_NONCE_PROHIBITED:I = -0x37

.field public static final KM_ERROR_CONCURRENT_ACCESS_CONFLICT:I = -0x2f

.field public static final KM_ERROR_DELEGATION_NOT_ALLOWED:I = -0x17

.field public static final KM_ERROR_IMPORTED_KEY_DECRYPTION_FAILED:I = -0x23

.field public static final KM_ERROR_IMPORTED_KEY_NOT_ENCRYPTED:I = -0x22

.field public static final KM_ERROR_IMPORTED_KEY_NOT_SIGNED:I = -0x24

.field public static final KM_ERROR_IMPORTED_KEY_VERIFICATION_FAILED:I = -0x25

.field public static final KM_ERROR_IMPORT_PARAMETER_MISMATCH:I = -0x2c

.field public static final KM_ERROR_INCOMPATIBLE_ALGORITHM:I = -0x5

.field public static final KM_ERROR_INCOMPATIBLE_BLOCK_MODE:I = -0x8

.field public static final KM_ERROR_INCOMPATIBLE_DIGEST:I = -0xd

.field public static final KM_ERROR_INCOMPATIBLE_KEY_FORMAT:I = -0x12

.field public static final KM_ERROR_INCOMPATIBLE_PADDING_MODE:I = -0xb

.field public static final KM_ERROR_INCOMPATIBLE_PURPOSE:I = -0x3

.field public static final KM_ERROR_INSUFFICIENT_BUFFER_SPACE:I = -0x1d

.field public static final KM_ERROR_INVALID_ARGUMENT:I = -0x26

.field public static final KM_ERROR_INVALID_AUTHORIZATION_TIMEOUT:I = -0x10

.field public static final KM_ERROR_INVALID_EXPIRATION_TIME:I = -0xe

.field public static final KM_ERROR_INVALID_INPUT_LENGTH:I = -0x15

.field public static final KM_ERROR_INVALID_KEY_BLOB:I = -0x21

.field public static final KM_ERROR_INVALID_MAC_LENGTH:I = -0x39

.field public static final KM_ERROR_INVALID_NONCE:I = -0x34

.field public static final KM_ERROR_INVALID_OPERATION_HANDLE:I = -0x1c

.field public static final KM_ERROR_INVALID_RESCOPING:I = -0x2a

.field public static final KM_ERROR_INVALID_TAG:I = -0x28

.field public static final KM_ERROR_INVALID_USER_ID:I = -0xf

.field public static final KM_ERROR_KEY_EXPIRED:I = -0x19

.field public static final KM_ERROR_KEY_EXPORT_OPTIONS_INVALID:I = -0x16

.field public static final KM_ERROR_KEY_MAX_OPS_EXCEEDED:I = -0x38

.field public static final KM_ERROR_KEY_NOT_YET_VALID:I = -0x18

.field public static final KM_ERROR_KEY_RATE_LIMIT_EXCEEDED:I = -0x36

.field public static final KM_ERROR_KEY_USER_NOT_AUTHENTICATED:I = -0x1a

.field public static final KM_ERROR_MEMORY_ALLOCATION_FAILED:I = -0x29

.field public static final KM_ERROR_MISSING_MAC_LENGTH:I = -0x35

.field public static final KM_ERROR_MISSING_MIN_MAC_LENGTH:I = -0x3a

.field public static final KM_ERROR_MISSING_NONCE:I = -0x33

.field public static final KM_ERROR_OK:I = 0x0

.field public static final KM_ERROR_OPERATION_CANCELLED:I = -0x2e

.field public static final KM_ERROR_OUTPUT_PARAMETER_NULL:I = -0x1b

.field public static final KM_ERROR_ROOT_OF_TRUST_ALREADY_SET:I = -0x1

.field public static final KM_ERROR_SECURE_HW_ACCESS_DENIED:I = -0x2d

.field public static final KM_ERROR_SECURE_HW_BUSY:I = -0x30

.field public static final KM_ERROR_SECURE_HW_COMMUNICATION_FAILED:I = -0x31

.field public static final KM_ERROR_TOO_MANY_OPERATIONS:I = -0x1f

.field public static final KM_ERROR_UNEXPECTED_NULL_POINTER:I = -0x20

.field public static final KM_ERROR_UNIMPLEMENTED:I = -0x64

.field public static final KM_ERROR_UNKNOWN_ERROR:I = -0x3e8

.field public static final KM_ERROR_UNSUPPORTED_ALGORITHM:I = -0x4

.field public static final KM_ERROR_UNSUPPORTED_BLOCK_MODE:I = -0x7

.field public static final KM_ERROR_UNSUPPORTED_DIGEST:I = -0xc

.field public static final KM_ERROR_UNSUPPORTED_EC_FIELD:I = -0x32

.field public static final KM_ERROR_UNSUPPORTED_KEY_ENCRYPTION_ALGORITHM:I = -0x13

.field public static final KM_ERROR_UNSUPPORTED_KEY_FORMAT:I = -0x11

.field public static final KM_ERROR_UNSUPPORTED_KEY_SIZE:I = -0x6

.field public static final KM_ERROR_UNSUPPORTED_KEY_VERIFICATION_ALGORITHM:I = -0x14

.field public static final KM_ERROR_UNSUPPORTED_MAC_LENGTH:I = -0x9

.field public static final KM_ERROR_UNSUPPORTED_MIN_MAC_LENGTH:I = -0x3b

.field public static final KM_ERROR_UNSUPPORTED_PADDING_MODE:I = -0xa

.field public static final KM_ERROR_UNSUPPORTED_PURPOSE:I = -0x2

.field public static final KM_ERROR_UNSUPPORTED_TAG:I = -0x27

.field public static final KM_ERROR_VERIFICATION_FAILED:I = -0x1e

.field public static final KM_ERROR_VERSION_MISMATCH:I = -0x65

.field public static final KM_INVALID:I = 0x0

.field public static final KM_KEY_FORMAT_PKCS8:I = 0x1

.field public static final KM_KEY_FORMAT_RAW:I = 0x3

.field public static final KM_KEY_FORMAT_X509:I = 0x0

.field public static final KM_MODE_CBC:I = 0x2

.field public static final KM_MODE_CTR:I = 0x3

.field public static final KM_MODE_ECB:I = 0x1

.field public static final KM_MODE_GCM:I = 0x20

.field public static final KM_ORIGIN_GENERATED:I = 0x0

.field public static final KM_ORIGIN_IMPORTED:I = 0x2

.field public static final KM_ORIGIN_UNKNOWN:I = 0x3

.field public static final KM_PAD_NONE:I = 0x1

.field public static final KM_PAD_PKCS7:I = 0x40

.field public static final KM_PAD_RSA_OAEP:I = 0x2

.field public static final KM_PAD_RSA_PKCS1_1_5_ENCRYPT:I = 0x4

.field public static final KM_PAD_RSA_PKCS1_1_5_SIGN:I = 0x5

.field public static final KM_PAD_RSA_PSS:I = 0x3

.field public static final KM_PURPOSE_DECRYPT:I = 0x1

.field public static final KM_PURPOSE_ENCRYPT:I = 0x0

.field public static final KM_PURPOSE_SIGN:I = 0x2

.field public static final KM_PURPOSE_VERIFY:I = 0x3

.field public static final KM_TAG_ACTIVE_DATETIME:I = 0x60000190

.field public static final KM_TAG_ALGORITHM:I = 0x10000002

.field public static final KM_TAG_ALL_APPLICATIONS:I = 0x70000258

.field public static final KM_TAG_ALL_USERS:I = 0x700001f4

.field public static final KM_TAG_APPLICATION_DATA:I = -0x6ffffd44

.field public static final KM_TAG_APPLICATION_ID:I = -0x6ffffda7

.field public static final KM_TAG_ASSOCIATED_DATA:I = -0x6ffffc18

.field public static final KM_TAG_AUTH_TIMEOUT:I = 0x300001f9

.field public static final KM_TAG_AUTH_TOKEN:I = -0x6ffffc16

.field public static final KM_TAG_BLOB_USAGE_REQUIREMENTS:I = 0x100002c1

.field public static final KM_TAG_BLOCK_MODE:I = 0x20000004

.field public static final KM_TAG_CALLER_NONCE:I = 0x70000007

.field public static final KM_TAG_CREATION_DATETIME:I = 0x600002bd

.field public static final KM_TAG_DIGEST:I = 0x20000005

.field public static final KM_TAG_INVALID:I = 0x0

.field public static final KM_TAG_KEY_SIZE:I = 0x30000003

.field public static final KM_TAG_MAC_LENGTH:I = 0x300003eb

.field public static final KM_TAG_MAX_USES_PER_BOOT:I = 0x30000194

.field public static final KM_TAG_MIN_MAC_LENGTH:I = 0x30000008

.field public static final KM_TAG_MIN_SECONDS_BETWEEN_OPS:I = 0x30000193

.field public static final KM_TAG_NONCE:I = -0x6ffffc17

.field public static final KM_TAG_NO_AUTH_REQUIRED:I = 0x700001f7

.field public static final KM_TAG_ORIGIN:I = 0x100002be

.field public static final KM_TAG_ORIGINATION_EXPIRE_DATETIME:I = 0x60000191

.field public static final KM_TAG_PADDING:I = 0x20000006

.field public static final KM_TAG_PURPOSE:I = 0x20000001

.field public static final KM_TAG_RESCOPING_ADD:I = 0x20000065

.field public static final KM_TAG_RESCOPING_DEL:I = 0x20000066

.field public static final KM_TAG_ROLLBACK_RESISTANT:I = 0x700002bf

.field public static final KM_TAG_ROOT_OF_TRUST:I = -0x6ffffd40

.field public static final KM_TAG_RSA_PUBLIC_EXPONENT:I = 0x500000c8

.field public static final KM_TAG_USAGE_EXPIRE_DATETIME:I = 0x60000192

.field public static final KM_TAG_USER_AUTH_TYPE:I = 0x100001f8

.field public static final KM_TAG_USER_ID:I = 0x300001f5

.field public static final KM_TAG_USER_SECURE_ID:I = -0x5ffffe0a

.field public static final KM_UINT:I = 0x30000000

.field public static final KM_UINT_REP:I = 0x40000000

.field public static final KM_ULONG:I = 0x50000000

.field public static final KM_ULONG_REP:I = -0x60000000

.field public static final sErrorCodeToString:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Ljava/lang/Integer;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

# direct methods
.method static constructor <clinit>()V
    .registers 3

    .prologue
    .line 205
    new-instance v0, Ljava/util/HashMap;

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

    sput-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    .line 207
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/4 v1, 0x0

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "OK"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 208
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/4 v1, -0x2

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Unsupported purpose"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 209
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/4 v1, -0x3

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Incompatible purpose"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 210
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/4 v1, -0x4

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Unsupported algorithm"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 211
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/4 v1, -0x5

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Incompatible algorithm"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 212
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/4 v1, -0x6

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Unsupported key size"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 213
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/4 v1, -0x7

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Unsupported block mode"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 214
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/4 v1, -0x8

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Incompatible block mode"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 215
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0x9

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    .line 216
    const-string/jumbo v2, "Unsupported MAC or authentication tag length"

    .line 215
    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 217
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0xa

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Unsupported padding mode"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 218
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0xb

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Incompatible padding mode"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 219
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0xc

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Unsupported digest"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 220
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0xd

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Incompatible digest"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 221
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0xe

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Invalid expiration time"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 222
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0xf

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Invalid user ID"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 223
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0x10

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    .line 224
    const-string/jumbo v2, "Invalid user authorization timeout"

    .line 223
    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 225
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0x11

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Unsupported key format"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 226
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0x12

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Incompatible key format"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 227
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0x15

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Invalid input length"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 228
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0x18

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Key not yet valid"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 229
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0x19

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Key expired"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 230
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0x1a

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Key user not authenticated"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 231
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0x1c

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Invalid operation handle"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 232
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0x1e

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Signature/MAC verification failed"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 233
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0x1f

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Too many operations"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 234
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0x21

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Invalid key blob"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 235
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0x26

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Invalid argument"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 236
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0x27

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Unsupported tag"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 237
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0x28

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Invalid tag"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 238
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0x29

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Memory allocation failed"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 239
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0x32

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Unsupported EC field"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 240
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0x33

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Required IV missing"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 241
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0x34

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Invalid IV"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 242
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0x37

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    .line 243
    const-string/jumbo v2, "Caller-provided IV not permitted"

    .line 242
    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 244
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0x39

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    .line 245
    const-string/jumbo v2, "Invalid MAC or authentication tag length"

    .line 244
    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 246
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0x64

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Not implemented"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 247
    sget-object v0, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    const/16 v1, -0x3e8

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string/jumbo v2, "Unknown error"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 28
    return-void
.end method

.method private constructor <init>()V
    .registers 1

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

    return-void
.end method

.method public static getErrorMessage(I)Ljava/lang/String;
    .registers 4
    .param p0, "errorCode"    # I

    .prologue
    .line 255
    sget-object v1, Landroid/security/keymaster/KeymasterDefs;->sErrorCodeToString:Ljava/util/Map;

    invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-interface {v1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 256
    .local v0, "result":Ljava/lang/String;
    if-eqz v0, :cond_f

    .line 257
    return-object v0

    .line 259
    :cond_f
    invoke-static {p0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public static getTagType(I)I
    .registers 2
    .param p0, "tag"    # I

    .prologue
    .line 251
    const/high16 v0, -0x10000000

    and-int/2addr v0, p0

    return v0
.end method


text:
<?php /* Smarty version 2.6.28, created on 2016-03-16 21:55:12
         compiled from page/checkout/basket.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'oxmultilang', 'page/checkout/basket.tpl', 10, false),array('function', 'oxscript', 'page/checkout/basket.tpl', 49, false),)), $this); ?>
<?php ob_start(); ?>

        <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "page/checkout/inc/steps.tpl", 'smarty_include_vars' => array('active' => 1)));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

        <?php $this->assign('currency', $this->_tpl_vars['oView']->getActCurrency()); ?>
        <?php if (! $this->_tpl_vars['oxcmp_basket']->getProductsCount()): ?>

<?php echo smarty_function_oxmultilang(array('ident' => 'BASKET_EMPTY'), $this);?>

        <?php else: ?>

                    <?php if ($this->_tpl_vars['oView']->showBackToShop()): ?>

                                <form action="<?php echo $this->_tpl_vars['oViewConf']->getSslSelfLink(); ?>
" method="post">
                                    <?php echo $this->_tpl_vars['oViewConf']->getHiddenSid(); ?>

                                    <input type="hidden" name="cl" value="basket">
                                    <input type="hidden" name="fnc" value="backtoshop">
                                    <button type="submit" class="submitButton largeButton"><?php echo smarty_function_oxmultilang(array('ident' => 'CONTINUE_SHOPPING'), $this);?>
</button>
                                </form>

                    <?php endif; ?>

                    <?php if ($this->_tpl_vars['oView']->isLowOrderPrice()): ?>

<?php echo smarty_function_oxmultilang(array('ident' => 'MIN_ORDER_PRICE'), $this);?>
 <?php echo $this->_tpl_vars['oView']->getMinOrderPrice(); ?>
 <?php echo $this->_tpl_vars['currency']->sign; ?>

                    <?php else: ?>

                            <form action="<?php echo $this->_tpl_vars['oViewConf']->getSslSelfLink(); ?>
" method="post">
                                <?php echo $this->_tpl_vars['oViewConf']->getHiddenSid(); ?>

                                <input type="hidden" name="cl" value="user">
                                <button type="submit" class="submitButton largeButton nextStep"><?php echo smarty_function_oxmultilang(array('ident' => 'CONTINUE_TO_NEXT_STEP'), $this);?>
</button>
                            </form>

                    <?php endif; ?>

                <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "page/checkout/inc/basketcontents.tpl", 'smarty_include_vars' => array('editable' => true)));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

                <?php if ($this->_tpl_vars['oViewConf']->getShowVouchers()): ?>

                        <?php echo smarty_function_oxscript(array('include' => "js/widgets/oxinputvalidator.js",'priority' => 10), $this);?>

                        <?php echo smarty_function_oxscript(array('add' => "$('form.js-oxValidate').oxInputValidator();"), $this);?>

                            <form name="voucher" action="<?php echo $this->_tpl_vars['oViewConf']->getSelfActionLink(); ?>
" method="post" class="js-oxValidate">

                                    <?php $_from = $this->_tpl_vars['Errors']['basket']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['oEr']):
?>
                                        <?php if ($this->_tpl_vars['oEr']->getErrorClassType() == 'oxVoucherException'): ?>

                                                <?php echo smarty_function_oxmultilang(array('ident' => 'COUPON_NOT_ACCEPTED','args' => $this->_tpl_vars['oEr']->getValue('voucherNr')), $this);?>

                                                <?php echo smarty_function_oxmultilang(array('ident' => 'REASON','suffix' => 'COLON'), $this);?>

                                                <?php echo $this->_tpl_vars['oEr']->getOxMessage(); ?>

                                        <?php endif; ?>
                                    <?php endforeach; endif; unset($_from); ?>
                                    <?php echo smarty_function_oxmultilang(array('ident' => 'ENTER_COUPON_NUMBER','suffix' => 'COLON'), $this);?>

                                    <?php echo $this->_tpl_vars['oViewConf']->getHiddenSid(); ?>

                                    <input type="hidden" name="cl" value="basket">
                                    <input type="hidden" name="fnc" value="addVoucher">
                                    <input type="text" size="20" name="voucherNr" class="textbox js-oxValidate js-oxValidate_notEmpty">
                                    <button type="submit" class="submitButton"><?php echo smarty_function_oxmultilang(array('ident' => 'SUBMIT_COUPON'), $this);?>
</button>

                                        <?php echo smarty_function_oxmultilang(array('ident' => 'ERROR_MESSAGE_INPUT_NOTALLFIELDS'), $this);?>

                                    <input type="hidden" name="CustomError" value='basket'>

                            </form>

                <?php endif; ?>

                    <?php if ($this->_tpl_vars['oView']->showBackToShop()): ?>

                            <form action="<?php echo $this->_tpl_vars['oViewConf']->getSslSelfLink(); ?>
" method="post">

                                    <?php echo $this->_tpl_vars['oViewConf']->getHiddenSid(); ?>

                                    <input type="hidden" name="cl" value="basket">
                                    <input type="hidden" name="fnc" value="backtoshop">
                                    <button type="submit" class="submitButton largeButton"><?php echo smarty_function_oxmultilang(array('ident' => 'CONTINUE_SHOPPING'), $this);?>
</button>

                            </form>

                    <?php endif; ?>

                    <?php if ($this->_tpl_vars['oView']->isLowOrderPrice()): ?>

<?php echo smarty_function_oxmultilang(array('ident' => 'MIN_ORDER_PRICE'), $this);?>
 <?php echo $this->_tpl_vars['oView']->getMinOrderPrice(); ?>
 <?php echo $this->_tpl_vars['currency']->sign; ?>

                    <?php else: ?>

                            <form action="<?php echo $this->_tpl_vars['oViewConf']->getSslSelfLink(); ?>
" method="post">
                                <?php echo $this->_tpl_vars['oViewConf']->getHiddenSid(); ?>

                                <input type="hidden" name="cl" value="user">
                                <button type="submit" class="submitButton largeButton nextStep"><?php echo smarty_function_oxmultilang(array('ident' => 'CONTINUE_TO_NEXT_STEP'), $this);?>
</button>
                            </form>

                    <?php endif; ?>

        <?php endif; ?>
        <?php if ($this->_tpl_vars['oView']->isWrapping()): ?>
           <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "page/checkout/inc/wrapping.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
        <?php endif; ?>

<?php $this->_smarty_vars['capture']['default'] = ob_get_contents();  $this->append('oxidBlock_content', ob_get_contents());ob_end_clean(); ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "layout/page.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

redpajama_set_name: RedPajamaGithub


text:
package net.iskandar.examples.chat.smartgwt.client;

import net.iskandar.examples.chat.app.client.mvp.ChatApplication;
import net.iskandar.examples.chat.app.client.mvp.views.ChatView;
import net.iskandar.examples.chat.app.client.mvp.views.ViewFactory;

public class ViewFactoryImpl implements ViewFactory {

	@Override
	public ChatView createChatView() {
		ChatPanel chatPanel = new ChatPanel();
		chatPanel.setMargin(5);
//		chatPanel.setBorder("2px solid red");
		chatPanel.setVisible(false);
		chatPanel.getElement().addClassName("chat-panel");
		return chatPanel;
	}

}


text:
import unittest
from unittest.mock import MagicMock
from pythonforandroid import logger

class TestShprint(unittest.TestCase):

    def test_unicode_encode(self):
        """
        Makes sure `shprint()` can handle unicode command output.
        Running the test with PYTHONIOENCODING=ASCII env would fail, refs:
        https://github.com/kivy/python-for-android/issues/1654
        """
        expected_command_output = ["foo\xa0bar"]
        command = MagicMock()
        command.return_value = expected_command_output
        output = logger.shprint(command, 'a1', k1='k1')
        self.assertEqual(output, expected_command_output)


text: .. automodule:: orgviz.default_config


text:
Creates an instance.

```csharp
public GenerateRequestDto()
```

## See Also

* class [GenerateRequestDto](../GenerateRequestDto.md)
* namespace [Facility.GeneratorApi](../../Facility.GeneratorApi.md)

<!-- DO NOT EDIT: generated by xmldocmd for Facility.GeneratorApi.dll -->


text:
import React from 'react'

export default function Loading() {
    return
Logging you in...

}


text:
package net.lshift.hibernate.migrations;

import org.junit.Test;

import java.sql.Connection;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;

import static net.lshift.hibernate.migrations.HibernateHelper.mockExecutablePreparedStatement;
import static net.lshift.hibernate.migrations.HibernateHelper.mockExecutablePreparedStatementForUpdate;
import static org.easymock.EasyMock.*;

public class CopyTableBuilderTest {

  @Test
  public void shouldCopyColumns() throws Exception {
    MigrationBuilder mb = new MigrationBuilder(HibernateHelper.configuration());

    Iterable<String> sourceCols = Arrays.asList("foo", "bar", "baz");
    Iterable<String> destCols = Arrays.asList("foo", "bar2", "baz");
    mb.copyTableContents("src", "dest", sourceCols, destCols);

    Connection conn = createStrictMock(Connection.class);

    expect(conn.prepareStatement("insert into dest(foo,bar2,baz) select foo,bar,baz from src")).andReturn(mockExecutablePreparedStatementForUpdate(1));
    replay(conn);

    mb.apply(conn);
    verify(conn);
  }

  @Test
  public void shouldCopyColumnsWithPredicate() throws Exception {
    MigrationBuilder mb = new MigrationBuilder(HibernateHelper.configuration());

    Iterable<String> sourceCols = Arrays.asList("foo", "bar", "baz");
    Iterable<String> destCols = Arrays.asList("foo", "bar2", "baz");
    Map<String,String> predicates = new HashMap<String,String>();
    predicates.put("foo", "a");
    predicates.put("bar", "b");

    mb.copyTableContents("src", "dest", sourceCols, destCols).whereSource(predicates);

    Connection conn = createStrictMock(Connection.class);

    String sql = "insert into dest(foo,bar2,baz) select foo,bar,baz from src where foo = 'a' and bar = 'b'";

    expect(conn.prepareStatement(sql)).andReturn(mockExecutablePreparedStatementForUpdate(1));
    replay(conn);

    mb.apply(conn);
    verify(conn);
  }

  @Test
  public void shouldCopyColumnsUsingSingleJoin() throws Exception {
    MigrationBuilder mb = new MigrationBuilder(HibernateHelper.configuration());

    Iterable<String> sourceCols = Arrays.asList("id", "bar", "baz");
    Iterable<String> destCols = Arrays.asList("foo", "bar2", "baz", "c1", "c2");
    Iterable<String> nnCols = Arrays.asList("nn1", "nn2");

    Map<String,String> predicate = new HashMap<String,String>();
    predicate.put("predicate_column","predicate_value");

    mb.copyTableContents("src", "dest", sourceCols, destCols).
       join("join_table", "src_id", "id", Arrays.asList("kol1", "kol2")).
       whereSource(predicate).
       notNull(nnCols);

    Connection conn = createStrictMock(Connection.class);

    String sql =  "insert into dest(foo,bar2,baz,c1,c2) " +
                  "select s.id,s.bar,s.baz,j0.kol1,j0.kol2 from src s, join_table j0 "+
                  "where j0.src_id = s.id "+
                  "and nn1 is not null "+
                  "and nn2 is not null "+
                  "and s.predicate_column = 'predicate_value'";

    expect(conn.prepareStatement(sql)).andReturn(mockExecutablePreparedStatementForUpdate(1));
    replay(conn);

    mb.apply(conn);
    verify(conn);
  }

  private void verifySqlMatches(String sql, MigrationBuilder mb) throws Exception {
    Connection conn = createStrictMock(Connection.class);

    expect(conn.prepareStatement(sql)).andReturn(mockExecutablePreparedStatementForUpdate(1));
    replay(conn);

    mb.apply(conn);
    verify(conn);
  }

  @Test
  public void shouldFilterOutNullsAsDirected() throws Exception {
    MigrationBuilder mb = new MigrationBuilder(HibernateHelper.configuration());

    Iterable<String> cols = Arrays.asList("id");
    Iterable<String> notNulls = Arrays.asList("nn1", "nn2");
    mb.copyTableContents("src", "dest", cols, cols).notNull(notNulls);

    String sql = "insert into dest(id) " +
        "select id from src " +
        "where nn1 is not null " +
        "and nn2 is not null";

    verifySqlMatches(sql, mb);
  }

  @Test
  public void shouldCopyColumnsUsingSingleJoinWithConstants() throws Exception {
    MigrationBuilder mb = new MigrationBuilder(HibernateHelper.configuration());

    Iterable<String> sourceCols = Arrays.asList("id", "bar", "baz");
    Iterable<String> destCols = Arrays.asList("foo", "bar2", "baz", "c1", "c2");

    Map<String,String> predicate = new HashMap<String,String>();
    predicate.put("predicate_column","predicate_value");

    mb.copyTableContents("src", "dest", sourceCols, destCols).
        join("join_table", "src_id", "id", Arrays.asList("kol1", "kol2")).
        whereSource(predicate).
        withConstant("constant_column", "constant_value");

    Connection conn = createStrictMock(Connection.class);

    String sql =  "insert into dest(foo,bar2,baz,c1,c2,constant_column) " +
        "select s.id,s.bar,s.baz,j0.kol1,j0.kol2,'constant_value' from src s, join_table j0 "+
        "where j0.src_id = s.id and s.predicate_column = 'predicate_value'";

    expect(conn.prepareStatement(sql)).andReturn(mockExecutablePreparedStatementForUpdate(1));
    replay(conn);

    mb.apply(conn);
    verify(conn);
  }

  @Test(expected = IllegalArgumentException.class)
  public void shouldDetectWhenWrongNumberOfColumnsAreSpecified() throws Exception {
    MigrationBuilder mb = new MigrationBuilder(HibernateHelper.configuration());

    // "foo", "bar", "baz" come from the source table
    // "kol1", "kol2" come from the join table
    // The destination table only specifies "foo", "bar", "baz", therefore it should blow up

    Iterable<String> sourceCols = Arrays.asList("foo", "bar", "baz");
    Iterable<String> destCols = Arrays.asList("bar2", "baz", "c1", "c2");

    Map<String,String> predicate = new HashMap<String,String>();
    predicate.put("predicate_column","predicate_value");

    mb.copyTableContents("src", "dest", sourceCols, destCols).
        join("join_table", "src_id", "id", Arrays.asList("kol1", "kol2")).
        whereSource(predicate);

    Connection conn = createStrictMock(Connection.class);

    String sql =  "insert into dest(foo,bar2,baz,c1,c2) " +
        "select s.id,s.bar,s.baz,j0.kol1,j0.kol2 from src s, join_table j0 "+
        "where j0.src_id = s.id and s.predicate_column = 'predicate_value'";

    expect(conn.prepareStatement(sql)).andReturn(mockExecutablePreparedStatementForUpdate(1));
    replay(conn);

    mb.apply(conn);
    verify(conn);
  }

  @Test
  public void shouldCopyColumnsUsingMulitpleJoins() throws Exception {
    MigrationBuilder mb = new MigrationBuilder(HibernateHelper.configuration());

    Iterable<String> sourceCols = Arrays.asList("id", "bar", "baz");
    Iterable<String> destCols = Arrays.asList("foo", "bar2", "baz", "c1", "c2", "c3", "c4");

    Map<String,String> predicate = new HashMap<String,String>();
    predicate.put("predicate_column","predicate_value");

    mb.copyTableContents("src", "dest", sourceCols, destCols).
        join("join_table_0", "0_src_id", "id", Arrays.asList("kol1", "kol2")).
        join("join_table_1", "1_src_id", "id", Arrays.asList("kol3", "kol4")).
        whereSource(predicate);

    Connection conn = createStrictMock(Connection.class);

    String sql = "insert into dest(foo,bar2,baz,c1,c2,c3,c4) " +
                 "select s.id,s.bar,s.baz,j0.kol1,j0.kol2,j1.kol3,j1.kol4 "+
                 "from src s, join_table_0 j0,join_table_1 j1 " +
                 "where j0.0_src_id = s.id " +
                 "and j1.1_src_id = s.id " +
                 "and s.predicate_column = 'predicate_value'";

    expect(conn.prepareStatement(sql)).andReturn(mockExecutablePreparedStatementForUpdate(1));
    replay(conn);

    mb.apply(conn);
    verify(conn);
  }

  @Test
  public void shouldCopyColumnsUsingMulitpleJoinsWithoutUsingSourceColumnsInResultSet() throws Exception {
    MigrationBuilder mb = new MigrationBuilder(HibernateHelper.configuration());

    Iterable<String> sourceCols = Arrays.asList();
    Iterable<String> destCols = Arrays.asList("c1", "c2", "c3", "c4");

    Map<String,String> predicate = new HashMap<String,String>();
    predicate.put("predicate_column","predicate_value");

    mb.copyTableContents("src", "dest", sourceCols, destCols).
        join("join_table_0", "0_src_id", "id", Arrays.asList("kol1", "kol2")).
        join("join_table_1", "1_src_id", "id", Arrays.asList("kol3", "kol4")).
        whereSource(predicate);

    Connection conn = createStrictMock(Connection.class);

    String sql = "insert into dest(c1,c2,c3,c4) " +
        "select j0.kol1,j0.kol2,j1.kol3,j1.kol4 " +
        "from src s, join_table_0 j0,join_table_1 j1 " +
        "where j0.0_src_id = s.id " +
        "and j1.1_src_id = s.id " +
        "and s.predicate_column = 'predicate_value'";

    expect(conn.prepareStatement(sql)).andReturn(mockExecutablePreparedStatementForUpdate(1));
    replay(conn);

    mb.apply(conn);
    verify(conn);
  }
}


text:
package io.qameta.allure.jira;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * Jira launch export data.
 */
@Data
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class JiraLaunch {

    private String externalId;

    private List<String> issueKeys;

    private String name;
    private String url;
    private Long date;

    private Long failed;
    private Long broken;
    private Long passed;
    private Long skipped;
    private Long unknown;

}


text:
<option value="" selected="selected">Select a category</option>
{% for i in c %}
<option value="1">{{i}}</option>
{% endfor %}


text:
#ifdef _MSC_VER
# pragma warning (disable : 4996) // POSIX name for this item is deprecated
# pragma warning (disable : 4224) // nonstandard extension used : formal parameter 'arg' was previously defined as a type
# pragma warning (disable : 4180) // qualifier applied to function type has no meaning; ignored
#endif

#include <boost/math/concepts/real_concept.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/math/tools/stats.hpp>
#include <boost/math/tools/test.hpp>
#include <boost/math/constants/constants.hpp>
#include <boost/type_traits/is_floating_point.hpp>
#include <boost/array.hpp>
#include "functor.hpp"

#include "test_beta_hooks.hpp"
#include "handle_test_result.hpp"
#include "table_type.hpp"

#undef small // VC++ #defines small char !!!!!!

#ifndef SC_
#define SC_(x) static_cast<typename table_type<T>::type>(BOOST_JOIN(x, L))
#endif

template <class Real, class T>
void do_test_beta(const T& data, const char* type_name, const char* test_name)
{
   typedef Real                   value_type;

   typedef value_type (*pg)(value_type, value_type);
#if defined(BOOST_MATH_NO_DEDUCED_FUNCTION_POINTERS)
   pg funcp = boost::math::beta<value_type, value_type>;
#else
   pg funcp = boost::math::beta;
#endif

   boost::math::tools::test_result<value_type> result;

   std::cout << "Testing " << test_name << " with type " << type_name
      << "\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";

   //
   // test beta against data:
   //
   result = boost::math::tools::test_hetero<Real>(
      data,
      bind_func<Real>(funcp, 0, 1),
      extract_result<Real>(2));
   handle_test_result(result, data[result.worst()], result.worst(), type_name, "boost::math::beta", test_name);
#ifdef TEST_OTHER
   if(::boost::is_floating_point<value_type>::value){
      funcp = other::beta;
      result = boost::math::tools::test_hetero<Real>(
         data,
         bind_func<Real>(funcp, 0, 1),
         extract_result<Real>(2));
      print_test_result(result, data[result.worst()], result.worst(), type_name, "other::beta");
   }
#endif
   std::cout << std::endl;
}
template <class T>
void test_beta(T, const char* name)
{
   //
   // The actual test data is rather verbose, so it's in a separate file
   //
   // The contents are as follows, each row of data contains
   // three items, input value a, input value b and beta(a, b):
   //
#  include "beta_small_data.ipp"

   do_test_beta<T>(beta_small_data, name, "Beta Function: Small Values");

#  include "beta_med_data.ipp"

   do_test_beta<T>(beta_med_data, name, "Beta Function: Medium Values");

#  include "beta_exp_data.ipp"

   do_test_beta<T>(beta_exp_data, name, "Beta Function: Divergent Values");
}

template <class T>
void test_spots(T)
{
   //
   // Basic sanity checks, tolerance is 20 epsilon expressed as a percentage:
   //
   T tolerance = boost::math::tools::epsilon<T>() * 20 * 100;
   T small = boost::math::tools::epsilon<T>() / 1024;
   BOOST_CHECK_CLOSE(::boost::math::beta(static_cast<T>(1), static_cast<T>(1)), static_cast<T>(1), tolerance);
   BOOST_CHECK_CLOSE(::boost::math::beta(static_cast<T>(1), static_cast<T>(4)), static_cast<T>(0.25), tolerance);
   BOOST_CHECK_CLOSE(::boost::math::beta(static_cast<T>(4), static_cast<T>(1)), static_cast<T>(0.25), tolerance);
   BOOST_CHECK_CLOSE(::boost::math::beta(small, static_cast<T>(4)), 1/small, tolerance);
   BOOST_CHECK_CLOSE(::boost::math::beta(static_cast<T>(4), small), 1/small, tolerance);
   BOOST_CHECK_CLOSE(::boost::math::beta(static_cast<T>(4), static_cast<T>(20)), static_cast<T>(0.00002823263692828910220214568040654997176736L), tolerance);
   BOOST_CHECK_CLOSE(::boost::math::beta(static_cast<T>(0.0125L), static_cast<T>(0.000023L)), static_cast<T>(43558.24045647538375006349016083320744662L), tolerance);
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<scriptmodule xmlns="http://xlt.xceptance.com/xlt-script/2" version="6">
  <description>Validate customer name on MyAccount page.</description>
  <parameter name="firstname" desc="firstname"/>
  <parameter name="lastname" desc="lastname"/>
  <command name="assertText" target="css=#primary h1" value="*My Account |*@{firstname}*@{lastname}*"/>
</scriptmodule>


text:
<include file="Public:head" />
	<link href="__PUBLIC__/Js/kindeditor/themes/default/default.css" rel="stylesheet" />

		<form id="form_login" class="ajaxForm" method="POST" action="{:U('Group/addgroup')}" notip="1" jumpurl="{:U('Group/manage')}" parentjump="1">

						名称:

						<input type="text" name="g_name" value="" require="true" datatype="require" />

						地区:

						<select class="regionlevel" level="1" action="{:U('Region/queryChildren')}">
							<option value="0">请选择省份</option>
							<volist name="regionLevel1" id="region">
								<option value="{$region.region_id}">{$region.region_name}</option>
							</volist>
						</select>
						<select name="g_region_id" require="true" datatype="integer"  class="regionlevel" level="2"></select>

						说明:

						<textarea name="g_description" id="g_description" rows="10" cols="35" placeholder="请填写"></textarea>

TAG:

						<volist name="gptaglist" id="gptag">
							<input type="checkbox" name="gptag[]" value="{$gptag.gt_id}" />{$gptag.gt_name}
						</volist>

标志图片

						<input type="hidden" name="icon_path" id="icon_path" value="" />

<input type="button" id="uploadIconButton" value="上传" />

						取消
						<input class="sub floatright" type="submit" value="确定" />

</form>


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using MIMER.RFC2045.Pattern;
using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;

namespace MIMERTests.RFC2045.Pattern
{
    [TestFixture]
    public class ContentTypePatternTests
    {
        [Test]
        public void MatchTesst()
        {
            string field = "Content-Type: Multipart/Mixed;boundary=\"Boundary-00=_T7P340MWKGMMYJ0CCJD0\"";
            ContentTypePattern pattern = new ContentTypePattern();
            Assert.That(pattern.RegularExpression.IsMatch(field), Iz.True);
        }

        [Test]
        public void MatchComponentsTest()
        {
            string field = "Content-Type: Multipart/Mixed;boundary=\"Boundary-00=_T7P340MWKGMMYJ0CCJD0\"";
            ContentTypePattern pattern = new ContentTypePattern();
            Match match = pattern.RegularExpression.Match(field);
            Assert.That(match.Value, Iz.EqualTo("Content-Type: Multipart/Mixed;boundary=\"Boundary-00=_T7P340MWKGMMYJ0CCJD0\""));
        }
    }
}


text:
var assert = require('assert');
var httpHelper = require('./helpers/httpHelper.js');
var appHelper = require('./helpers/appHelper');

describe('router :: ', function() {
	describe('View routes', function() {
		var appName = 'testApp';

		before(function(done) {
			appHelper.build(function(err) {
				// console.log('before chdir ' + appName + ', cwd was :: ' + process.cwd());
				process.chdir(appName);
				// console.log('after chdir ' + appName + ', new cwd is :: ' + process.cwd());
				if (err) return done(err);
				done();
			});
		});

		after(function() {
			// console.log('before `chdir ../`' + ', cwd was :: ' + process.cwd());
			process.chdir('../');
			// console.log('after `chdir ../`' + ', cwd was :: ' + process.cwd());
			appHelper.teardown();
		});

		describe('with default routing', function() {

			it('should respond to a get request to localhost:1337 with welcome page', function(done) {

				httpHelper.testRoute('get', '', function(err, response) {
					if (err) return done(new Error(err));

					assert(response.body.indexOf('not found') < 0);
					done();
				});
			});
		});

		xdescribe('with no specified routing', function() {

			it('should respond to get request to :controller with the template at views/:controller/index.ejs', function(done) {

				// Empty router file
				httpHelper.writeRoutes({});

				httpHelper.testRoute('get', 'viewTest', function(err, response) {
					if (err) return done(new Error(err));

					assert(response.body.indexOf('indexView') !== -1);
					done();
				});
			});

			it('should respond to get request to :controller/:action with the template at views/:controller/:action.ejs', function(done) {

				httpHelper.testRoute('get', 'viewTest/create', function(err, response) {
					if (err) return done(new Error(err));

					assert(response.body.indexOf('createView') !== -1);
					done();
				});
			});
		});
	});
});


text:
import React from 'react'
import PropTypes from 'prop-types'
import createReactClass from 'create-react-class'
import ItemShow from './ItemShow'
import CollectionPageHeader from '../../layout/CollectionPageHeader'
import PageContent from '../../layout/PageContent'
import CollectionPageFooter from '../../layout/CollectionPageFooter'
import ConfigurationActions from '../../actions/ConfigurationActions'
import ConfigurationStore from '../../store/ConfigurationStore'
import Loading from '../../other/Loading'
import PageTitle from '../../modules/PageTitle'
import BrowserUtils from '../../modules/BrowserUtils'
import LoadRemote from '../../modules/LoadRemote'
const showcaseTitleHeight = 56

const Item = createReactClass({
  propTypes: {
    collection: PropTypes.string,
    item: PropTypes.string,
  },

  getInitialState: function () {
    return {
      collection: null,
      item: null,
      height: window.innerHeight,
    }
  },

  configurationLoaded: function () {
    this.setState({ configurationLoaded: true })
  },

  collectionLoaded: function (collection) {
    ConfigurationActions.load(collection)
    this.setState({
      remoteCollectionLoaded: true,
      collection: collection,
    }, this.handleResize)
  },

  itemLoaded: function (result) {
    this.setState({
      remoteItemLoaded: true,
      item: result.items,
    })
  },

  componentWillMount: function () {
    ConfigurationStore.addChangeListener(this.configurationLoaded)
  },

  componentWillUnmount: function () {
    ConfigurationStore.removeChangeListener(this.configurationLoaded)
    window.removeEventListener('resize', this.handleResize)
  },

  componentDidMount: function () {
    LoadRemote.withCallback(this.props.collection, this.collectionLoaded)
    LoadRemote.withCallback(this.props.item, this.itemLoaded)
    window.addEventListener('resize', this.handleResize, false)
    this.handleResize()
  },

  componentWillReceiveProps: function (nextProps) {
    let itemLoaded = this.state.remoteItemLoaded
    let collectionLoaded = this.state.remoteCollectionLoaded
    if (this.props.item !== nextProps.item) {
      LoadRemote.withCallback(nextProps.item, this.itemLoaded.bind(this))
      itemLoaded = false
    }

    if (this.props.collection !== nextProps.collection) {
      LoadRemote.withCallback(nextProps.collection, this.collectionLoaded.bind(this))
      collectionLoaded = false
    }

    this.setState({
      remoteItemLoaded: itemLoaded,
      remoteCollectionLoaded: collectionLoaded,
    })
  },

  handleResize: function () {
    this.setState({
      height: window.innerHeight,
    })
  },

  render: function () {
    if (!this.state.remoteCollectionLoaded || !this.state.remoteItemLoaded) {
      return null
    }
    PageTitle(this.state.item.name)
    let itemShow

    if (this.state.item) {
      itemShow = (
        <ItemShow
          collection={this.state.collection}
          item={this.state.item}
          height={this.state.mobile ? window.innerHeight : window.innerHeight - showcaseTitleHeight}
          title={this.state.item.name}
        />
      )
    } else {
      itemShow = (<Loading />)
    }
    let header
    if (!BrowserUtils.mobile()) {
      header = (<CollectionPageHeader collection={this.state.collection} />)
    }
    return (
      <div style={{ backgroundColor: 'inherit' }}>
        {header}
        <PageContent fluidLayout>
          {itemShow}
        </PageContent>
        <CollectionPageFooter />
      </div>
    )
  },
})

export default Item


text:
cd distribution
cd ..
zip -9 -r  prisonbroke.zip . --exclude=.git/\* --exclude=distribution/\*
mv prisonbroke.zip distribution/prisonbroke.love
cd distribution

# .1 nur um meine gitignore zu umschiffen

unzip love-0.9.1-win32.zip.1
mv love-0.9.1-win32 Prisonbroke
cat Prisonbroke/love.exe prisonbroke.love > Prisonbroke/Prisonbroke.exe
rm Prisonbroke/love.exe
zip -9 -r Prisonbroke_Win32.zip Prisonbroke/
rm -rf Prisonbroke

unzip love-0.9.1-win64.zip.1
mv love-0.9.1-win64 Prisonbroke
cat Prisonbroke/love.exe prisonbroke.love > Prisonbroke/Prisonbroke.exe
rm Prisonbroke/love.exe
zip -9 -r Prisonbroke_Win64.zip Prisonbroke/
rm -rf Prisonbroke

cp prisonbroke.love prisonbroke_source.zip


text:
package org.apache.ambari.server.api.resources;

import java.util.HashSet;
import java.util.Set;

import org.apache.ambari.server.controller.spi.Resource;

/**
 * Job resource definition.
 */
public class JobResourceDefinition extends BaseResourceDefinition {

  /**
   * Constructor.
   */
  public JobResourceDefinition() {
    super(Resource.Type.Job);
  }

  @Override
  public String getPluralName() {
    return "jobs";
  }

  @Override
  public String getSingularName() {
    return "job";
  }

  @Override
  public Set<SubResourceDefinition> getSubResourceDefinitions() {
    Set<SubResourceDefinition> setChildren = new HashSet<>();
    setChildren.add(new SubResourceDefinition(Resource.Type.TaskAttempt));
    return setChildren;
  }
}


text:
#pragma once
#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
#include <aws/greengrassv2/GreengrassV2Request.h>

namespace Aws
{
namespace GreengrassV2
{
namespace Model
{

  /**
   */
  class AWS_GREENGRASSV2_API DisassociateServiceRoleFromAccountRequest : public GreengrassV2Request
  {
  public:
    DisassociateServiceRoleFromAccountRequest();

    // Service request name is the Operation name which will send this request out,
    // each operation should has unique request name, so that we can get operation's name from this request.
    // Note: this is not true for response, multiple operations may have the same response name,
    // so we can not get operation's name from response.
    inline virtual const char* GetServiceRequestName() const override { return "DisassociateServiceRoleFromAccount"; }

    Aws::String SerializePayload() const override;

  };

} // namespace Model
} // namespace GreengrassV2
} // namespace Aws


text:
package fi.helsinki.cs.iot.kahvihub;

import java.util.Map;

import fi.helsinki.cs.iot.hub.model.enabler.Plugin;
import fi.helsinki.cs.iot.hub.model.enabler.PluginException;
import fi.helsinki.cs.iot.hub.model.feed.FeatureDescription;
import fi.helsinki.cs.iot.kahvihub.plugin.KahvihubNativeFeatureDescription;
import fi.helsinki.cs.iot.kahvihub.plugin.KahvihubNativePlugin;

/**
 * This class makes the bridge between the native plugin interface (unknown from the core library)
 * and the plugin interface from the core library.
 * @author Julien Mineraud <julien.mineraud@cs.helsinki.fi>
 */
public class KahvihubNativePluginWrapper implements Plugin {

	private final KahvihubNativePlugin plugin;

	/**
	 * @param plugin
	 */
	public KahvihubNativePluginWrapper(KahvihubNativePlugin plugin) {
		this.plugin = plugin;
	}

	/* (non-Javadoc)
	 * @see fi.helsinki.cs.iot.hub.model.enabler.Plugin#isConfigured()
	 */
	@Override
	public boolean isConfigured() {
		return plugin.isConfigured();
	}

	/* (non-Javadoc)
	 * @see fi.helsinki.cs.iot.hub.model.enabler.Plugin#needConfiguration()
	 */
	@Override
	public boolean needConfiguration() {
		return plugin.needConfiguration();
	}

	/* (non-Javadoc)
	 * @see fi.helsinki.cs.iot.hub.model.enabler.Plugin#reconfigure(java.lang.String)
	 */
	@Override
	public boolean configure(String configuration) {
		return plugin.configure(configuration);
	}

	/* (non-Javadoc)
	 * @see fi.helsinki.cs.iot.hub.model.enabler.Plugin#compareConfiguration(java.lang.String)
	 */
	@Override
	public boolean compareConfiguration(String configuration) {
		return plugin.compareConfiguration(configuration);
	}

	/* (non-Javadoc)
	 * @see fi.helsinki.cs.iot.hub.model.enabler.Plugin#getConfigurationFromHtmlForm(java.util.Map, java.util.Map)
	 */
	@Override
	public String getConfigurationFromHtmlForm(Map<String, String> parameters,
			Map<String, String> files) {
		return plugin.getConfigurationFromHtmlForm(parameters, files);
	}

	@Override
	public String getConfigurationHtmlForm() {
		return plugin.getConfigurationHtmlForm();
	}

	/* (non-Javadoc)
	 * @see fi.helsinki.cs.iot.hub.model.enabler.Plugin#getFeatureDescription(int)
	 */
	@Override
	public FeatureDescription getFeatureDescription(int index) {
		KahvihubNativeFeatureDescription nfd = plugin.getFeatureDescription(index);
		if (nfd == null) {
			return null;
		}
		else {
			return new FeatureDescription(nfd.getName(), nfd.getType());
		}
	}

	/* (non-Javadoc)
	 * @see fi.helsinki.cs.iot.hub.model.enabler.Plugin#getNumberOfFeatures()
	 */
	@Override
	public int getNumberOfFeatures() {
		return plugin.getNumberOfFeatures();
	}

	/* (non-Javadoc)
	 * @see fi.helsinki.cs.iot.hub.model.enabler.Plugin#isAvailable(fi.helsinki.cs.iot.hub.model.feed.FeatureDescription)
	 */
	@Override
	public boolean isAvailable(FeatureDescription featureDescription) {
		if (featureDescription != null) {
			return plugin.isFeatureAvailable(
					new KahvihubNativeFeatureDescription(featureDescription.getName(), featureDescription.getType()));
		}
		else {
			return false;
		}
	}

	/* (non-Javadoc)
	 * @see fi.helsinki.cs.iot.hub.model.enabler.Plugin#isReadable(fi.helsinki.cs.iot.hub.model.feed.FeatureDescription)
	 */
	@Override
	public boolean isReadable(FeatureDescription featureDescription) {
		if (featureDescription != null) {
			return plugin.isFeatureReadable(
					new KahvihubNativeFeatureDescription(featureDescription.getName(), featureDescription.getType()));
		}
		else {
			return false;
		}
	}

	/* (non-Javadoc)
	 * @see fi.helsinki.cs.iot.hub.model.enabler.Plugin#isSupported(fi.helsinki.cs.iot.hub.model.feed.FeatureDescription)
	 */
	@Override
	public boolean isSupported(FeatureDescription featureDescription) {
		if (featureDescription != null) {
			return plugin.isFeatureSupported(
					new KahvihubNativeFeatureDescription(featureDescription.getName(), featureDescription.getType()));
		}
		else {
			return false;
		}
	}

	/* (non-Javadoc)
	 * @see fi.helsinki.cs.iot.hub.model.enabler.Plugin#isWritable(fi.helsinki.cs.iot.hub.model.feed.FeatureDescription)
	 */
	@Override
	public boolean isWritable(FeatureDescription featureDescription) {
		if (featureDescription != null) {
			return plugin.isFeatureWritable(
					new KahvihubNativeFeatureDescription(featureDescription.getName(), featureDescription.getType()));
		}
		else {
			return false;
		}
	}

	@Override
	public String getValue(FeatureDescription featureDescription) {
		if (featureDescription != null) {
			return plugin.getValue(
					new KahvihubNativeFeatureDescription(featureDescription.getName(), featureDescription.getType()));
		}
		else {
			return null;
		}
	}

	@Override
	public boolean postValue(FeatureDescription featureDescription, String value) {
		if (featureDescription != null) {
			return plugin.postValue(
					new KahvihubNativeFeatureDescription(featureDescription.getName(), featureDescription.getType()), value);
		}
		else {
			return false;
		}
	}

	@Override
	public void close() throws PluginException {
		// TODO Auto-generated method stub

	}

	@Override
	public void run() throws PluginException {
		// TODO Auto-generated method stub

	}

}


text:
> Assembly Version Changed: 2.80.0.0 vs 0.0.0.0

### New Namespace SkiaSharp.Views.UWP

#### New Type: SkiaSharp.Views.UWP.Extensions

```csharp
public static class Extensions {
	// methods
	public static System.Drawing.PointF ToDrawingPoint (this SkiaSharp.SKPoint point);
	public static System.Drawing.Point ToDrawingPoint (this SkiaSharp.SKPointI point);
	public static System.Drawing.RectangleF ToDrawingRect (this SkiaSharp.SKRect rect);
	public static System.Drawing.Rectangle ToDrawingRect (this SkiaSharp.SKRectI rect);
	public static System.Drawing.SizeF ToDrawingSize (this SkiaSharp.SKSize size);
	public static System.Drawing.Size ToDrawingSize (this SkiaSharp.SKSizeI size);
	public static SkiaSharp.SKPointI ToSKPoint (this System.Drawing.Point point);
	public static SkiaSharp.SKPoint ToSKPoint (this System.Drawing.PointF point);
	public static SkiaSharp.SKRectI ToSKRect (this System.Drawing.Rectangle rect);
	public static SkiaSharp.SKRect ToSKRect (this System.Drawing.RectangleF rect);
	public static SkiaSharp.SKSizeI ToSKSize (this System.Drawing.Size size);
	public static SkiaSharp.SKSize ToSKSize (this System.Drawing.SizeF size);
}
```

#### New Type: SkiaSharp.Views.UWP.GlobalStaticResources

```csharp
public sealed class GlobalStaticResources {
	// constructors
	public GlobalStaticResources ();
	// methods
	public static object FindResource (string name);
	public static void Initialize ();
}
```

#### New Type: SkiaSharp.Views.UWP.SKPaintGLSurfaceEventArgs

```csharp
public class SKPaintGLSurfaceEventArgs : System.EventArgs {
	// constructors
	public SKPaintGLSurfaceEventArgs (SkiaSharp.SKSurface surface, SkiaSharp.GRBackendRenderTarget renderTarget);

	[Obsolete]
public SKPaintGLSurfaceEventArgs (SkiaSharp.SKSurface surface, SkiaSharp.GRBackendRenderTargetDesc renderTarget);
	public SKPaintGLSurfaceEventArgs (SkiaSharp.SKSurface surface, SkiaSharp.GRBackendRenderTarget renderTarget, SkiaSharp.GRSurfaceOrigin origin, SkiaSharp.SKColorType colorType);
	public SKPaintGLSurfaceEventArgs (SkiaSharp.SKSurface surface, SkiaSharp.GRBackendRenderTarget renderTarget, SkiaSharp.GRSurfaceOrigin origin, SkiaSharp.SKColorType colorType, SkiaSharp.GRGlFramebufferInfo glInfo);
	// properties
	public SkiaSharp.GRBackendRenderTarget BackendRenderTarget { get; }
	public SkiaSharp.SKColorType ColorType { get; }
	public SkiaSharp.GRSurfaceOrigin Origin { get; }

	[Obsolete]
public SkiaSharp.GRBackendRenderTargetDesc RenderTarget { get; }
	public SkiaSharp.SKSurface Surface { get; }
}
```

#### New Type: SkiaSharp.Views.UWP.SKPaintSurfaceEventArgs

```csharp
public class SKPaintSurfaceEventArgs : System.EventArgs {
	// constructors
	public SKPaintSurfaceEventArgs (SkiaSharp.SKSurface surface, SkiaSharp.SKImageInfo info);
	// properties
	public SkiaSharp.SKImageInfo Info { get; }
	public SkiaSharp.SKSurface Surface { get; }
}
```

#### New Type: SkiaSharp.Views.UWP.SKXamlCanvas

```csharp
public class SKXamlCanvas : Windows.UI.Xaml.FrameworkElement, System.Collections.IEnumerable, Uno.UI.DataBinding.IWeakReferenceProvider, Windows.UI.Composition.IAnimationObject, Windows.UI.Composition.IVisualElement, Windows.UI.Xaml.DependencyObject, Windows.UI.Xaml.IDataContextProvider, Windows.UI.Xaml.IDependencyObjectParse, Windows.UI.Xaml.IDependencyObjectStoreProvider, Windows.UI.Xaml.ILayoutConstraints {
	// constructors
	public SKXamlCanvas ();
	// properties
	public SkiaSharp.SKSize CanvasSize { get; }
	public double Dpi { get; }
	public bool IgnorePixelScaling { get; set; }
	// events
	public event System.EventHandler<SKPaintSurfaceEventArgs> PaintSurface;
	// methods
	public override void DrawRect (CoreGraphics.CGRect dirtyRect);
	public void Invalidate ();
	protected virtual void OnPaintSurface (SKPaintSurfaceEventArgs e);
}
```

#### New Type: SkiaSharp.Views.UWP.UWPExtensions

```csharp
public static class UWPExtensions {
	// methods
	public static Windows.UI.Color ToColor (this SkiaSharp.SKColor color);
	public static Windows.Foundation.Point ToPoint (this SkiaSharp.SKPoint point);
	public static Windows.Foundation.Rect ToRect (this SkiaSharp.SKRect rect);
	public static SkiaSharp.SKColor ToSKColor (this Windows.UI.Color color);
	public static SkiaSharp.SKPoint ToSKPoint (this Windows.Foundation.Point point);
	public static SkiaSharp.SKRect ToSKRect (this Windows.Foundation.Rect rect);
	public static SkiaSharp.SKSize ToSKSize (this Windows.Foundation.Size size);
	public static Windows.Foundation.Size ToSize (this SkiaSharp.SKSize size);
}
```


text:
"""
Based entirely on Django's own ``setup.py``.
"""
import os
from distutils.command.install import INSTALL_SCHEMES
# from distutils.core import setup
from setuptools import setup

def fullsplit(path, result=None):
    """
    Split a pathname into components (the opposite of os.path.join) in a
    platform-neutral way.
    """
    if result is None:
        result = []
    head, tail = os.path.split(path)
    if head == '':
        return [tail] + result
    if head == path:
        return result
    return fullsplit(head, [tail] + result)

# Tell distutils to put the data_files in platform-specific installation
# locations. See here for an explanation:
# http://groups.google.com/group/comp.lang.python/browse_thread/thread/35ec7b2fed36eaec/2105ee4d9e8042cb
for scheme in INSTALL_SCHEMES.values():
    scheme['data'] = scheme['purelib']

# Compile the list of packages available, because distutils doesn't have
# an easy way to do this.
packages, data_files = [], []
root_dir = os.path.dirname(__file__)
tagging_dir = os.path.join(root_dir, 'eway')
pieces = fullsplit(root_dir)
if pieces[-1] == '':
    len_root_dir = len(pieces) - 1
else:
    len_root_dir = len(pieces)

for dirpath, dirnames, filenames in os.walk(tagging_dir):
    # Ignore dirnames that start with '.'
    for i, dirname in enumerate(dirnames):
        if dirname.startswith('.'): del dirnames[i]
    if '__init__.py' in filenames:
        packages.append('.'.join(fullsplit(dirpath)[len_root_dir:]))
    elif filenames:
        data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames]])

# Dynamically calculate the version based on tagging.VERSION
version_tuple = __import__('eway').VERSION
if version_tuple[2] is not None:
    version = "%d.%d_%s" % version_tuple
else:
    version = "%d.%d" % version_tuple[:2]

setup(
    name = 'python-eway',
    version = version,
    description = 'eWay API client library',
    author = 'John D\'Agostino',
    author_email = 'john.dagostino@gmail.com',
    url = 'http://code.google.com/p/python-eway/',
    packages = packages,
    data_files = data_files,
    classifiers = ['Development Status :: 4 - Beta',
                   'Intended Audience :: Developers',
                   'License :: OSI Approved :: Apache Software License',
                   'Operating System :: OS Independent',
                   'Programming Language :: Python',
                   'Topic :: Software Development :: Libraries :: Python Modules'])


text:
<link rel="stylesheet" href="footer.scss">

    ©2015 yanhaijing.com


text:
package net.anotheria.moskito.web.filters;

import net.anotheria.moskito.web.MoskitoFilter;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;

/**
 * This filter distincts by the method of the request.
 * @author lrosenberg
 *
 */
public class MethodFilter extends MoskitoFilter {

	@Override
	protected String extractCaseName(ServletRequest req, ServletResponse res) {
		if (!(req instanceof HttpServletRequest))
			return "nonhttp";
		return ((HttpServletRequest)req).getMethod();
	}
}


text:
<?php

namespace SilverStripe\GraphQL\Schema\DataObject;

use SilverStripe\Core\Config\Configurable;
use SilverStripe\Core\Injector\Injectable;
use SilverStripe\GraphQL\Schema\Exception\SchemaBuilderException;
use SilverStripe\GraphQL\Schema\Field\ModelQuery;
use SilverStripe\GraphQL\Schema\Interfaces\ModelOperation;
use SilverStripe\GraphQL\Schema\Interfaces\OperationCreator;
use SilverStripe\GraphQL\Schema\Interfaces\SchemaModelInterface;
use SilverStripe\ORM\DataList;
use Closure;

/**
 * Creates a read operation for a DataObject
 */
class ReadCreator implements OperationCreator
{
    use Injectable;
    use Configurable;

    /**
     * @param SchemaModelInterface $model
     * @param string $typeName
     * @param array $config
     * @return ModelOperation|null
     * @throws SchemaBuilderException
     */
    public function createOperation(
        SchemaModelInterface $model,
        string $typeName,
        array $config = []
    ): ?ModelOperation {
        $plugins = $config['plugins'] ?? [];
        $queryName = $config['name'] ?? null;
        $resolver = $config['resolver'] ?? null;

        if (!$queryName) {
            $pluraliser = $model->getSchemaConfig()->getPluraliser();
            $suffix = $pluraliser ? $pluraliser($typeName) : $typeName;
            $queryName = 'read' . ucfirst($suffix ?? '');
        }

        $query = ModelQuery::create($model, $queryName)
            ->setType("[$typeName!]!")
            ->setPlugins($plugins)
            ->setResolver([static::class, 'resolve'])
            ->setResolverContext([
                'dataClass' => $model->getSourceClass(),
            ]);
        if ($resolver) {
            $query->setResolver($resolver);
        }

        return $query;
    }

    /**
     * @param array $resolverContext
     * @return Closure
     */
    public static function resolve(array $resolverContext = []): Closure
    {
        $dataClass = $resolverContext['dataClass'] ?? null;
        return function () use ($dataClass) {
            if (!$dataClass) {
                return null;
            }
            return DataList::create($dataClass);
        };
    }
}


text: Just a comic strip viewer


text:
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models

class Migration(SchemaMigration):

    def forwards(self, orm):
        # Adding model 'CachedResource'
        db.create_table(u'dgsproxy_cachedresource', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('type', self.gf('django.db.models.fields.CharField')(max_length=56, null=True, db_index=True)),
            ('uri', self.gf('django.db.models.fields.CharField')(max_length=512, null=True, db_index=True)),
            ('file', self.gf('django.db.models.fields.files.FileField')(max_length=512, null=True)),
            ('status', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),
            ('created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
            ('updated', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
        ))
        db.send_create_signal(u'dgsproxy', ['CachedResource'])

    def backwards(self, orm):
        # Deleting model 'CachedResource'
        db.delete_table(u'dgsproxy_cachedresource')

    models = {
        u'dgsproxy.cachedfile': {
            'Meta': {'object_name': 'CachedFile'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'uri': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'})
        },
        u'dgsproxy.cachedresource': {
            'Meta': {'object_name': 'CachedResource'},
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'file': ('django.db.models.fields.files.FileField', [], {'max_length': '512', 'null': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'status': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
            'type': ('django.db.models.fields.CharField', [], {'max_length': '56', 'null': 'True', 'db_index': 'True'}),
            'updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
            'uri': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'db_index': 'True'})
        }
    }

    complete_apps = ['dgsproxy']


text:
var namespaceanonymous__namespace_02Ioss__Shell9_8C_03 =
[
    [ "Constants", "structanonymous__namespace_02Ioss__Shell9_8C_03_1_1Constants.html", "structanonymous__namespace_02Ioss__Shell9_8C_03_1_1Constants" ]
];


text:
from django.conf.urls import patterns, url
from resume import views

urlpatterns = patterns('',
                       url(r'^resume/$', views.resume, name='resume'),
                      )


text:
dotnet restore
dotnet publish -r win-x64 /p:Configuration=Debug
dotnet publish -r win-x64 /p:Configuration=Release
dotnet pack /p:NuspecFile=ServiceFabricSdkContrib.Applications.nuspec /p:Configuration=Release
dotnet pack /p:NuspecFile=ServiceFabricSdkContrib.Services.nuspec /p:Configuration=Release


text:
layout: post
title: "Learning vs Doing"
date: 2015-10-30 22:15:00
comments: True
categories: Programming Learning Doing
---

It's been more than 3 years since I wrote my first line of code. I started
programming by teaching myself via various online and offline resources,
Codecademy, Udacity, Ruby on Rails Tutorial...you name it. Most of the time,
I just read the texts and follow the code examples. While I still have learned
a lot from the experts, I think I sometimes have the problem of trying to learn
too much and not doing enough.

New technologies come out every day and many programmers are afraid of being
phased out because they are using an 'prehistoric' technology. I too am paranoid
about this sometimes. As a Rails developer, whenever I hear about someone saying
'Node.js will replace Rails', 'Golang is so much faster than Ruby', 'Rails programmers
will only be able find maintenance projects to work on', my heart does skip a beat
even I know the truth is people always hype about new technologies. Perhaps I am
still too inexperienced to be confident in my skill. This tendency, however, leads to
my habit of thinking that I have to learn all the new technologies to keep up with the
game.

Hence, I spend too much time learning and not enough time applying my existing knowledge.
Of course, learning is good, but only consuming knowledge via a third party is not very
helpful because there's only so much you can retain. Since it's not your personal experience,
you won't have a vivid memory of why certain things work certain ways. I learn the most
whenever I get my hands dirty. I remember taking a Code School AngularJS course last year and I
seemed to understand everything, but it was just a very shallow introduction. Surely I didn't
remember much. Later on I had the chance to work on an AngularJS project, only via the
documentation digging and painful debugging did I really learn the skill to my heart.
Especially when it comes to programming, doing is (almost) always better than learning.

The lesson for me is to take a balance. I am a very avid reader (not only in technology
materials), which is a good thing, but I need to do more and learn less. When I am so busy
devouring texts every day, I am not really digesting the knowledge. To really learn the
essence of a subject, it's absolutely necessary to write your own programs/book reviews/whatever
creative work it is. People who only follow instructions and consume information don't get anywhere,
the successful ones are the people who can create something out of nothing.


text:
            {{secsToTimeStamp(slice.start)}}

            {{secsToTimeStamp(slice.end)}}

    <ng-wavesurfer class="wavesurfer"
                   url="{{currentSession.audioUrl}}"
                   wave-color="{{waveOptions.waveColor}}"
                   progress-color="{{waveOptions.progressColor}}"
                   height="{{waveOptions.height}}">
    </ng-wavesurfer>

            <button class="btn btn-icon btn-play dark" uib-tooltip="Play" ng-click="wavesurfer.playPause()">

            </button>

            <button class="btn btn-icon dark" uib-tooltip="Download Slice" ng-click="openSaveSliceModal()">

            </button>
            <button class="btn btn-icon dark" uib-tooltip="Delete Slice" ng-click="openConfirmModal()">

            </button>


text:
ENMASSE_NAMESPACE=${1:-enmasse-infra}
MINREADY=${2:-0}
MINAVAILABLE=$(($MINREADY + 1))

function wait_deployment_ready() {
    local dep=${1}
    local minReady=${2}

    ready=0
    while [[ "${ready}" -lt "${minReady}" ]]
    do
        ready=$(kubectl get deployment ${dep} -o jsonpath='{.status.readyReplicas}' -n ${ENMASSE_NAMESPACE})
        if [[ "${ready}" -lt "${minReady}" ]]; then
            echo "Minimum ${ready}/${minReady} pods ready"
            sleep 5
        fi
    done
    echo "Minimum ready pods ${minReady} restored"
}

echo "Restarting Authentication Services"
for dep in $(kubectl get authenticationservices -o jsonpath='{.items[*].metadata.name}' -n ${ENMASSE_NAMESPACE})
do
    deployment_name=$(kubectl get authenticationservice ${dep} -o jsonpath='{.spec.standard.deploymentName}')
    if [[ "${deployment_name}" == "" ]]; then
        deployment_name=${dep}
    fi
    wait_deployment_ready ${deployment_name} ${MINAVAILABLE}

    echo "All authentication service pods are ready. Initiating rolling restart."
    for pod in $(kubectl get pods -l component=${dep} -o jsonpath='{.items[*].metadata.name}' -n ${ENMASSE_NAMESPACE})
    do
        echo "Deleting authentication service ${pod}"
        kubectl delete pod ${pod} -n ${ENMASSE_NAMESPACE}
        sleep 30
        wait_deployment_ready ${deployment_name} ${MINAVAILABLE}
    done
done
echo "Authentication Services restarted"


text:
Meteostation implemented in React.js.

http://meteo.devfl.com/


text:
class ScheduleSyncIssuablesStateIdWhereNil < ActiveRecord::Migration[5.1]
  # Issues and MergeRequests imported by GitHub are being created with
  # state_id = null, this fixes them.
  #
  # Part of a bigger plan: https://gitlab.com/gitlab-org/gitlab-ce/issues/51789

  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  # 2019-05-02 gitlab.com issuable numbers
  # issues with state_id nil: ~40000
  # merge requests with state_id nil: ~200000
  #
  # Using 5000 as batch size and 120 seconds interval will create:
  # ~8 jobs for issues - taking ~16 minutes
  # ~40 jobs for merge requests - taking ~1.34 hours
  #
  BATCH_SIZE = 5000
  DELAY_INTERVAL = 120.seconds.to_i
  ISSUES_MIGRATION = 'SyncIssuesStateId'.freeze
  MERGE_REQUESTS_MIGRATION = 'SyncMergeRequestsStateId'.freeze

  disable_ddl_transaction!

  class Issue < ActiveRecord::Base
    include EachBatch

    self.table_name = 'issues'
  end

  class MergeRequest < ActiveRecord::Base
    include EachBatch

    self.table_name = 'merge_requests'
  end

  def up
    queue_background_migration_jobs_by_range_at_intervals(
      Issue.where(state_id: nil),
      ISSUES_MIGRATION,
      DELAY_INTERVAL,
      batch_size: BATCH_SIZE
    )

    queue_background_migration_jobs_by_range_at_intervals(
      MergeRequest.where(state_id: nil),
      MERGE_REQUESTS_MIGRATION,
      DELAY_INTERVAL,
      batch_size: BATCH_SIZE
    )

    # Remove temporary indexes added on "AddTemporaryIndexesToStateId"
    remove_concurrent_index_by_name(:issues, "idx_on_issues_where_state_id_is_null")
    remove_concurrent_index_by_name(:merge_requests, "idx_on_merge_requests_where_state_id_is_null")
  end

  def down
    # No op
  end
end


text:
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

package org.chromium.components.devtools_bridge;

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

/**
 * Represents RTCConfiguration (http://www.w3.org/TR/webrtc/#rtcconfiguration-type).
 * Replacement for List<PeerConnection.IceServer> in Java WebRTC API.
 * Transferable through signaling channel.
 * Immutable.
 */
public class RTCConfiguration {
    /**
     * Single ICE server description.
     */
    public static class IceServer {
        public final String uri;
        public final String username;
        public final String credential;

        public IceServer(String uri, String username, String credential) {
            this.uri = uri;
            this.username = username;
            this.credential = credential;
        }
    }

    public final List<IceServer> iceServers;

    private RTCConfiguration(List<IceServer> iceServers) {
        this.iceServers = Collections.unmodifiableList(new ArrayList<IceServer>(iceServers));
    }

    public RTCConfiguration() {
        this(Collections.<IceServer>emptyList());
    }

    /**
     * Builder for RTCConfiguration.
     */
    public static class Builder {
        private final List<IceServer> mIceServers = new ArrayList<IceServer>();

        public RTCConfiguration build() {
            return new RTCConfiguration(mIceServers);
        }

        public Builder addIceServer(String uri, String username, String credential) {
            mIceServers.add(new IceServer(uri, username, credential));
            return this;
        }

        public Builder addIceServer(String uri) {
            return addIceServer(uri, "", "");
        }
    }
}


text:
Concrete5-background-selector-block
===================================

Just place directory into your root blocks directory then install the block within your dashboard block types page.


text:
<?php

namespace PrestaFaker\Webservice\Sql;

class Feature extends SqlAbstract implements SqlInterface
{
    static private $position = 0;

    public function build($id, array $values)
    {
        $replace = $this->getDefaults();
        $replace['id'] = $id;
        $replace['position'] = self::$position++;

        foreach ($values as $key => $value) {
            if ('name' === $key) {
                foreach ($value as $id_lang => $string) {
                    // Hummm... very, very dirty, but it's only for demo !
                    // You're not ok with that : Code it yourself !!!
                    $replace[$key] = $string;
                    $replace['id_lang'] = $id_lang;
                }
                continue;
            }

            $replace[$key] = $value;
        }

        return $this->replaceSql(self::FEATURE_SQL, $replace);
    }

    private function getDefaults()
    {
        return [
            // Feature
            'position' => 0,

            // Lang
            'id_lang' => 1,
            'name' => '', // required

            // Shop
            'id_shop' => 1,
        ];
    }

    const FEATURE_SQL = <<<EOF
INSERT INTO :prefix:feature (`id_feature`, `position`)
VALUES (:id:, :position:);
INSERT INTO :prefix:feature_lang (`id_feature`, `id_lang`, `name`)
VALUES (:id:, :id_lang:, :name:);
INSERT INTO :prefix:feature_shop (`id_feature`, `id_shop`)
VALUES (:id:, :id_shop:);

EOF;
}


text: <Show some examples of how to use some settings and their affect on Hack programs>


text:
Branching with if-else is similar to C. Unlike C, the boolean condition doesn't
need to be surrounded by parentheses, and each condition is followed by a
block. If-else conditionals are expressions too; and, because of Rust type
safety, all the branches must return the same type.

{if-else.play}


text:
<?php

namespace Cravid\Event;

class ListenerException extends EventException
{
}


text:
View My Profile:

Follow me:

  {% if site.theme.social.github %}

  {% endif %}

  {% if site.theme.social.hacker_news %}

    Y

  {% endif %}

  {% if site.theme.social.twitter %}

  {% endif %}