content stringlengths 263 5.24M | pred_label stringclasses 1
value | pred_score_pos float64 0.6 1 |
|---|---|---|
package com.crossbowffs.nekosms.filters;
import com.crossbowffs.nekosms.data.SmsFilterMode;
import com.crossbowffs.nekosms.data.SmsFilterPatternData;
import java.text.Normalizer;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/* package */ class RegexFilterPattern extends SmsFilterPattern {
priv... | __label__POS | 0.647439 |
package com.crossbowffs.nekosms.filters;
import com.crossbowffs.nekosms.data.*;
import com.crossbowffs.nekosms.utils.Xlog;
public class SmsFilter {
private final SmsFilterAction mAction;
private final SmsFilterPattern mSenderPattern;
private final SmsFilterPattern mBodyPattern;
public SmsFilter(SmsFi... | __label__POS | 0.628454 |
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 |
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 |
package com.apress.springrecipes.bank;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
public class InMemoryAccountDao implements AccountDao {
private Map<String, Account> accounts;
public InMemoryAccountDao() {
accounts = Collections.synchronizedMap(new HashMap<String,... | __label__POS | 0.654529 |
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 |
package com.bookstore;
import com.bookstore.service.InventoryService;
import com.vladmihalcea.concurrent.aop.OptimisticConcurrencyControlAspect;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import org.springframework.boot.ApplicationRunner;
i... | __label__POS | 0.761733 |
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 |
/*
* 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 |
package com.apress.springrecipes.bank;
import java.util.Objects;
public class Account {
private final String accountNo;
private double balance;
/**
* Default constructor because JPA demands it.
*/
private Account() {
this(null, 0.0d);
}
public Account(String accountNo, dou... | __label__POS | 0.944079 |
package com.apress.springrecipes.bank.config;
import javax.sql.DataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.spr... | __label__POS | 0.68374 |
//
// 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.apress.springrecipes.bank;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.jdbc.Sql;
import org.... | __label__POS | 0.832045 |
package com.apress.springrecipes.bank;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
public class InMemoryAccountDaoTests {
private static final String EXISTING_ACCOUNT_NO = "123... | __label__POS | 0.745315 |
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.apress.springrecipes.bank.web;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import org.springframework.ui.ModelMap;
import com.apress.springrecipes.bank.AccountService;
public class DepositControllerTests {
private static f... | __label__POS | 0.938043 |
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 |
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 |
# 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 |
ActiveTest.Tests.Record.transactions = function()
{
with(ActiveTest)
{
var count = Comment.count();
Comment.transaction(function(){
var a = Comment.create({
title: 'a'
});
var b = Comment.create({
title: 'a'
});
... | __label__POS | 0.931494 |
ActiveTest.Tests.Record.indicies = function()
{
with(ActiveTest)
{
if(ActiveRecord.connection && ActiveRecord.connection.storage){
User.addIndex('byLetter',{a:{},b:{},c:{}},{
afterSave: function(index,user){
var first_letter = user.name.substring(0,1).toLo... | __label__POS | 0.938252 |
# 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 |
package com.apress.springrecipes.bank;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
public class InMemoryAccountDao implements AccountDao {
private Map<String, Account> accounts;
public InMemoryAccountDao() {
accounts = Collections.synchronizedMap(new HashMap<String,... | __label__POS | 0.654529 |
package com.apress.springrecipes.bank;
import java.util.Objects;
public class Account {
private final String accountNo;
private double balance;
/**
* Default constructor because JPA demands it.
*/
private Account() {
this(null, 0.0d);
}
public Account(String accountNo, dou... | __label__POS | 0.944079 |
/*
A A L Source code at:
T C A <http://www.attacklab.net/>
T K B
*/
var Showdown={};
Showdown.converter=function(){
var _1;
var _2;
var _3;
var _4=0;
this.makeHtml=function(_5){
_1=new Array();
_2=new Array();
_3=new Array();
_5=_5.replace(/~/g,"~T");
_5=_5.replace(/\$/g,"~D");
_5=_5.replace(/\r\n/g,... | __label__POS | 0.999429 |
package com.apress.springrecipes.bank.config;
import javax.sql.DataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.spr... | __label__POS | 0.68374 |
Class {
#name : #SoilTypeCodes,
#superclass : #SharedPool,
#classVars : [
'TypeCodeArray',
'TypeCodeAssociation',
'TypeCodeByteArray',
'TypeCodeCharacter',
'TypeCodeClass',
'TypeCodeCompiledBlock',
'TypeCodeCompiledMethod',
'TypeCodeDate',
'TypeCodeDateAndTime',
'TypeCodeDictionary',
'TypeCodeE... | __label__POS | 0.60788 |
/**
* ActiveSupport.String
**/
ActiveSupport.String = {
/**
* ActiveSupport.String.underscore(string) -> String
* Emulates Prototype's [String.prototype.underscore](http://api.prototypejs.org/language/string/prototype/underscore/)
**/
underscore: function underscore(str)
{
return st... | __label__POS | 0.970247 |
/**
* ActiveSupport.Object
**/
ActiveSupport.Object = {
/**
* ActiveSupport.Object.isArray(object) -> Boolean
**/
isArray: function isArray(object)
{
return object && typeof(object) == 'object' && 'length' in object && 'splice' in object && 'join' in object;
},
/**
* ActiveS... | __label__POS | 0.938791 |
/**
* ActiveSupport.Array
**/
ActiveSupport.Array = {
/**
* ActiveSupport.Array.from(object) -> Array
* Returns an array from an array or array like object.
**/
from: function from(object)
{
if(!object)
{
return [];
}
var length = object.length ||... | __label__POS | 0.987795 |
/**
* ActiveSupport.Function
**/
ActiveSupport.Function = {
/**
* ActiveSupport.Function.methodize(function) -> Function
* Emulates Prototype's [Function.prototype.methodize](http://api.prototypejs.org/language/function/prototype/methodize/) including curry functionality.
**/
methodize: functio... | __label__POS | 0.977927 |
/**
* class ActiveRecord.ResultSet
* When using any finder method, the returned array will be extended
* with the methods in this namespace. A returned result set is still
* an instance of Array.
**/
var ResultSet = {};
ResultSet.InstanceMethods = {
/**
* ActiveRecord.ResultSet#reload() -> null
* Re... | __label__POS | 0.985999 |
ActiveSupport.Object.extend(ActiveRecord.ClassMethods,{
processCalculationParams: function processCalculationParams(operation,params)
{
if(!params)
{
params = {};
}
if(typeof(params) === 'string')
{
params = {
where: params
... | __label__POS | 0.906148 |
Adapters.InMemory = function InMemory(storage){
this.lastInsertId = null;
this.setStorage(storage);
};
/**
* ActiveRecord.connection.storage -> Object
* Contains the raw data that the InMemory database uses. Stored in this format:
*
* {
* table_name: {
* id: {
* ... | __label__POS | 0.742938 |
#include "common.h"
#include <cri/private/libadxe/structs.h>
#include <cri/private/libadxe/lsc.h>
#include <cri/private/libadxe/lsc_crs.h>
#include <cri/private/libadxe/lsc_err.h>
#include <cri/private/libadxe/lsc_ini.h>
#include <cri/private/libadxe/lsc_svr.h>
#include <cri/ee/cri_xpt.h>
#include <cri/sj.h>
#includ... | __label__POS | 0.746719 |
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 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 com.apress.springrecipes.bank;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
public class InMemoryAccountDaoTests {
private static final String EXISTING_ACCOUNT_NO = "123... | __label__POS | 0.745315 |
<!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 |
(self.webpackChunkwebviewer_ui=self.webpackChunkwebviewer_ui||[]).push([[58805],{"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/src/index.js??ruleSet[1].rules[13].use[2]!./node_modules/sass-loader/dist/cjs.js!./src/components/PageReplacementModal/PageReplacementModal.scss":(module,exports,__webpac... | __label__POS | 0.697034 |
<?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 |
/*
* 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 |
package com.apress.springrecipes.bank.web;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import org.springframework.ui.ModelMap;
import com.apress.springrecipes.bank.AccountService;
public class DepositControllerTests {
private static f... | __label__POS | 0.938043 |
<?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 |
package com.apress.springrecipes.bank;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
public class InMemoryAccountDao implements AccountDao {
private Map<String, Account> accounts;
public InMemoryAccountDao() {
accounts = Collections.synchronizedMap(new HashMap<String,... | __label__POS | 0.654529 |
package com.apress.springrecipes.bank;
import java.util.Objects;
public class Account {
private final String accountNo;
private double balance;
/**
* Default constructor because JPA demands it.
*/
private Account() {
this(null, 0.0d);
}
public Account(String accountNo, dou... | __label__POS | 0.944079 |
package com.bookstore.config;
import org.hibernate.boot.Metadata;
import org.hibernate.boot.model.relational.Database;
import org.hibernate.engine.spi.SessionFactoryImplementor;
import org.hibernate.service.spi.SessionFactoryServiceRegistry;
public class DatabaseTableMetadataExtractor
implements org.hibernate... | __label__POS | 0.872363 |
package com.apress.springrecipes.bank.config;
import javax.sql.DataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.spr... | __label__POS | 0.609587 |
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.bookstore;
import com.bookstore.service.BookstoreService;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
@SpringBootApplication
pu... | __label__POS | 0.995187 |
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 |
<!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 |
/*
* 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 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.apress.springrecipes.bank;
import static org.junit.Assert.assertEquals;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;
import com.apress.... | __label__POS | 0.929145 |
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 |
package com.apress.springrecipes.bank;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
public class InMemoryAccountDaoTests {
private static final String EXISTING_ACCOUNT_NO = "123... | __label__POS | 0.745315 |
package com.apress.springrecipes.bank.web;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import org.springframework.ui.ModelMap;
import com.apress.springrecipes.bank.AccountService;
public class DepositControllerTests {
private static f... | __label__POS | 0.938043 |
import * as fs from 'fs';
import * as path from 'path';
import * as vscode from 'vscode';
import { recordCompletionItemProvider } from '@appworks/recorder';
import { getFocusCodeInfo } from '../getFocusCodeInfo';
function unique(arr: string[]) {
return Array.from(new Set(arr));
}
function provideCompletionItems(doc... | __label__POS | 0.705085 |
package com.bookstore;
import com.bookstore.service.BookstoreService;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
@SpringBootApplication
pu... | __label__POS | 0.982492 |
<!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 |
package com.apress.springrecipes.bank;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public class InMemoryAccountDao implements AccountDao {
private Map<String, Account> accounts = new ConcurrentHashMap<>();
public boolean accountExists(String accountNo) {
return accounts.cont... | __label__POS | 0.810289 |
# Accessibility value - Flutter
With Flutter, you can set an accessibility value by using the `value` or `attributedValue` property of [`Semantics`](https://api.flutter.dev/flutter/widgets/Semantics/Semantics.html).
When using the semantically correct element, you usually do not need to modify the accessibility value... | __label__POS | 0.616895 |
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.apress.springrecipes.bank;
import java.util.Objects;
public class Account {
private final String accountNo;
private double balance;
/**
* Default constructor because JPA demands it.
*/
private Account() {
this(null, 0.0d);
}
public Account(String accountNo, dou... | __label__POS | 0.944079 |
# Keyboard order - iOS
On iOS, you can use the [`accessibilityRespondsToUserInteraction`](https://developer.apple.com/documentation/objectivec/nsobject/3043551-accessibilityrespondstouserinter) attribute to optimize keyboard navigation. By setting the property to `false`, the element will be skipped with keyboard navi... | __label__POS | 0.887632 |
# Keyboard order - Android
On Android, you can use several `focus` properties to modify the keyboard focus order.
- [`android:nextFocusForward`](https://developer.android.com/reference/android/view/View#attr_android:nextFocusForward): set the next element to move focus to.
- [`android:nextFocusUp`](https://developer.... | __label__POS | 0.970219 |
package com.apress.springrecipes.bank;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
public class InMemoryAccountDaoTests {
private static final String EXISTING_ACCOUNT_NO = "123... | __label__POS | 0.745315 |
package com.bookstore;
import com.bookstore.service.BookstoreService;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework... | __label__POS | 0.98662 |
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 io.apptik.comm.jus.perf;
import com.android.volley.toolbox.BasicNetwork;
import org.apache.http.HttpResponse;
import org.apache.http.ProtocolVersion;
import org.apache.http.entity.ByteArrayEntity;
import org.apache.http.message.BasicHttpResponse;
import io.apptik.comm.jus.NetworkResponse;
import io.apptik.c... | __label__POS | 0.678143 |
package io.apptik.comm.jus.perf;
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 java.util.concurrent.CountDownLatch;
import java.ut... | __label__POS | 0.902733 |
package com.apress.springrecipes.bank.web;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import org.springframework.ui.ModelMap;
import com.apress.springrecipes.bank.AccountService;
public class DepositControllerTests {
private static f... | __label__POS | 0.938043 |
package io.apptik.comm.jus.perf;
import io.apptik.comm.jus.NetworkResponse;
import io.apptik.comm.jus.Request;
import io.apptik.comm.jus.RequestQueue;
import io.apptik.comm.jus.perf.mock.MockJusHttpStack;
import io.apptik.comm.jus.toolbox.HttpNetwork;
import io.apptik.comm.jus.toolbox.NoCache;
public class JusReques... | __label__POS | 0.710727 |
final JUNIT5_ROBOLECTRIC_EXTENSION_MAVEN_USERNAME = System.getenv('JUNIT5_ROBOLECTRIC_EXTENSION_MAVEN_USERNAME') ?: ''
final JUNIT5_ROBOLECTRIC_EXTENSION_MAVEN_PASSWORD = System.getenv('JUNIT5_ROBOLECTRIC_EXTENSION_MAVEN_PASSWORD') ?: ''
if (JUNIT5_ROBOLECTRIC_EXTENSION_MAVEN_USERNAME != '' && JUNIT5_ROBOLECTRIC_EXTEN... | __label__POS | 0.691687 |
package io.apptik.comm.jus.perf;
import io.apptik.comm.jus.NetworkResponse;
import io.apptik.comm.jus.Request;
public interface RequestPipeline {
Request<NetworkResponse> addRequest(Request<NetworkResponse> request);
com.android.volley.Request<com.android.volley.NetworkResponse> addRequest
(com... | __label__POS | 0.992891 |
package io.apptik.comm.jus.perf;
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 java.util.ArrayList;
im... | __label__POS | 0.725739 |
package com.bookstore;
import com.bookstore.service.ShoppingCartService;
import com.bookstore.entity.ShoppingCart;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.contex... | __label__POS | 0.925696 |
package io.apptik.comm.jus.perf.mock;
import com.android.volley.NetworkResponse;
import com.android.volley.Request;
import com.android.volley.Response;
import com.android.volley.toolbox.HttpHeaderParser;
public class MockVolleyRequest extends Request<com.android.volley.NetworkResponse> {
private com.android.volle... | __label__POS | 0.866405 |
package com.apress.springrecipes.bank;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
public class InMemoryAccountDao implements AccountDao {
private Map<String, Account> accounts;
public InMemoryAccountDao() {
accounts = Collections.synchronizedMap(new HashMap<String,... | __label__POS | 0.654529 |
package com.bookstore.entity;
import java.io.Serializable;
import javax.persistence.Embeddable;
@Embeddable
public class Book implements Serializable {
private static final long serialVersionUID = 1L;
private String title;
private String isbn;
private String genre;
private int price;
pu... | __label__POS | 0.72628 |
package com.apress.springrecipes.bank;
import java.util.Objects;
public class Account {
private final String accountNo;
private double balance;
/**
* Default constructor because JPA demands it.
*/
private Account() {
this(null, 0.0d);
}
public Account(String accountNo, dou... | __label__POS | 0.944079 |
package com.apress.springrecipes.bank.config;
import javax.sql.DataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.spr... | __label__POS | 0.609587 |
<!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:03 CEST 2016 -->
<title>Index (roxy-rxjava1 API)</title>
<meta name="date" content="2016-10-12">
<link rel="stylesheet"... | __label__POS | 0.63969 |
package com.bookstore;
import com.bookstore.dto.AuthorDto;
import com.bookstore.entity.Author;
import com.bookstore.service.BookstoreService;
import java.util.List;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.Spring... | __label__POS | 0.955813 |
package com.apress.springrecipes.bank;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
public class InMemoryAccountDaoTests {
private static final String EXISTING_ACCOUNT_NO = "123... | __label__POS | 0.745315 |
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 |
package com.apress.springrecipes.bank;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public class InMemoryAccountDao implements AccountDao {
private Map<String, Account> accounts = new ConcurrentHashMap<>();
public boolean accountExists(String accountNo) {
return accounts.cont... | __label__POS | 0.810289 |
package com.bookstore;
import com.bookstore.service.InventoryService;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframewor... | __label__POS | 0.896065 |
export class UrlHistory {
public maxLength: number;
private past = [];
private present = undefined;
private future = [];
/**
* create a new UrlHistory
* @param maxLength maximum number of past entries that should be stored (default=50)
*/
constructor(maxLength = 50) {
this.maxLength = maxLe... | __label__POS | 0.976383 |
package com.apress.springrecipes.bank;
import java.util.Objects;
public class Account {
private final String accountNo;
private double balance;
/**
* Default constructor because JPA demands it.
*/
private Account() {
this(null, 0.0d);
}
public Account(String accountNo, dou... | __label__POS | 0.944079 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.