content stringlengths 263 5.24M | pred_label stringclasses 1
value | pred_score_pos float64 0.6 1 |
|---|---|---|
<?php
namespace Appstract\Stock\Tests;
class StockMutationsTest extends TestCase
{
/** @test */
public function it_can_have_no_mutations()
{
$this->assertEmpty($this->stockModel->stockMutations->toArray());
}
/** @test */
public function it_can_have_some_mutations()
{
$thi... | __label__POS | 0.837517 |
# 文档
Quick 能够帮助你验证你的 Swift 和 Objective-C 程序的行为。然而,能提高你的测试技巧的不仅仅是了解如何使用 Quick。下面这些指南能够帮助你更有效地写测试 —— 不仅是和 Quick 相关的,更包括 XCTest 还有其他的测试框架。
每份指南都有一个主题。如果你对单元测试完全陌生,建议你按照从上往下的顺序阅读。
- **[在项目中添加测试](SettingUpYourXcodeProject.md)**:如果你遇到在项目中构建测试的问题,请阅读这份指南。
- **[编写高效的 XCTest 测试: Arrange,Act 和 Assert](ArrangeActAssert.md)**:阅... | __label__POS | 0.994765 |
<?php
namespace Appstract\Tracer;
use File;
class Tracer
{
/**
* [$files description].
* @var [type]
*/
protected $files;
/**
* [$realPath description].
* @var [type]
*/
protected $realPath;
/**
* [$debug description].
* @var [type]
*/
protected ... | __label__POS | 0.983663 |
<?php
namespace Appstract\Tracer;
use Illuminate\Support\ServiceProvider;
class TracerServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot(\Illuminate\Contracts\Http\Kernel $kernel)
{
$this->publishes([
... | __label__POS | 0.960646 |
import { resolve } from 'node:path'
import { existsSync, writeFileSync } from 'node:fs'
import { start, end } from './timer'
function getFilepath(region: Region) {
const filepath = resolve(__dirname, 'storage', `${region}.json`)
return filepath
}
export function getStorageAppInfo(regions: Region[]) {
start('get... | __label__POS | 0.690079 |
import { isEmpty } from 'lodash'
let state: Record<
string,
{
start: number
end: number
}
> = {}
function start(key: string) {
if (!isEmpty(state[key])) {
console.error(`${key}已经开始`)
return
}
const timestamp = Date.now()
console.info(`${key} 开始
`)
state[key] = {
start: timestamp... | __label__POS | 0.623718 |
////////////////////////////////////////////////////////////////////////////////
//
// TYPHOON FRAMEWORK
// Copyright 2013, Typhoon Framework Contributors
// All Rights Reserved.
//
// NOTICE: The authors permit you to use, modify, and distribute this file
// in accordance with the terms of the license agreement a... | __label__POS | 0.755322 |
extends Node
class_name Monitor
signal completed
var multi_test_list: Array[Dictionary] = []
var multi_test_current := 0
var monitor_duration := 0.0
var monitor_maximum_duration := 10.0
var error_message := ""
var success := false
var started := false
var frame := 0 # physics frame
var expected_to_fail := false
var en... | __label__POS | 0.644455 |
<?php
namespace Appstract\LushHttp;
use Appstract\LushHttp\Exception\LushException;
use Appstract\LushHttp\Request\LushRequest;
class Lush
{
public $baseload;
public $url;
public $parameters = [];
public $headers = [];
public $options = [];
/**
* Lush constructor.
*
* @par... | __label__POS | 0.992761 |
<?php
namespace Appstract\LushHttp\Test;
use Appstract\LushHttp\Response\LushResponse;
abstract class BaseTest extends \PHPUnit_Framework_TestCase
{
/**
* Run all the checks.
*
* @param LushResponse $response
* @param array $options
*/
protected function checkAll(LushResponse ... | __label__POS | 0.842557 |
extends Node2D
func _ready():
test_body_create()
test_body_empty()
test_body()
test_body_collision_exception_invalid()
func test_body_collision_exception_invalid():
print("test_body_collision_exception_invalid")
PhysicsServer2D.body_add_collision_exception(RID(), RID())
PhysicsServer2D.body_remove_collision_ex... | __label__POS | 0.652815 |
extends Node2D
@onready var body_a := PhysicsServer2D.body_create()
@onready var body_b := PhysicsServer2D.body_create()
@onready var body_a_with_space1 := PhysicsServer2D.body_create()
@onready var body_b_with_space1 := PhysicsServer2D.body_create()
@onready var body_a_with_space2 := PhysicsServer2D.body_create()
@on... | __label__POS | 0.895119 |
extends TestBase
@onready var body_a := PhysicsServer2D.body_create()
@onready var body_b := PhysicsServer2D.body_create()
@onready var body_a_with_space1 := PhysicsServer2D.body_create()
@onready var body_b_with_space1 := PhysicsServer2D.body_create()
@onready var body_a_with_space2 := PhysicsServer2D.body_create()
@... | __label__POS | 0.796749 |
<?php
namespace Appstract\LushHttp\Exception;
use Appstract\LushHttp\Events\RequestExceptionEvent;
class LushRequestException extends BaseException
{
public $request;
public $response;
public $message;
/**
* RequestException constructor.
*
* @param string $request
* @param arra... | __label__POS | 0.999267 |
<?php
namespace Appstract\LushHttp\Response;
use Illuminate\Support\Collection;
trait ResponseGetters
{
/**
* Get the content of the result.
*
* @return mixed
*/
public function getResult()
{
if ($this->autoFormat && ! empty($this->object)) {
return $this->object;
... | __label__POS | 0.993658 |
extends PhysicsPerformanceTest3D
@export var shape: PhysicsTest3D.TestCollisionShape = PhysicsTest3D.TestCollisionShape.CONVEX_POLYGON
@export var stack_height := 8
@export var body_spacing := 0.1
@export var simulation_duration := 8
func test_description() -> String:
return """Checks the stability of the RigidBod... | __label__POS | 0.779516 |
<?php
namespace Appstract\LushHttp\Response;
use Appstract\LushHttp\Events\ResponseEvent;
use Appstract\LushHttp\Request\LushRequest;
use JsonSerializable;
class LushResponse implements JsonSerializable
{
use ResponseGetters;
protected $content;
protected $object;
protected $request;
protecte... | __label__POS | 0.961925 |
<?php
namespace Appstract\LushHttp\Request;
trait RequestGetters
{
/**
* Get the payload.
*
* @return array
*/
public function getPayload()
{
return $this->payload;
}
/**
* Get the URL.
*
* @return mixed|string
*/
public function getUrl()
{
... | __label__POS | 0.998277 |
<?php
namespace Appstract\LushHttp\Request\Adapter;
class Curl implements AdapterInterface
{
/**
* The curl object.
*
* @var null
*/
protected $ch = null;
/**
* Init curl object with url.
*
* @param $url
*/
public function init($url)
{
$this->ch = c... | __label__POS | 0.99282 |
<?php
namespace Appstract\LushHttp\Request\Adapter;
use Appstract\LushHttp\Exception\LushRequestException;
use Exception;
class CurlMock implements AdapterInterface
{
/**
* The curl object.
*
* @var null
*/
protected $ch = null;
/**
* @var array
*/
protected $curlOption... | __label__POS | 0.727748 |
extends PhysicsUnitTest2D
var speed := 750
var tolerance = 1.5
var simulation_duration := 1
@onready var spawn_1 := $Spawn1 # max_x < 375 (400-25)
@onready var spawn_2 := $Spawn2 # max_x > 975 (100-25)
func test_description() -> String:
return """Checks if [floor_max_angle] working properly, the body shoould not de... | __label__POS | 0.775319 |
extends PhysicsUnitTest2D
func test_description() -> String:
return """
"""
func test_name() -> String:
return "CollisionShape2D | testing [One Way Collision] with World Boundary 2D"
func test_start() -> void:
var world_boundary := create_static_body(-25, CENTER)
world_boundary.position = BOTTOM_CENTER - Vect... | __label__POS | 0.607347 |
extends Node
class_name Monitor
signal completed
var multi_test_list: Array[Dictionary] = []
var multi_test_current := 0
var monitor_duration := 0.0
var monitor_maximum_duration := 10.0
var error_message := ""
var success := false
var started := false
var frame := 0 # physics frame
var expected_to_fail := false
var en... | __label__POS | 0.644455 |
extends Node2D
func _ready():
test_body_create()
test_body_empty()
test_body()
test_body_collision_exception_invalid()
func test_body_collision_exception_invalid():
print("test_body_collision_exception_invalid")
PhysicsServer2D.body_add_collision_exception(RID(), RID())
PhysicsServer2D.body_remove_collision_ex... | __label__POS | 0.652815 |
extends Node2D
@onready var body_a := PhysicsServer2D.body_create()
@onready var body_b := PhysicsServer2D.body_create()
@onready var body_a_with_space1 := PhysicsServer2D.body_create()
@onready var body_b_with_space1 := PhysicsServer2D.body_create()
@onready var body_a_with_space2 := PhysicsServer2D.body_create()
@on... | __label__POS | 0.895119 |
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 |
extends TestBase
@onready var body_a := PhysicsServer2D.body_create()
@onready var body_b := PhysicsServer2D.body_create()
@onready var body_a_with_space1 := PhysicsServer2D.body_create()
@onready var body_b_with_space1 := PhysicsServer2D.body_create()
@onready var body_a_with_space2 := PhysicsServer2D.body_create()
@... | __label__POS | 0.796749 |
extends PhysicsPerformanceTest3D
@export var shape: PhysicsTest3D.TestCollisionShape = PhysicsTest3D.TestCollisionShape.CONVEX_POLYGON
@export var stack_height := 8
@export var body_spacing := 0.1
@export var simulation_duration := 8
func test_description() -> String:
return """Checks the stability of the RigidBod... | __label__POS | 0.779516 |
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 |
import { NestedTreeControl } from '@angular/cdk/tree';
import { Component, Input, OnInit } from '@angular/core';
import { FolderNode, NftDirectory } from '../../../shared/models/NFTModels';
interface BigDir {
name: string;
children?: BigDir[]
path?: string;
}
@Component({
selector: 'app-file-viewer',
templ... | __label__POS | 0.606119 |
using System.Security.Cryptography;
using System.Text;
namespace Apptality.CloudMapEcsPrometheusDiscovery.Extensions;
public static class HashingExtensions
{
/// <summary>
/// Based on the provided values, computes a SHA256 hash.
/// If the collection is null or empty, returns "empty"
/// </summary>
... | __label__POS | 0.907632 |
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 |
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 |
//AppTapp Installer Writer by lex
#include <libxml/parser.h>
#include <libxml/xmlmemory.h>
#include <libxml/xmlwriter.h>
#include <string.h>
#include <stdio.h>
xmlTextWriterPtr writer;
char bundleIdentifier[1024];
char name[1024];
char version[1024];
char size[1024];
char location[1024];
char url[1024];
char time[1024... | __label__POS | 0.672075 |
#import <GraphicsServices/GraphicsServices.h>
#import <UIKit/UIKit.h>
#import <UIKit/UIApplication.h>
#import <UIKit/CDStructures.h>
#import <UIKit/UIHardware.h>
#import <UIKit/UIKeyboard.h>
#import <UIKit/UINavigationBar.h>
#import <UIKit/UINavigationItem.h>
#import <UIKit/UISegmentedControl.h>
#import <UIKit/UIAnimat... | __label__POS | 0.717894 |
// ASCollectionView. Created by Apptek Studios 2019
import Foundation
import UIKit
extension UICollectionView
{
var allSections: Range<Int>?
{
let sectionCount = dataSource?.numberOfSections?(in: self) ?? 1
guard sectionCount > 0 else { return nil }
return (0 ..< sectionCount)
}
func allIndexPaths(inSectio... | __label__POS | 0.891243 |
// ASCollectionView. Created by Apptek Studios 2019
import Foundation
struct ASIndexedDictionary<Key: Hashable, Value>: BidirectionalCollection
{
private var dictionary: [Key: Int] = [:]
private var array: [Value] = []
mutating func append(_ item: (key: Key, value: Value))
{
if let index = dictionary[item.key]... | __label__POS | 0.945128 |
// ASCollectionView. Created by Apptek Studios 2019
import Foundation
public final class ASPriorityCache<Key: Hashable, Value>
{
var maxSize: Int? = 50
private var nodes: [Key: Node] = [:]
private var head: Node?
private var tail: Node?
private class Node
{
var key: Key
var value: Value
var next: Node?
... | __label__POS | 0.976155 |
// ASCollectionView. Created by Apptek Studios 2019
import Foundation
import SwiftUI
@available(iOS 13.0, *)
@resultBuilder
public struct ViewArrayBuilder
{
public enum Wrapper
{
case empty
case view(AnyView)
case group([Wrapper])
init<Content: View>(_ view: Content)
{
self = .view(AnyView(view))
}
... | __label__POS | 0.877017 |
// ASCollectionView. Created by Apptek Studios 2019
import Foundation
import SwiftUI
@available(iOS 13.0, *)
public protocol Nestable
{
associatedtype T
func asArray() -> [T]
}
@available(iOS 13.0, *)
extension ASSection: Nestable
{
public func asArray() -> [ASSection]
{
[self]
}
}
@available(iOS 13.0, *)
ex... | __label__POS | 0.954007 |
package com.apptentive.android.sdk.serialization;
import org.junit.Before;
import org.junit.Test;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.File;
import java.io.IOException;
import static org.junit.Assert.assertEquals;
public class ObjectSerializationTest {
private File file;
@Before
... | __label__POS | 0.980648 |
package com.apptentive.android.sdk.encryption;
import com.apptentive.android.sdk.Encryption;
import org.junit.Test;
import java.util.Arrays;
import static org.junit.Assert.*;
public class EncryptionFactoryTest {
private static final String CIPHER_TRANSFORMATION = "AES/CBC/PKCS7Padding";
private static final Stri... | __label__POS | 0.976266 |
/*
* Copyright (c) 2017, Apptentive, Inc. All Rights Reserved.
* Please refer to the LICENSE file for the terms and conditions
* under which redistribution and use of this file is permitted.
*/
package com.apptentive.android.sdk.conversation;
import androidx.test.InstrumentationRegistry;
import com.apptentive.and... | __label__POS | 0.712962 |
package com.apptentive.android.sdk.module.engagement.logic;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import com.apptentive.android.sdk.storage.AppRelease;
import com.apptentive.android.sdk.storage.Device;
import com.apptentive.android.sdk.storage.EventData;
import co... | __label__POS | 0.923746 |
/*
* Copyright (c) 2017, Apptentive, Inc. All Rights Reserved.
* Please refer to the LICENSE file for the terms and conditions
* under which redistribution and use of this file is permitted.
*/
package com.apptentive.android.sdk;
public class ApptentiveNotifications {
/**
* Sent when conversation loading is f... | __label__POS | 0.898128 |
package com.apptentive.android.sdk.network;
import com.apptentive.android.sdk.util.StringUtils;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.IOException;
/**
* Class representing HTTP request with Json POST body
*/
public class HttpJsonRequest extends HttpRequest {
private final JSON... | __label__POS | 0.835711 |
package com.apptentive.android.sdk.util;
public class ApplicationInfo {
static final ApplicationInfo NULL = new ApplicationInfo("0", -1, -1, false); // TODO: figure out constant values
private final String versionName;
private final int versionCode;
private final int targetSdkVersion;
private final boolean debug... | __label__POS | 0.975686 |
/*
* Copyright (c) 2017, Apptentive, Inc. All Rights Reserved.
* Please refer to the LICENSE file for the terms and conditions
* under which redistribution and use of this file is permitted.
*/
package com.apptentive.android.sdk.util;
public class Constants {
public static final int API_VERSION = 10;
private s... | __label__POS | 0.999595 |
//
// StringUtils.java
//
// Lunar Unity Mobile Console
// https://github.com/SpaceMadness/lunar-unity-console
//
// Copyright 2017 Alex Lementuev, SpaceMadness.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may ob... | __label__POS | 0.813148 |
package com.apptentive.android.sdk.util;
import android.annotation.SuppressLint;
import android.content.SharedPreferences;
import com.apptentive.android.sdk.ApptentiveLog;
import com.apptentive.android.sdk.module.engagement.interaction.model.Interaction;
import java.util.concurrent.TimeUnit;
public class ThrottleU... | __label__POS | 0.919109 |
package com.apptentive.android.sdk.encryption;
import androidx.annotation.NonNull;
import com.apptentive.android.sdk.Encryption;
import com.apptentive.android.sdk.encryption.EncryptionKey.Transformation;
import static com.apptentive.android.sdk.util.ObjectUtils.isNullOrEmpty;
public class EncryptionFactory {
publi... | __label__POS | 0.958918 |
package com.apptentive.android.sdk.encryption;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.util.AtomicFile;
import com.apptentive.android.sdk.Encryption;
import com.apptentive.android.sdk.util.Util;
import java.io.File;
import java.io.FileOutputStream;
import java.io... | __label__POS | 0.63888 |
package com.apptentive.android.sdk.encryption;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.apptentive.android.sdk.util.StringUtils;
import java.security.Key;
import javax.crypto.spec.SecretKeySpec;
public class EncryptionKey {
/**
* A no-op encryption key for API versions... | __label__POS | 0.627474 |
package com.apptentive.android.sdk.encryption;
import androidx.annotation.NonNull;
import com.apptentive.android.sdk.Encryption;
import com.apptentive.android.sdk.util.StringUtils;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.security.Key;
import java.security.SecureRandom;
... | __label__POS | 0.73085 |
public struct Lexer {
public let templateString: String
public init(templateString: String) {
self.templateString = templateString
}
func createToken(string:String) -> Token {
func strip() -> String {
let start = string.index(string.startIndex, offsetBy: 2)
let end = string.index(string.en... | __label__POS | 0.977392 |
package com.apptentive.android.sdk.model;
import com.apptentive.android.sdk.ApptentiveLog;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.*;
import static com.apptentive.android.sdk.ApptentiveLogTag.CONVERSATION;
import static com.apptentive.android.sdk.debug.ErrorMetrics.logException;
... | __label__POS | 0.99591 |
package com.apptentive.android.sdk.debug;
import androidx.annotation.NonNull;
import com.apptentive.android.sdk.ApptentiveLog;
import com.apptentive.android.sdk.util.ObjectUtils;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public class ErrorMetrics {
private static final Object[] EMPTY... | __label__POS | 0.891849 |
package com.apptentive.android.sdk.debug;
import androidx.annotation.NonNull;
import com.apptentive.android.sdk.ApptentiveLog;
import com.apptentive.android.sdk.util.ObjectUtils;
import com.apptentive.android.sdk.util.StringUtils;
import com.apptentive.android.sdk.util.threading.DispatchQueue;
/**
* A set of assert... | __label__POS | 0.900661 |
package com.apptentive.android.sdk.storage;
import android.database.sqlite.SQLiteDatabase;
import com.apptentive.android.sdk.ApptentiveLog;
import com.apptentive.android.sdk.Encryption;
import com.apptentive.android.sdk.encryption.EncryptionKey;
import java.io.File;
import static com.apptentive.android.sdk.Apptenti... | __label__POS | 0.826546 |
package com.apptentive.android.sdk.storage;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.apptentive.android.sdk.ApptentiveLog;
import com.apptentive.android.sdk.Encryption;
import com.apptentive.android.sdk.encryption.EncryptionExcepti... | __label__POS | 0.651438 |
package com.apptentive.android.sdk.partners.apptimize;
import androidx.annotation.Nullable;
import com.apptentive.android.sdk.ApptentiveLog;
import com.apptentive.android.sdk.ApptentiveLogTag;
import com.apptentive.android.sdk.util.Invocation;
import com.apptentive.android.sdk.util.RuntimeUtils;
import com.apptentive... | __label__POS | 0.855962 |
/*
* Copyright (c) 2016, Apptentive, Inc. All Rights Reserved.
* Please refer to the LICENSE file for the terms and conditions
* under which redistribution and use of this file is permitted.
*/
package com.apptentive.android.sdk.module.engagement.logic;
import com.apptentive.android.sdk.Apptentive;
import com.app... | __label__POS | 0.716436 |
# Integration guide
This document provides useful information to help integrate VDB with your products and services.
## Pre-requisite
When used as a Python library, the only dependency is Python >= 3.10. When using the sqlite database directly in your application, ensure the version of the SQLite3 [library](https://... | __label__POS | 0.755659 |
# Vulnerability DB Reporting and Metrics
Loading the populated SQLite vulnerability database into a tool like [qStudio](https://github.com/timeseries/qstudio) can allow for running metrics around specific aspects. The SQLite database can be found in the following location:
- Macintosh: `\Users\<user>\Library\Applicati... | __label__POS | 0.702368 |
/*
* Copyright (c) 2016, Apptentive, Inc. All Rights Reserved.
* Please refer to the LICENSE file for the terms and conditions
* under which redistribution and use of this file is permitted.
*/
package com.apptentive.android.sdk.module.engagement.interaction.model;
import android.content.Context;
import android.c... | __label__POS | 0.968507 |
package io.apptik.widget;
import android.os.Bundle;
import android.view.accessibility.AccessibilityNodeInfo;
import androidx.test.uiautomator.Configurator;
import androidx.test.uiautomator.UiObject;
import androidx.test.uiautomator.UiObjectNotFoundException;
import androidx.test.uiautomator.UiScrollable;
import andro... | __label__POS | 0.755749 |
package io.apptik.rhub;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.annotations.OutputTimeUnit;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.State;
import org.openjdk.jmh.... | __label__POS | 0.985295 |
package io.apptik.rhub;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.annotations.OutputTimeUnit;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.State;
import org.openjdk.jmh.... | __label__POS | 0.985335 |
package io.apptik.rhub;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.annotations.OutputTimeUnit;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.State;
import org.openjdk.jmh.... | __label__POS | 0.980846 |
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android... | __label__POS | 0.999903 |
package io.apptik.rhub;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.annotations.OutputTimeUnit;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.State;
import org.openjdk.jmh.... | __label__POS | 0.981742 |
package io.apptik.rhub;
import org.openjdk.jmh.annotations.Level;
import org.openjdk.jmh.annotations.Param;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.Setup;
import org.openjdk.jmh.annotations.State;
import org.openjdk.jmh.annotations.TearDown;
import org.reactivestreams.Publisher;
... | __label__POS | 0.950579 |
package io.apptik.rhub;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.annotations.OutputTimeUnit;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.State;
import org.openjdk.jmh.... | __label__POS | 0.981084 |
package io.apptik.rhub;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.annotations.OutputTimeUnit;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.State;
import org.openjdk.jmh.... | __label__POS | 0.98103 |
package io.appthreat.atom.passes
import io.appthreat.dataflowengineoss.passes.reachingdef.*
import io.appthreat.dataflowengineoss.semanticsloader.Semantics
import io.shiftleft.codepropertygraph.Cpg
import io.shiftleft.codepropertygraph.generated.nodes.*
import io.shiftleft.semanticcpg.language.*
import io.shiftleft.pa... | __label__POS | 0.973448 |
package io.apptik.rhub;
import org.openjdk.jmh.annotations.Level;
import org.openjdk.jmh.annotations.Param;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.Setup;
import org.openjdk.jmh.annotations.State;
import org.openjdk.jmh.annotations.TearDown;
import rx.Observable;
import rx.observ... | __label__POS | 0.978933 |
package io.apptik.rhub;
import com.jakewharton.rxrelay.*;
import io.apptik.roxy.Roxy;
import io.apptik.roxy.RxJava1Proxies;
import rx.Observable;
import rx.subjects.*;
public enum RxJava1ProxyType implements RHub.ProxyType<Roxy<Observable>> {
/**
* Proxy based on {@link BehaviorSubject}
*/
Behavi... | __label__POS | 0.675614 |
package io.apptik.widget;
import android.view.View;
import org.hamcrest.Matcher;
import androidx.test.espresso.UiController;
import androidx.test.espresso.ViewAction;
import androidx.test.espresso.matcher.ViewMatchers;
public class SetThumbValueAction implements ViewAction {
private int value;
private Mult... | __label__POS | 0.830895 |
//
// PictureSource.swift
// ApptentiveExample
//
// Created by Frank Schmitt on 8/6/15.
// Copyright (c) 2015 Apptentive, Inc. All rights reserved.
//
import UIKit
import QuickLook
class PictureManager {
static let sharedManager = PictureManager()
var pictures = [Picture]()
var favoriteDataSource: Picture... | __label__POS | 0.629363 |
package io.apptik.rhub;
import org.openjdk.jmh.annotations.Level;
import org.openjdk.jmh.annotations.Param;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.Setup;
import org.openjdk.jmh.annotations.State;
import org.openjdk.jmh.annotations.TearDown;
import org.reactivestreams.Publisher;
... | __label__POS | 0.95927 |
package io.apptik.rhub;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.annotations.OutputTimeUnit;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.State;
import org.openjdk.jmh.... | __label__POS | 0.985261 |
package io.apptik.rhub;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.annotations.OutputTimeUnit;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.State;
import org.openjdk.jmh.... | __label__POS | 0.981079 |
//
// Use this file to import your target's public headers that you would like to expose to Swift.
//
#import "ApptentiveMain.h"
#import "ApptentiveLog.h"
#import "ApptentiveConversationManager.h"
#import "ApptentiveAppRelease.h"
#import "ApptentiveDevicePayload.h"
#import "ApptentiveEventPayload.h"
#import "Appten... | __label__POS | 0.828164 |
package io.apptik.rhub.exampleapp;
import android.content.Context;
import android.support.v4.util.Pair;
import io.apptik.rhub.DefaultRxJava1Hub;
import io.apptik.rhub.RxJava1Hub;
import io.apptik.rhub.RxJava1ProxyType;
import io.apptik.rhub.shield.ProxyTag;
import io.apptik.rhub.shield.ShieldMakerRxJava1;
import io.... | __label__POS | 0.929025 |
package io.apptik.multiview.layoutmanagers;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.View;
import io.apptik.multiview.common.Log;
public class AbstractPagerLLM<T extends AbstractPagerLLM<T>> extends AbstractSnapperLLM<T> {
... | __label__POS | 0.638258 |
package io.apptik.multiview.galleryview.scaleimage;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import io.apptik.multiview.layoutmanagers.ViewPagerLayoutManager;
import io.apptik.multiview.scalablerecyclerview.ScalableRecyclerGridView;
public clas... | __label__POS | 0.977142 |
package io.apptik.comm.jus;
import java.net.HttpURLConnection;
import io.apptik.comm.jus.http.HttpUrl;
/**
* Defines redirect policy for a request
*/
public interface RedirectPolicy {
/**
* If redirect is supported then just modify request as needed and return true
* otherwise return false which will... | __label__POS | 0.916718 |
/*
* Copyright (C) 2015 AppTik Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | __label__POS | 0.992169 |
package io.apptik.multiview.scalablerecyclerview;
import android.content.Context;
import android.graphics.Rect;
import android.os.Bundle;
import android.os.Parcelable;
import android.support.annotation.Nullable;
import android.support.v4.view.accessibility.AccessibilityNodeInfoCompat;
import android.support.v7.widget.... | __label__POS | 0.812112 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_74) on Wed Oct 12 12:22:02 CEST 2016 -->
<title>Index (roxy-reactor API)</title>
<meta name="date" content="2016-10-12">
<link rel="stylesheet"... | __label__POS | 0.82226 |
Class {
#name : #SoilTypeCodes,
#superclass : #SharedPool,
#classVars : [
'TypeCodeArray',
'TypeCodeAssociation',
'TypeCodeByteArray',
'TypeCodeCharacter',
'TypeCodeClass',
'TypeCodeCompiledBlock',
'TypeCodeCompiledMethod',
'TypeCodeDate',
'TypeCodeDateAndTime',
'TypeCodeDictionary',
'TypeCodeE... | __label__POS | 0.60788 |
# Accessibility focus indicator - iOS
On iOS, you can adjust colors when an element receives focus. However, it's not possible to change the focus indicator of assistive technologies. Users can adjust their preferences in the system settings of iOS.
You can override the [`accessibilityElementDidBecomeFocused`](https:... | __label__POS | 0.930214 |
# Accessibility focus indicator - Flutter
In Flutter, you can adjust colors when an element receives focus. However, it's not possible to change the focus indicator of assistive technologies. Users can adjust their preferences in the system settings on Android and iOS.
You can change colors based on [`MaterialState`]... | __label__POS | 0.845356 |
# Accessibility role - iOS
On iOS, the [`accessibilityTraits`](https://developer.apple.com/documentation/objectivec/nsobject/1615202-accessibilitytraits) attribute is used to indicate an accessibility role. The [`UIAccessibilityTraits`](https://developer.apple.com/documentation/uikit/uiaccessibility/uiaccessibilitytra... | __label__POS | 0.669391 |
# Accessibility order - Android
On Android, you can set the accessibility order in XML, or modify the accessibility order in code. You can use the [`android:accessibilityTraversalAfter`](https://developer.android.com/reference/android/view/View#attr_android:accessibilityTraversalAfter) and [`android:accessibilityTrave... | __label__POS | 0.94944 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_74) on Wed Oct 12 12:22:21 CEST 2016 -->
<title>All Classes (rxHub API)</title>
<meta name="date" content="2016-10-12">
<link rel="stylesheet" ... | __label__POS | 0.920087 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_74) on Wed Oct 12 12:22:21 CEST 2016 -->
<title>All Classes (rxHub API)</title>
<meta name="date" content="2016-10-12">
<link rel="stylesheet" ... | __label__POS | 0.880546 |
/*
* Copyright (C) 2015 Apptik Project
* Copyright (C) 2014 Kalin Maldzhanski
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*... | __label__POS | 0.865723 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.