content
stringlengths
263
5.24M
pred_label
stringclasses
1 value
pred_score_pos
float64
0.6
1
#=========================================基础不变的混淆配置=========================================## #指定代码的压缩级别 -optimizationpasses 5 #包名不混合大小写 -dontusemixedcaseclassnames #不去忽略非公共的库类 -dontskipnonpubliclibraryclasses # 指定不去忽略非公共的库的类的成员 -dontskipnonpubliclibraryclassmembers #优化不优化输入的类文件 -dontoptimize #预校验 -dontpreverify #混淆时是...
__label__POS
0.850517
package com.appspa.demo.utils; import android.app.NotificationManager; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Build; import android.provider.Settings; import androidx.core.app.NotificationManagerCompat; /** * 通知栏权限工具 * * @author treexi * @since 20...
__label__POS
0.980381
package utils import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" ) type manifestPath []string var ( // known manifest/resource paths for selector requirements selectorMatchLabels manifestPath = []string{"spec", "selector", "matchLabels"} podSelectorMatc...
__label__POS
0.663031
/*! * Datepicker for Bootstrap * * Copyright 2012 Stefan Petre * Improvements by Andrew Rowls * Licensed under the Apache License v2.0 * http://www.apache.org/licenses/LICENSE-2.0 * */ .datepicker { padding: 4px; border-radius: 4px; direction: ltr; /*.dow { border-top: 1px solid #ddd !important; }*/ ...
__label__POS
0.992568
// // StringUtils.swift // TyphoonPlayground // // Created by Aleksey Garbarev on 15/04/16. // Copyright © 2016 Aleksey Garbarev. All rights reserved. // import Foundation extension String { subscript (r: Range<Int>) -> String? { //Optional String as return value get { let stringCoun...
__label__POS
0.840276
<?php /** * PHPExcel * * Copyright (c) 2006 - 2014 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ve...
__label__POS
0.732701
<?php /** * PHPExcel * * Copyright (c) 2006 - 2014 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ve...
__label__POS
0.693728
<?php /** * PHPExcel * * Copyright (c) 2006 - 2014 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ve...
__label__POS
0.674717
/* * Copyright (C) 2018 xuexiangjys(xuexiangjys@163.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
__label__POS
0.905218
# 文档 Quick 能够帮助你验证你的 Swift 和 Objective-C 程序的行为。然而,能提高你的测试技巧的不仅仅是了解如何使用 Quick。下面这些指南能够帮助你更有效地写测试 —— 不仅是和 Quick 相关的,更包括 XCTest 还有其他的测试框架。 每份指南都有一个主题。如果你对单元测试完全陌生,建议你按照从上往下的顺序阅读。 - **[在项目中添加测试](SettingUpYourXcodeProject.md)**:如果你遇到在项目中构建测试的问题,请阅读这份指南。 - **[编写高效的 XCTest 测试: Arrange,Act 和 Assert](ArrangeActAssert.md)**:阅...
__label__POS
0.994765
// // OCMockito - MKTOngoingStubbing.h // Copyright 2014 Jonathan M. Reid. See LICENSE.txt // // Created by: Jon Reid, http://qualitycoding.org/ // Source: https://github.com/jonreid/OCMockito // #import <Foundation/Foundation.h> #import "MKTPrimitiveArgumentMatching.h" @class MKTInvocationContainer; /** Metho...
__label__POS
0.849705
package com.appspa.update.entity; import android.os.Parcel; import android.os.Parcelable; import androidx.annotation.ColorInt; import androidx.annotation.DrawableRes; /** * 版本更新提示器参数信息 * * @author treexi * @since 2018/11/19 上午9:44 */ public class PromptEntity implements Parcelable { /** * 主题颜色 */...
__label__POS
0.621742
struct HighlightBackground { static func light(_ theme: HighlightTheme) -> String { switch theme { case .a11y: return "#fefefe" case .atomOne: return "#fafafa" case .classic: return "#f5f5f5" case .edge: return "#fafafa" case .github: return "#fff" case .googl...
__label__POS
0.852391
/* * Copyright (C) 2018 xuexiangjys(xuexiangjys@163.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
__label__POS
0.885234
<?php /** * PHPExcel * * Copyright (c) 2006 - 2014 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ve...
__label__POS
0.767456
/* * Copyright (C) 2018 xuexiangjys(xuexiangjys@163.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
__label__POS
0.913052
<?php /** * PHPExcel * * Copyright (c) 2006 - 2014 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ve...
__label__POS
0.600453
<?php /** * PHPExcel * * Copyright (c) 2006 - 2014 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ve...
__label__POS
0.740462
/* * Copyright (C) 2018 xuexiangjys(xuexiangjys@163.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
__label__POS
0.987201
/* * Copyright (C) 2018 xuexiangjys(xuexiangjys@163.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
__label__POS
0.733622
package com.appspa.update.utils; import android.content.ContentResolver; import android.content.ContentValues; import android.content.Context; import android.content.res.AssetFileDescriptor; import android.database.Cursor; import android.net.Uri; import android.os.Build; import android.os.Environment; import android.p...
__label__POS
0.99722
package com.appspa.update.proxy.impl; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import com.appspa.update.entity.UpdateEntity; import com.appspa.update.service.OnFileDownloadListener; import com.appspa.update._AppSpace; import com.appspa.update.proxy.IPrompterProxy; import com.appspa.upd...
__label__POS
0.822224
/* * Copyright (C) 2018 xuexiangjys(xuexiangjys@163.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
__label__POS
0.6327
// // OCMockito - MKTOngoingStubbing.h // Copyright 2014 Jonathan M. Reid. See LICENSE.txt // // Created by: Jon Reid, http://qualitycoding.org/ // Source: https://github.com/jonreid/OCMockito // #import <Foundation/Foundation.h> #import "MKTPrimitiveArgumentMatching.h" @class MKTInvocationContainer; /** Metho...
__label__POS
0.849705
<?php /** * PHPExcel * * Copyright (c) 2006 - 2014 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ve...
__label__POS
0.677424
<?php /** * PHPExcel * * Copyright (c) 2006 - 2014 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ve...
__label__POS
0.829028
<?php /** * PHPExcel * * Copyright (c) 2006 - 2014 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ve...
__label__POS
0.662087
package ethereumj.crypto; import ethereumj.util.ByteUtil; import java.math.BigInteger; import org.junit.Test; import org.spongycastle.util.encoders.Hex; import static org.junit.Assert.*; public class ECKeyTest { @Test public void normalizeKey() { assertEquals(Hex.toHexString(ByteUtil.bigIntegerToBytes(new BigI...
__label__POS
0.999801
package ethereumj.util; import java.math.BigInteger; public class BIUtil { /** * @param value - not null * * @return true - if the param is zero */ public static boolean isZero(BigInteger value) { return value.compareTo(BigInteger.ZERO) == 0; } /** * @param valueA - not null * @param v...
__label__POS
0.999545
package ethereumj.util; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.math.BigInteger; import java.nio.ByteBuffer; import java.util.Arrays; import java.util.HashSet; import java.util.Set; import org.spongycastle.util.encoders.Hex; public class ByteUtil { public static final byte[] E...
__label__POS
0.952195
// OCHamcrest by Jon Reid, http://qualitycoding.org/about/ // Copyright 2017 hamcrest.org. See LICENSE.txt #import <OCHamcrest/HCAllOf.h> #import <OCHamcrest/HCAnyOf.h> #import <OCHamcrest/HCArgumentCaptor.h> #import <OCHamcrest/HCAssertThat.h> #import <OCHamcrest/HCConformsToProtocol.h> #import <OCHamcrest/HCDescri...
__label__POS
0.961426
package ethereumj.util; import java.lang.reflect.Array; import java.math.BigInteger; import java.security.SecureRandom; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Arrays; import java.util.Date; import java.util.List; import java.util.regex.Pattern; import org.spongycastle.util.enc...
__label__POS
0.983984
package ethereumj.crypto; import ethereumj.crypto.cryptohash.Keccak256; import ethereumj.crypto.cryptohash.Keccak512; import ethereumj.util.RLP; import ethereumj.util.Utils; import java.math.BigInteger; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.Random; import o...
__label__POS
0.97045
package ethereumj.config; import java.math.BigInteger; /** * Describes different constants specific for a blockchain * * Created by Anton Nashatyrev on 25.02.2016. */ public class Constants { private static final int MAXIMUM_EXTRA_DATA_SIZE = 32; private static final int MIN_GAS_LIMIT = 125000; private stat...
__label__POS
0.990849
package ethereumj.crypto.jce; import java.io.IOException; import java.security.AlgorithmParameters; import java.security.NoSuchAlgorithmException; import java.security.spec.ECGenParameterSpec; import java.security.spec.ECParameterSpec; import java.security.spec.InvalidParameterSpecException; public final class ECAlgo...
__label__POS
0.785694
package ethereumj.crypto.jce; import java.security.KeyFactory; import java.security.NoSuchAlgorithmException; import java.security.NoSuchProviderException; import java.security.Provider; public final class ECKeyFactory { public static final String ALGORITHM = "EC"; private static final String algorithmAssertion...
__label__POS
0.885283
package ethereumj.crypto.jce; import java.security.NoSuchAlgorithmException; import java.security.NoSuchProviderException; import java.security.Provider; import java.security.Signature; public final class ECSignatureFactory { public static final String RAW_ALGORITHM = "NONEwithECDSA"; private static final Strin...
__label__POS
0.859937
// OCHamcrest by Jon Reid, http://qualitycoding.org/about/ // Copyright 2015 hamcrest.org. See LICENSE.txt #import <OCHamcrest/HCAllOf.h> #import <OCHamcrest/HCAnyOf.h> #import <OCHamcrest/HCAssertThat.h> #import <OCHamcrest/HCConformsToProtocol.h> #import <OCHamcrest/HCDescribedAs.h> #import <OCHamcrest/HCEvery.h> ...
__label__POS
0.966762
import Foundation /// A Nimble matcher that succeeds when the actual value is greater than the expected value. public func beGreaterThan<T: Comparable>(_ expectedValue: T?) -> NonNilMatcherFunc<T> { return NonNilMatcherFunc { actualExpression, failureMessage in failureMessage.postfixMessage = "be greater ...
__label__POS
0.641693
package com.bds.microraidenj; import com.asf.microraidenj.eth.ChannelBlockObtainer; import com.asf.microraidenj.exception.TransactionNotFoundException; import com.asf.microraidenj.type.ByteArray; import io.reactivex.Observable; import io.reactivex.Single; import java.math.BigInteger; import java.util.concurrent.TimeUn...
__label__POS
0.848344
package com.asf.appcoins.sdk.ads; import android.app.Application; import android.content.pm.PackageManager; /** * Created by Joao Raimundo on 01-03-2018. */ /** The interface for the Advertisement sdk */ public interface AppCoinsAds { int NETWORK_MAIN = 1; int NETWORK_ROPSTEN = 3; /** * Method that star...
__label__POS
0.917192
package com.asf.appcoins.sdk.ads; import android.content.Context; import com.asf.appcoins.sdk.ads.poa.PoAServiceConnector; import com.asf.appcoins.sdk.ads.poa.PoAServiceConnectorImpl; import static com.asf.appcoins.sdk.ads.AppCoinsAds.NETWORK_MAIN; import static com.asf.appcoins.sdk.ads.AppCoinsAds.NETWORK_ROPSTEN; ...
__label__POS
0.981006
package com.asf.appcoins.sdk.ads.poa; import android.app.Service; import android.content.Intent; import android.os.IBinder; import android.util.Log; import net.grandcentrix.tray.AppPreferences; import static com.asf.appcoins.sdk.ads.poa.PoAServiceConnector.PARAM_WALLET_PACKAGE_NAME; import static com.asf.appcoins.sdk...
__label__POS
0.961151
package com.asf.appcoins.sdk.ads.poa.campaign; import android.support.annotation.NonNull; import io.reactivex.Single; import java.math.BigInteger; import java.util.List; public class BdsCampaignService implements CampaignService { private final String packageName; private final int versionCode; private final Ca...
__label__POS
0.989072
# Laravel Blade Directives [![Latest Version on Packagist](https://img.shields.io/packagist/v/appstract/laravel-blade-directives.svg?style=flat-square)](https://packagist.org/packages/appstract/laravel-blade-directives) [![Total Downloads](https://img.shields.io/packagist/dt/appstract/laravel-blade-directives.svg?styl...
__label__POS
0.767463
import Foundation /// A Nimble matcher that succeeds when the actual value is less than /// or equal to the expected value. public func beLessThanOrEqualTo<T: Comparable>(_ expectedValue: T?) -> NonNilMatcherFunc<T> { return NonNilMatcherFunc { actualExpression, failureMessage in failureMessage.postfixMess...
__label__POS
0.67079
package com.asf.appcoins.sdk.iab; import android.app.Activity; import android.content.Intent; import com.asf.appcoins.sdk.core.transaction.Transaction.Status; import com.asf.appcoins.sdk.iab.entity.SKU; import com.asf.appcoins.sdk.iab.exception.ConsumeFailedException; import com.asf.appcoins.sdk.iab.payment.PaymentDet...
__label__POS
0.60022
import Foundation /// A Nimble matcher that succeeds when the actual value is less than the expected value. public func beLessThan<T: Comparable>(_ expectedValue: T?) -> NonNilMatcherFunc<T> { return NonNilMatcherFunc { actualExpression, failureMessage in failureMessage.postfixMessage = "be less than <\(st...
__label__POS
0.652344
<?php namespace Appstract\BladeDirectives\Test\App\Providers; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; use Illuminate\Support\Facades\Route; class RouteServiceProvider extends ServiceProvider { /** * This namespace is applied to your controller routes. * ...
__label__POS
0.618118
package com.asf.microraidenj.type; import java.math.BigInteger; import org.junit.BeforeClass; import org.junit.Test; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; public class AddressTest { private static Address address; private static String addrHexStr; @BeforeClass...
__label__POS
0.968489
package com.asf.microraidenj.type; import java.math.BigInteger; import org.junit.BeforeClass; import org.junit.Test; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; public class ByteArrayTest { private static byte[] bytes; private static ByteArray byteArray; @BeforeClas...
__label__POS
0.948899
package com.asf.microraidenj; import com.asf.microraidenj.contract.MicroRaidenContract; import com.asf.microraidenj.exception.TransactionFailedException; import com.asf.microraidenj.type.Address; import com.asf.microraidenj.util.ByteUtils; import ethereumj.crypto.ECKey; import ethereumj.crypto.HashUtil; import java.ma...
__label__POS
0.633885
package com.asf.microraidenj.type; import java.util.Arrays; import org.spongycastle.util.encoders.Hex; public class ByteArray { private final byte[] bytes; public ByteArray(byte[] bytes) { this.bytes = bytes; } public static ByteArray from(String hex) { if (hex.startsWith("0x")) { return new ...
__label__POS
0.99713
package com.asf.appcoins.sdk.core.factory; import org.junit.Test; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; /** * Created by neuro on 28-02-2018. */ public final class TransactionFactoryTest { private static final String address = "0xab949343e6c369c6b17c7ae302c1debd4...
__label__POS
0.9999
package com.asf.appcoins.sdk.core.factory; import com.asf.appcoins.sdk.core.transaction.Transaction; import com.asf.appcoins.sdk.core.transaction.Transaction.Status; import java.math.BigInteger; import java.util.Arrays; import org.spongycastle.util.encoders.Hex; import org.web3j.abi.datatypes.Address; import org.web3j...
__label__POS
0.665762
package com.asf.appcoins.sdk.core.transaction; /** * Created by neuro on 26-02-2018. */ public final class Transaction { private final String to; private final String value; private final Status status; private String hash; private String from; public Transaction(String hash, String from, String to, St...
__label__POS
0.719308
package com.asf.appcoins.sdk.contractproxy; import com.asf.appcoins.sdk.contractproxy.repository.RemoteRepository; import okhttp3.OkHttpClient; import retrofit2.Retrofit; import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory; import retrofit2.converter.jackson.JacksonConverterFactory; /** * Created by Joao Raim...
__label__POS
0.996187
package com.asf.appcoins.sdk.contractproxy; import com.asf.appcoins.sdk.contractproxy.proxy.WalletAddressProvider; import com.asf.appcoins.sdk.contractproxy.proxy.Web3jProxyContract; import io.reactivex.Single; import io.reactivex.schedulers.Schedulers; import java.util.Map; public class ContractAddressProvider imple...
__label__POS
0.972983
package com.asf.appcoins.sdk.contractproxy.repository; import io.reactivex.Single; import retrofit2.http.GET; import retrofit2.http.Query; public class RemoteRepository { private final ApiProvider apiProvider; public RemoteRepository(ApiProvider apiProvider) { this.apiProvider = apiProvider; } public Si...
__label__POS
0.868447
// OCHamcrest by Jon Reid, http://qualitycoding.org/about/ // Copyright 2017 hamcrest.org. See LICENSE.txt #import <OCHamcrest/HCAllOf.h> #import <OCHamcrest/HCAnyOf.h> #import <OCHamcrest/HCArgumentCaptor.h> #import <OCHamcrest/HCAssertThat.h> #import <OCHamcrest/HCConformsToProtocol.h> #import <OCHamcrest/HCDescri...
__label__POS
0.961426
public final class com/appstractive/jwt/signatures/HMACKt { public static final fun hs256 (Lcom/appstractive/jwt/Signer;Lkotlin/jvm/functions/Function1;)V public static final fun hs256 (Lcom/appstractive/jwt/Verifier;Lkotlin/jvm/functions/Function1;)V public static final fun hs384 (Lcom/appstractive/jwt/Signer;Lkotl...
__label__POS
0.999671
public final class com/appstractive/jwt/signatures/HMACKt { public static final fun hs256 (Lcom/appstractive/jwt/Signer;Lkotlin/jvm/functions/Function1;)V public static final fun hs256 (Lcom/appstractive/jwt/Verifier;Lkotlin/jvm/functions/Function1;)V public static final fun hs384 (Lcom/appstractive/jwt/Signer;Lkotl...
__label__POS
0.999671
// OCHamcrest by Jon Reid, http://qualitycoding.org/about/ // Copyright 2015 hamcrest.org. See LICENSE.txt #import <OCHamcrest/HCAllOf.h> #import <OCHamcrest/HCAnyOf.h> #import <OCHamcrest/HCAssertThat.h> #import <OCHamcrest/HCConformsToProtocol.h> #import <OCHamcrest/HCDescribedAs.h> #import <OCHamcrest/HCEvery.h> ...
__label__POS
0.966762
public final class com/appstractive/jwt/Algorithm : java/lang/Enum { public static final field ES256 Lcom/appstractive/jwt/Algorithm; public static final field ES384 Lcom/appstractive/jwt/Algorithm; public static final field ES512 Lcom/appstractive/jwt/Algorithm; public static final field HS256 Lcom/appstractive/jw...
__label__POS
0.998846
public final class com/appstractive/jwt/Algorithm : java/lang/Enum { public static final field ES256 Lcom/appstractive/jwt/Algorithm; public static final field ES384 Lcom/appstractive/jwt/Algorithm; public static final field ES512 Lcom/appstractive/jwt/Algorithm; public static final field HS256 Lcom/appstractive/jw...
__label__POS
0.998846
public final class com/appstractive/jwt/signatures/PKCS1Kt { public static final fun rs256 (Lcom/appstractive/jwt/Signer;Lkotlin/jvm/functions/Function1;)V public static final fun rs256 (Lcom/appstractive/jwt/Verifier;Lkotlin/jvm/functions/Function1;)V public static final fun rs384 (Lcom/appstractive/jwt/Signer;Lkot...
__label__POS
0.99992
public final class com/appstractive/jwt/signatures/PKCS1Kt { public static final fun rs256 (Lcom/appstractive/jwt/Signer;Lkotlin/jvm/functions/Function1;)V public static final fun rs256 (Lcom/appstractive/jwt/Verifier;Lkotlin/jvm/functions/Function1;)V public static final fun rs384 (Lcom/appstractive/jwt/Signer;Lkot...
__label__POS
0.99992
public final class com/appstractive/jwt/signatures/ECDSAKt { public static final fun es256 (Lcom/appstractive/jwt/Signer;Lkotlin/jvm/functions/Function1;)V public static final fun es256 (Lcom/appstractive/jwt/Verifier;Lkotlin/jvm/functions/Function1;)V public static final fun es384 (Lcom/appstractive/jwt/Signer;Lkot...
__label__POS
0.999874
public final class com/appstractive/jwt/signatures/ECDSAKt { public static final fun es256 (Lcom/appstractive/jwt/Signer;Lkotlin/jvm/functions/Function1;)V public static final fun es256 (Lcom/appstractive/jwt/Verifier;Lkotlin/jvm/functions/Function1;)V public static final fun es384 (Lcom/appstractive/jwt/Signer;Lkot...
__label__POS
0.999874
public final class io/ktor/server/auth/jwt/JWTAuthKt { public static final fun jwt (Lio/ktor/server/auth/AuthenticationConfig;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun jwt$default (Lio/ktor/server/auth/AuthenticationConfig;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava...
__label__POS
0.998426
public final class io/ktor/server/auth/jwt/JWTAuthKt { public static final fun jwt (Lio/ktor/server/auth/AuthenticationConfig;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun jwt$default (Lio/ktor/server/auth/AuthenticationConfig;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava...
__label__POS
0.998426
public final class com/appstractive/jwt/Curve : java/lang/Enum { public static final field P256 Lcom/appstractive/jwt/Curve; public static final field P384 Lcom/appstractive/jwt/Curve; public static final field P521 Lcom/appstractive/jwt/Curve; public static fun getEntries ()Lkotlin/enums/EnumEntries; public stati...
__label__POS
0.98877
public final class com/appstractive/jwt/Curve : java/lang/Enum { public static final field P256 Lcom/appstractive/jwt/Curve; public static final field P384 Lcom/appstractive/jwt/Curve; public static final field P521 Lcom/appstractive/jwt/Curve; public static fun getEntries ()Lkotlin/enums/EnumEntries; public stati...
__label__POS
0.98877
<?php namespace Appstract\Meta; trait Metable { /** * Get all meta. * * @return object */ public function getAllMeta() { return collect($this->meta()->pluck('value', 'key')); } /** * Has meta. * * @param string $key * @return bool */ publi...
__label__POS
0.996597
#import "EXPDoubleTuple.h" @implementation EXPDoubleTuple @synthesize values = _values, size = _size; - (id)initWithDoubleValues:(double *)values size:(size_t)size { if ((self = [super init])) { self.values = malloc(sizeof(double) * size); memcpy(self.values, values, sizeof(double) * size); ...
__label__POS
0.817524
#import "EXPDoubleTuple.h" @implementation EXPDoubleTuple @synthesize values = _values, size = _size; - (id)initWithDoubleValues:(double *)values size:(size_t)size { if ((self = [super init])) { self.values = malloc(sizeof(double) * size); memcpy(self.values, values, sizeof(double) * size); ...
__label__POS
0.817524
#import "EXPFloatTuple.h" @implementation EXPFloatTuple @synthesize values = _values, size = _size; - (id)initWithFloatValues:(float *)values size:(size_t)size { if ((self = [super init])) { self.values = malloc(sizeof(float) * size); memcpy(self.values, values, sizeof(float) * size); sel...
__label__POS
0.815938
#import "EXPFloatTuple.h" @implementation EXPFloatTuple @synthesize values = _values, size = _size; - (id)initWithFloatValues:(float *)values size:(size_t)size { if ((self = [super init])) { self.values = malloc(sizeof(float) * size); memcpy(self.values, values, sizeof(float) * size); sel...
__label__POS
0.815938
<?php namespace Appstract\Multisite\Composers; use Config; use Illuminate\View\View; use Appstract\Multisite\Site; class OverwriteViewComposer { /** * Slug of the current site. * * @var string */ protected $currentSite; /** * Name of the sites folder. * * @var string ...
__label__POS
0.925793
import Foundation /// A Nimble matcher that succeeds when the actual value is greater than the expected value. public func beGreaterThan<T: Comparable>(_ expectedValue: T?) -> NonNilMatcherFunc<T> { return NonNilMatcherFunc { actualExpression, failureMessage in failureMessage.postfixMessage = "be greater ...
__label__POS
0.641693
<?php /** * @package JAMA */ /** PHPExcel root directory */ if (!defined('PHPEXCEL_ROOT')) { /** * @ignore */ define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../../'); require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); } /* * Matrix class * * @author Paul Meagher * @author Michael Bommarito * @author...
__label__POS
0.88801
<?php /** * @package JAMA * * Cholesky decomposition class * * For a symmetric, positive definite matrix A, the Cholesky decomposition * is an lower triangular matrix L so that A = L*L'. * * If the matrix is not symmetric or positive definite, the constructor * returns a partial decomposition and sets an inter...
__label__POS
0.945213
<?php /** * @package JAMA * * For an m-by-n matrix A with m >= n, the singular value decomposition is * an m-by-n orthogonal matrix U, an n-by-n diagonal matrix S, and * an n-by-n orthogonal matrix V so that A = U*S*V'. * * The singular values, sigma[$k] = S[$k][$k], are ordered so that * sigma[0] >= sigma[1] >...
__label__POS
0.611274
<?php /** * @package JAMA * * For an m-by-n matrix A with m >= n, the QR decomposition is an m-by-n * orthogonal matrix Q and an n-by-n upper triangular matrix R so that * A = Q*R. * * The QR decompostion always exists, even if the matrix does not have * full rank, so the constructor will never fail. The prima...
__label__POS
0.942983
<?php /** * @package JAMA * * For an m-by-n matrix A with m >= n, the LU decomposition is an m-by-n * unit lower triangular matrix L, an n-by-n upper triangular matrix U, * and a permutation vector piv of length m so that A(piv,:) = L*U. * If m < n, then L is m-by-m and U is m-by-n. * * The LU decompostion with...
__label__POS
0.938582
import Foundation /// A Nimble matcher that succeeds when the actual value is less than /// or equal to the expected value. public func beLessThanOrEqualTo<T: Comparable>(_ expectedValue: T?) -> NonNilMatcherFunc<T> { return NonNilMatcherFunc { actualExpression, failureMessage in failureMessage.postfixMess...
__label__POS
0.67079
import Foundation /// A Nimble matcher that succeeds when the actual value is less than the expected value. public func beLessThan<T: Comparable>(_ expectedValue: T?) -> NonNilMatcherFunc<T> { return NonNilMatcherFunc { actualExpression, failureMessage in failureMessage.postfixMessage = "be less than <\(st...
__label__POS
0.652344
<?php namespace Appstract\Opcache; use Illuminate\Support\ServiceProvider; class OpcacheServiceProvider extends ServiceProvider { /** * Bootstrap the application services. */ public function boot() { if ($this->app->runningInConsole()) { $this->commands([ Com...
__label__POS
0.785899
<?php namespace Appstract\Opcache\Commands; use Appstract\Opcache\CreatesRequest; use Illuminate\Console\Command; class Config extends Command { use CreatesRequest; /** * The console command name. * * @var string */ protected $signature = 'opcache:config'; /** * The console...
__label__POS
0.607408
<?php namespace Appstract\Opcache\Http\Middleware; use Closure; use Illuminate\Contracts\Encryption\DecryptException; use Illuminate\Support\Facades\Crypt as Crypt; use Symfony\Component\HttpKernel\Exception\HttpException; /** * Class Request. */ class Request { /** * Handle incoming request. * ...
__label__POS
0.915803
<?php namespace Appstract\Opcache\Http\Controllers; use Appstract\Opcache\OpcacheFacade as OPcache; use Illuminate\Http\Request; use Illuminate\Routing\Controller as BaseController; /** * Class OpcacheController. */ class OpcacheController extends BaseController { /** * Clear the OPcache. * * @r...
__label__POS
0.987509
<?php namespace Appstract\Options; use Illuminate\Database\Eloquent\Model; class Option extends Model { /** * Indicates if the model should be timestamped. * * @var bool */ public $timestamps = false; /** * Casts. * * @var array */ protected $casts = [ ...
__label__POS
0.982642
<?php namespace Appstract\Options\Test; use Appstract\Options\Option; class HelperTest extends Base { /** @test */ public function it_can_get_instance() { $this->assertInstanceOf(Option::class, option()); } /** @test */ public function it_can_set() { option(['foo' => 'bar...
__label__POS
0.650149
<?php namespace Appstract\Options\Test; use Appstract\Options\OptionFacade; use Appstract\Options\OptionsServiceProvider; use Orchestra\Testbench\TestCase; class Base extends TestCase { /** * Define environment setup. * * @param \Illuminate\Foundation\Application $app * * @return void ...
__label__POS
0.881792
// OCHamcrest by Jon Reid, http://qualitycoding.org/about/ // Copyright 2015 hamcrest.org. See LICENSE.txt #import <OCHamcrest/HCAllOf.h> #import <OCHamcrest/HCAnyOf.h> #import <OCHamcrest/HCAssertThat.h> #import <OCHamcrest/HCConformsToProtocol.h> #import <OCHamcrest/HCDescribedAs.h> #import <OCHamcrest/HCEvery.h> ...
__label__POS
0.966762
// OCHamcrest by Jon Reid, http://qualitycoding.org/about/ // Copyright 2017 hamcrest.org. See LICENSE.txt #import <OCHamcrest/HCAllOf.h> #import <OCHamcrest/HCAnyOf.h> #import <OCHamcrest/HCArgumentCaptor.h> #import <OCHamcrest/HCAssertThat.h> #import <OCHamcrest/HCConformsToProtocol.h> #import <OCHamcrest/HCDescri...
__label__POS
0.961426
<?php namespace Appstract\Stock; use DateTimeInterface; use Illuminate\Support\Arr; use Illuminate\Support\Carbon; trait HasStock { /* |-------------------------------------------------------------------------- | Accessors |--------------------------------------------------------------------------...
__label__POS
0.727932
<?php namespace Appstract\Stock\Tests; class QueryScopeTest extends TestCase { /** @test */ public function it_can_check_in_stock() { $queryEmpty = StockModel::whereInStock()->count(); $this->stockModel->setStock(10); $queryResult = StockModel::whereInStock()->count(); $...
__label__POS
0.975702
<?php namespace Appstract\Stock\Tests; class OrderRowTest extends TestCase { /** @test */ public function it_can_create_postitive_order_row() { $this->stockModel->setStock(10); $this->orderRowCreated(5); $this->assertEquals(5, $this->stockModel->stock); } /** @test */ ...
__label__POS
0.964074
<?php namespace Appstract\Stock\Tests; use Illuminate\Support\Carbon; class HasStockTest extends TestCase { /** @test */ public function it_can_have_no_stock() { $this->assertEquals(0, $this->stockModel->stock); $this->assertTrue($this->stockModel->outOfStock()); } /** @test */ ...
__label__POS
0.900442