content
stringlengths
263
5.24M
pred_label
stringclasses
1 value
pred_score_pos
float64
0.6
1
package com.apssouza.mytrade.trading.domain.forex.feed.pricefeed; import com.apssouza.mytrade.common.time.DateTimeHelper; import com.apssouza.mytrade.feed.api.PriceDto; import com.apssouza.mytrade.trading.domain.forex.common.events.Event; import com.apssouza.mytrade.trading.domain.forex.common.TradingHelper; import co...
__label__POS
0.789574
package com.apssouza.mytrade.trading.domain.forex.riskmanagement.stopordercreation; import com.apssouza.mytrade.feed.api.PriceDto; import com.apssouza.mytrade.trading.domain.forex.portfolio.PositionDto; import com.apssouza.mytrade.trading.domain.forex.common.events.Event; import java.math.BigDecimal; import java.util...
__label__POS
0.752819
package com.apssouza.mytrade.trading.domain.forex.riskmanagement.stopordercreation; import com.apssouza.mytrade.trading.domain.forex.portfolio.PositionDto; import com.apssouza.mytrade.trading.domain.forex.common.NumberHelper; import java.math.BigDecimal; import java.util.Optional; class ShortPositionStrategy impleme...
__label__POS
0.798462
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
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> <script type="text/javascript" src="//use.typekit.net/jbn8qxr.js"></script> <scri...
__label__POS
0.977552
<!doctype html> <title>CodeMirror: Oz mode</title> <meta charset="utf-8"/> <link rel=stylesheet href="../../doc/docs.css"> <link rel="stylesheet" href="../../lib/codemirror.css"> <script src="../../lib/codemirror.js"></script> <script src="oz.js"></script> <script src="../../addon/runmode/runmode.js"></script> <style...
__label__POS
0.708507
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.972767
// Standard Canary layout - created by AKL Creators // File auto-generated by Keynergy layoutexport (github.com/keynergy/layoutexport) default partial xkb_symbols "basic" { include "us(basic)" name[Group1] = "Canary"; key <AD01> {[ w, W ]}; key <AD02> {[ l, L ]}; key <AD03> {[ y, Y ]}; key <A...
__label__POS
0.88723
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.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; impo...
__label__POS
0.777946
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.apssouza.mytrade.runner; import com.apssouza.mytrade.trading.api.ExecutionType; import com.apssouza.mytrade.trading.api.ForexBuilder; import com.apssouza.mytrade.trading.api.SessionType; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;...
__label__POS
0.99348
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
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.bookstore.entity; import java.io.Serializable; import java.util.Objects; import javax.persistence.Column; public class AuthorId implements Serializable { private static final long serialVersionUID = 1L; @Column(name = "name") private String name; @Column(name = "age") private in...
__label__POS
0.989191
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; 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.982346
package com.bookstore.entity; import java.io.Serializable; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @Entity public class Book implements Serializable { private static final long serialVersionUID = 1L; @Id ...
__label__POS
0.740822
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
// 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
# 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
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.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; 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.6172
# 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
package com.bookstore.service; import com.bookstore.projection.AuthorNameBookTitle; import com.bookstore.repository.AuthorRepository; import com.bookstore.repository.BookRepository; import java.util.List; import org.springframework.stereotype.Service; @Service public class BookstoreService { private final Author...
__label__POS
0.955359
// Code generated by "enumer -type=AutocommitDMLMode -trimprefix=AutocommitDMLMode -transform=snake_upper"; DO NOT EDIT. package enums import ( "fmt" "strings" ) const _AutocommitDMLModeName = "TRANSACTIONALPARTITIONED_NON_ATOMIC" var _AutocommitDMLModeIndex = [...]uint8{0, 13, 35} const _AutocommitDMLModeLowerN...
__label__POS
0.610582
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.repository; import java.util.List; import com.bookstore.entity.Author; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Transactio...
__label__POS
0.628044
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.bookstore.repository; import java.util.List; import com.bookstore.entity.Book; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Transactiona...
__label__POS
0.68902
// // 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 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
using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Routing; using Microsoft.AspNetCore.Razor.TagHelpers; using Moq; using SportsStore.Infrastructure; using SportsStore.Models.ViewModels; using Xunit; namespace SportsStore.Tests { public ...
__label__POS
0.898823
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.crossbowffs.remotepreferences; /** * Represents a single preference file and the information needed to * access that preference file. */ public class RemotePreferenceFile { private final String mFileName; private final boolean mIsDeviceProtected; /** * Initializes the preference file i...
__label__POS
0.785348
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
-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 com.crossbowffs.remotepreferences; /** * A path consists of a preference file name and optionally a key within * the preference file. The key will be set for operations that involve * a single preference (e.g. {@code getInt}), and {@code null} for operations * on an entire preference file (e.g. {@code getA...
__label__POS
0.936065
package com.bookstore.controller; import com.bookstore.dto.AuthorBookDto; import com.bookstore.service.BookstoreService; import java.util.List; import org.springframework.data.domain.Page; import org.springframework.data.domain.Slice; import org.springframework.web.bind.annotation.GetMapping; import org.springframewor...
__label__POS
0.970025
// // 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 com.crossbowffs.remotepreferences; import androidx.test.ext.junit.runners.AndroidJUnit4; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import java.util.HashSet; import java.util.LinkedHashSet; import java.util.Set; @RunWith(AndroidJUnit4.class) public class RemoteUtilsTest...
__label__POS
0.956244
package com.crossbowffs.remotepreferences.testapp; import android.content.SharedPreferences; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; public class TestPreferenceListener implements SharedPreferences.OnSharedPreferenceChangeListener { private boolean mIsCalled; private...
__label__POS
0.661043
<!doctype html> <title>CodeMirror: Scheme mode</title> <meta charset="utf-8"/> <link rel=stylesheet href="../../doc/docs.css"> <link rel="stylesheet" href="../../lib/codemirror.css"> <script src="../../lib/codemirror.js"></script> <script src="scheme.js"></script> <style>.CodeMirror {background: #f8f8f8;}</style> <di...
__label__POS
0.610487
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.testng.annotations.BeforeMethod; import org.testng.annotations.Test; public class InMemoryAccountDaoTests { private static final S...
__label__POS
0.635803
package com.apress.springrecipes.bank; import static org.junit.Assert.assertEquals; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; public class AccountServiceTests { private static final String TEST_ACCOUNT_NO = "1234"; private Acc...
__label__POS
0.916443
package com.apress.springrecipes.bank.web; import static org.junit.Assert.assertEquals; import org.mockito.Mockito; import org.springframework.ui.ModelMap; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; import com.apress.springrecipes.bank.AccountService; public class DepositControl...
__label__POS
0.840592
package com.bookstore; import com.bookstore.ds2.BookService; import com.bookstore.ds1.AuthorService; import com.bookstore.service.AuthorBookService; import org.springframework.boot.ApplicationRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;...
__label__POS
0.968609
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
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 com.bookstore.service; import com.bookstore.ds1.Author; import com.bookstore.ds1.AuthorRepository; import com.bookstore.ds2.Book; import com.bookstore.ds2.BookRepository; import org.springframework.stereotype.Service; @Service public class AuthorBookService { private final AuthorRepository authorReposito...
__label__POS
0.970582
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.crossbowffs.nekosms.app; import android.database.Cursor; import android.graphics.Typeface; import android.text.format.DateUtils; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.r...
__label__POS
0.764105
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 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.crossbowffs.nekosms.app; import android.database.Cursor; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; import com.crossbowffs.nekosms.R; impor...
__label__POS
0.829554
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.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 com.crossbowffs.nekosms.widget; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Rect; import android.graphics.drawable.Drawable; import android.util.AttributeSet; import android.view.ContextMenu; import android.view.View; import and...
__label__POS
0.775404
package com.crossbowffs.nekosms.widget; import android.content.ContentResolver; import android.content.ContentUris; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.net.Uri; public abstract class AutoContentLoader<T> { private final Uri mContentU...
__label__POS
0.841046
package com.crossbowffs.nekosms.widget; import android.content.*; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.database.sqlite.SQLiteQueryBuilder; import android.net.Uri; import android.provider.BaseColumns; import androi...
__label__POS
0.832525
package com.crossbowffs.nekosms.widget; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; import java.util.LinkedHashMap; import java.util.List; public class StringAdapter<T> ...
__label__POS
0.60362
package com.crossbowffs.nekosms.widget; import android.database.Cursor; import android.provider.BaseColumns; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; public abstract class RecyclerCursorAdapter<VH extends RecyclerView.ViewHolder> extends RecyclerView.Adapter<VH> { priv...
__label__POS
0.988633
package com.crossbowffs.nekosms.backup; import android.content.Context; import android.content.Intent; import android.net.Uri; import com.crossbowffs.nekosms.utils.Xlog; import java.io.IOException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; public final class BackupLoader { ...
__label__POS
0.754676
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.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 com.crossbowffs.nekosms.backup; import android.content.Context; import com.crossbowffs.nekosms.data.*; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.util.ArrayList; import java.util.List; /* package */ class BackupImporterDelegate2 extends BackupImporterDel...
__label__POS
0.603735
# 文档 Quick 能够帮助你验证你的 Swift 和 Objective-C 程序的行为。然而,能提高你的测试技巧的不仅仅是了解如何使用 Quick。下面这些指南能够帮助你更有效地写测试 —— 不仅是和 Quick 相关的,更包括 XCTest 还有其他的测试框架。 每份指南都有一个主题。如果你对单元测试完全陌生,建议你按照从上往下的顺序阅读。 - **[在项目中添加测试](SettingUpYourXcodeProject.md)**:如果你遇到在项目中构建测试的问题,请阅读这份指南。 - **[编写高效的 XCTest 测试: Arrange,Act 和 Assert](ArrangeActAssert.md)**:阅...
__label__POS
0.994765
package com.crossbowffs.nekosms.loader; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.net.Uri; import com.crossbowffs.nekosms.data.SmsMessageData; import com.crossbowffs.nekosms.widget.AutoContentLoader; import com.crossbowffs.nekosms.widget.Cursor...
__label__POS
0.643734
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
<!doctype html> <title>CodeMirror: Go mode</title> <meta charset="utf-8"/> <link rel=stylesheet href="../../doc/docs.css"> <link rel="stylesheet" href="../../lib/codemirror.css"> <link rel="stylesheet" href="../../theme/elegant.css"> <script src="../../lib/codemirror.js"></script> <script src="../../addon/edit/matchb...
__label__POS
0.665394
// 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 com.crossbowffs.nekosms.provider; import android.content.ContentResolver; import android.net.Uri; import android.provider.BaseColumns; import com.crossbowffs.nekosms.BuildConfig; public final class DatabaseContract { public static final String AUTHORITY = BuildConfig.APPLICATION_ID + ".database"; publ...
__label__POS
1.000003
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
/* * 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
//////////////////////////////////////////////////////////////////////////////// // // 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
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.crossbowffs.nekosms.utils; import android.content.Intent; import android.os.Build; import android.provider.Telephony; import android.telephony.SmsMessage; import android.telephony.SubscriptionManager; import com.crossbowffs.nekosms.data.SmsMessageData; import java.text.Normalizer; public final class Sms...
__label__POS
0.969626
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.crossbowffs.nekosms.utils; import android.util.Log; import com.crossbowffs.nekosms.BuildConfig; public final class Xlog { private static final String LOG_TAG = BuildConfig.LOG_TAG; private static final int LOG_LEVEL = BuildConfig.LOG_LEVEL; private static final boolean LOG_TO_XPOSED = BuildCon...
__label__POS
0.755794
package com.crossbowffs.nekosms.utils; import android.app.AppOpsManager; import android.content.Context; import java.lang.reflect.Method; public final class AppOpsUtils { public static final int OP_WRITE_SMS = 15; private static final Method sCheckOpMethod; private static final Method sSetModeMethod; ...
__label__POS
0.993301
package com.crossbowffs.nekosms.utils; public final class StringUtils { private StringUtils() { } public static boolean equals(String a, String b, boolean ignoreCase) { if (ignoreCase) { return a.equalsIgnoreCase(b); } else { return a.equals(b); } } pub...
__label__POS
0.993594
package com.bookstore; import com.bookstore.service.BookstoreService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.ApplicationRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.spri...
__label__POS
0.974573
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.crossbowffs.nekosms.utils; import android.net.Uri; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.List; public final class IOUtils { private IOUtils() { } public static String streamToString(InputStream inputStream, String encoding, int...
__label__POS
0.999237
package com.crossbowffs.nekosms.consts; import com.crossbowffs.nekosms.BuildConfig; public final class PreferenceConsts { private static final String NEKOSMS_PACKAGE = BuildConfig.APPLICATION_ID; public static final String FILE_MAIN = NEKOSMS_PACKAGE + "_preferences"; public static final String FILE_INTER...
__label__POS
1.000009
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 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 com.apress.springrecipes.bank; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; public class InMemoryAccountDaoTests { private static final S...
__label__POS
0.635803
package com.crossbowffs.nekosms.data; import android.content.ContentUris; import android.net.Uri; import androidx.annotation.NonNull; import com.crossbowffs.nekosms.provider.DatabaseContract; public class SmsFilterData { private long mId = -1; private SmsFilterAction mAction; private final SmsFilterPatter...
__label__POS
0.670055
package com.apress.springrecipes.bank; import static org.junit.Assert.assertEquals; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; public class AccountServiceTests { private static final String TEST_ACCOUNT_NO = "1234"; private Acc...
__label__POS
0.916443
package com.apress.springrecipes.bank.web; import static org.junit.Assert.assertEquals; import org.mockito.Mockito; import org.springframework.ui.ModelMap; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; import com.apress.springrecipes.bank.AccountService; public class DepositControl...
__label__POS
0.840592
package com.crossbowffs.nekosms.filters; import com.crossbowffs.nekosms.data.SmsFilterField; import com.crossbowffs.nekosms.data.SmsFilterMode; import com.crossbowffs.nekosms.data.SmsFilterPatternData; import com.crossbowffs.nekosms.utils.Xlog; /* package */ abstract class SmsFilterPattern { private final SmsFilt...
__label__POS
0.693634
#include "bin2obj/common.h" #include "structs.h" #include "types.h" DATA_SECTION AS _asstbl_lv_E010[20] = { { .r_no = 30, .char_ix = 55, .data_ix = 0 }, { .r_no = 30, .char_ix = 60, .data_ix = 0 }, { .r_no = 30, .char_ix = 64, .data_ix = 0 }, { .r_no = 30, .char_ix = 80, .data_ix = 0 }, { .r_no = 30, ....
__label__POS
0.620732