content
stringlengths
263
5.24M
pred_label
stringclasses
1 value
pred_score_pos
float64
0.6
1
"use strict"; function handleTouchStart(evt) { evt.preventDefault(); var touches = evt.changedTouches; for (var i = 0; i < touches.length; i++) { Touch._touches.push(touches[i]); Touch._touchPresses.push(true); } } function handleTouchMove(evt) { evt.preventDefault(); var touch...
__label__POS
0.626629
package com.example.chapter08; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; import androidx.viewpager.widget.ViewPager; import com.example.chapter08.adapter.LaunchSimpleAdapter; public class LaunchSimpleActivity extends AppCompatActivity { // 声明引导页面的图片数组 private int[] lanuchIma...
__label__POS
0.99899
package com.example.custom import com.example.custom.adapter.ImagePagerAdapater import com.example.custom.bean.GoodsInfo import android.os.Bundle import android.support.v4.view.ViewPager import android.support.v7.app.AppCompatActivity import kotlinx.android.synthetic.main.activity_custom_property.* import org.jetbra...
__label__POS
0.913623
package com.example.chapter08.bean; import com.example.chapter08.R; import java.util.ArrayList; import java.util.List; public class Planet { public int image; // 行星图标 public String name; // 行星名称 public String desc; // 行星描述 public Planet(int image, String name, String desc) { this.image = ima...
__label__POS
0.999241
"use strict"; GameObjectList.prototype = Object.create(GameObject.prototype); function GameObjectList(layer, id) { GameObject.call(this, layer, id); this._gameObjects = []; } Object.defineProperty(GameObjectList.prototype, "length", { get: function () { return this._gameObjects.length; } });...
__label__POS
0.918857
package com.example.chapter08.bean; import com.example.chapter08.R; import java.util.ArrayList; import java.util.List; public class GoodsInfo { public long rowid; // 行号 public int xuhao; // 序号 public String name; // 名称 public String desc; // 描述 public float price; // 价格 public String pic_path...
__label__POS
0.862965
"use strict"; function Vector2(x, y) { this.x = typeof x !== 'undefined' ? x : 0; this.y = typeof y !== 'undefined' ? y : 0; } Object.defineProperty(Vector2, "zero", { get: function () { return new Vector2(); } }); Object.defineProperty(Vector2.prototype, "isZero", { ...
__label__POS
0.901745
package com.example.chapter08.util; import android.content.Context; import android.content.SharedPreferences; // 这是共享参数的工具类,统一对共享参数的读写操作 public class SharedUtil { private static SharedUtil mUtil; // 声明一个共享参数工具类的实例 private static SharedPreferences mShared; // 声明一个共享参数的实例 // 通过单例模式获取共享参数工具类的唯一实例 public...
__label__POS
0.944134
package com.example.custom import android.os.Bundle import android.support.v7.app.AppCompatActivity import android.view.View import kotlinx.android.synthetic.main.activity_text_progress.* import org.jetbrains.anko.selector /** * Created by ouyangshen on 2017/9/17. */ class TextProgressActivity : AppCompatActivity(...
__label__POS
0.81892
package com.example.chapter08.util; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import java.io.FileInputStream; import java.io.FileOutputStream; public class FileUtil { // 把字符串保存到指定路径的文本文件 public static void saveText(String path, String txt) { // 根据指定的文件路径构建文件输出流对象 ...
__label__POS
0.99
import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import { Subject } from 'rxjs/Subject'; import { AccountService } from './account.service'; @Injectable() export class Principal { private userIdentity: any; private authenticated = false; private authenticationState ...
__label__POS
0.639483
package com.example.chapter08.util; import android.annotation.SuppressLint; import android.text.TextUtils; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; @SuppressLint("SimpleDateFormat") public class DateUtil { // 获取当前的日期时间 public static String getNowDateTime(String for...
__label__POS
0.991809
package com.example.custom import com.example.custom.service.MusicService import android.os.Bundle import android.support.v7.app.AppCompatActivity import kotlinx.android.synthetic.main.activity_notify_service.* import org.jetbrains.anko.intentFor import org.jetbrains.anko.toast /** * Created by ouyangshen on 2017/...
__label__POS
0.677839
package com.example.custom.bean import com.example.custom.R data class GoodsInfo(var rowid: Long=0, var xuhao: Int=0, var name: String="", var desc: String="", var price: Int=0, var thumb_path: String="", var pic_path: String="", var thumb: Int=0, var pic: Int=0) { companion object { ...
__label__POS
0.884969
package com.example.chapter08.database; import android.annotation.SuppressLint; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; import com.exam...
__label__POS
0.695977
package com.example.custom.bean import com.example.custom.R data class Planet(var image: Int, var name: String, var desc: String) { companion object { private val iconArray = intArrayOf(R.drawable.shuixing, R.drawable.jinxing, R.drawable.diqiu, R.drawable.huoxing, R.drawable.muxing, R.drawable.tuxing) ...
__label__POS
0.994847
package com.example.chapter08.database; import android.annotation.SuppressLint; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; import com.exam...
__label__POS
0.722565
// // MVVM_MyToDosTests.swift // MVVM_MyToDosTests // // Created by Raúl Ferrer on 12/6/22. // import XCTest class MVVM_MyToDosTests: XCTestCase { override func setUpWithError() throws { // Put setup code here. This method is called before the invocation of each test method in the class. } ov...
__label__POS
0.782426
package com.example.custom.util import android.app.NotificationManager import android.app.NotificationChannel import android.os.Build import android.annotation.TargetApi import android.content.Context import android.graphics.Color /** * Created by ouyangshen on 2018/6/20. */ object NotifyUtil { @TargetApi(Bui...
__label__POS
0.649348
import { Injectable } from '@angular/core'; import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot } from '@angular/router'; import { Principal } from '../'; import { LoginModalService } from '../login/login-modal.service'; import { StateStorageService } from './state-storage.service'; @Injectable(...
__label__POS
0.610433
package com.example.custom.util import android.annotation.SuppressLint import java.text.SimpleDateFormat import java.util.Date /** * Created by ouyangshen on 2017/9/24. */ @SuppressLint("SimpleDateFormat") object DateUtil { val nowDateTime: String get() { val sdf = SimpleDateFormat("yyyy-M...
__label__POS
0.99896
// // AddTaskViewTests.swift // MVVM_MyToDosTests // // Created by Raúl Ferrer on 17/7/22. // import XCTest @testable import MVVM_MyToDos class AddTaskViewTests: XCTestCase { var sut: AddTaskView! var taskList = TasksListModel(id: "12345-67890", title: "Test List", ...
__label__POS
0.667356
// // TaskListViewControllerTests.swift // MVVM_MyToDosTests // // Created by Raúl Ferrer on 16/7/22. // import XCTest @testable import MVVM_MyToDos class TaskListViewControllerTests: XCTestCase { var sut: TaskListViewController! var navigationController: MockNavigationController! let list = TasksList...
__label__POS
0.871942
"use strict"; function PainterGameWorld() { this.cannon = new Cannon(); this.ball = new Ball(); this.can1 = new PaintCan(450, Color.red); this.can2 = new PaintCan(575, Color.green); this.can3 = new PaintCan(700, Color.blue); this.score = 0; this.lives = 5; } PainterGameWorld.prototype.ha...
__label__POS
0.769858
// // AddListViewTests.swift // MVVM_MyToDosTests // // Created by Raúl Ferrer on 16/7/22. // import XCTest @testable import MVVM_MyToDos class AddListViewTests: XCTestCase { var sut: AddListView! let tasksListService = TasksListService(coreDataManager: InMemoryCoreDataManager.shared) overr...
__label__POS
0.641452
// // HomeViewControllerTests.swift // MVVM_MyToDosTests // // Created by Raúl Ferrer on 16/7/22. // import XCTest @testable import MVVM_MyToDos class HomeViewControllerTest: XCTestCase { var sut: HomeViewController! var navigationController: MockNavigationController! override func setUpWith...
__label__POS
0.810352
<nav class="navbar navbar-inverse navbar-toggleable-md jh-navbar"> <div class="jh-logo-container float-left"> <a class="jh-navbar-toggler hidden-lg-up float-right" href="javascript:void(0);" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-la...
__label__POS
0.730071
package cm.aptoide.pt.downloadmanager; /** * Created by filipegoncalves on 7/31/18. */ public class DownloadAppFile { private String mainDownloadPath; private String alternativeDownloadPath; private String downloadMd5; private int versionCode; private String packageName; private String fileName; priv...
__label__POS
0.958048
package cm.aptoide.pt.downloadmanager; import cm.aptoide.pt.logger.Logger; import java.util.List; /** * Created by filipegoncalves on 8/28/18. */ public class AppDownloadStatus { private static final int PROGRESS_MAX_VALUE = 100; private String md5; private List<FileDownloadCallback> fileDownloadCallbackLis...
__label__POS
0.908733
package cm.aptoide.pt.downloadmanager; import cm.aptoide.pt.logger.Logger; import rx.Completable; import rx.Observable; import rx.Subscription; import rx.subjects.PublishSubject; public class RetryFileDownloadManager implements RetryFileDownloader { private static final String TAG = "RetryFileDownloadManage"; pr...
__label__POS
0.709262
package cm.aptoide.pt.downloadmanager; import cm.aptoide.pt.database.room.RoomDownload; import java.util.List; import rx.Completable; import rx.Observable; import rx.Single; /** * Created by filipegoncalves on 8/21/18. */ public class DownloadsRepository { private DownloadPersistence downloadPersistence; pub...
__label__POS
0.873845
package cm.aptoide.pt.downloadmanager; import java.util.List; /** * Created by filipegoncalves on 7/31/18. */ public class DownloadApp { private final String packageName; private final int versionCode; private List<DownloadAppFile> downloadFiles; private String md5; private long size; private String a...
__label__POS
0.989768
"use strict"; function Vector2(x, y) { this.x = typeof x !== 'undefined' ? x : 0; this.y = typeof y !== 'undefined' ? y : 0; } Object.defineProperty(Vector2, "zero", { get: function () { return new Vector2(); } }); Object.defineProperty(Vector2.prototype, "isZero", { ...
__label__POS
0.896437
/** * Copyright (c) 2005-2013 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Eclipse Public License (EPL). * Please see the license.txt included with this distribution for details. * Any modifications to this file must keep this entire header intact. */ /* * Created on Nov 18, 2004 ...
__label__POS
0.768475
package com.example.chapter08.adapter; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentManager; import androidx.fragment.app.FragmentPagerAdapter; import com.example.chapter08.bean.GoodsInfo; import com.example.chapter08.fragment.DynamicFragment; import java.util.ArrayList; import java.ut...
__label__POS
0.937469
package cm.aptoide.analytics.implementation.navigation; import org.junit.Test; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; public class ScreenTagHistoryTest { @Test public void checkIfNullFragmentReturnEmptyStringFragment() { //Given a ScreenTagHistory with null frag...
__label__POS
0.990219
"use strict"; function Level(levelIndex, id) { powerupjs.GameObjectList.call(this, id); this._levelIndex = levelIndex; this._waterdrops = new powerupjs.GameObjectList(ID.layer_objects); this._enemies = new powerupjs.GameObjectList(ID.layer_objects); this._quitButton = new powerupjs.Button(sprites....
__label__POS
0.871347
const addItem = (state, event) => { const text = event.payload if (!text) { return state } return [...state, { text, completed: false }] } const updateItem = (state, event) => { const { text, index } = event.payload if (!text) { return state } if (index < 0) { return state } ...
__label__POS
0.844332
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 11:32:21 11/16/2018 // Design Name: // Module Name: mux // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Rev...
__label__POS
0.915758
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 20:18:15 11/15/2018 // Design Name: // Module Name: dm // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Revi...
__label__POS
0.669264
"use strict"; function TitleMenuState(layer) { powerupjs.GameObjectList.call(this, layer); // the title screen var titleScreen = new powerupjs.SpriteGameObject(sprites.background_title, ID.layer_background); this.add(titleScreen); // add a play button this.playButton = new powerupjs.Button(sp...
__label__POS
0.905293
"use strict"; function LevelMenuState(layer) { powerupjs.GameObjectList.call(this, layer); this.background = new powerupjs.SpriteGameObject(sprites.levelselect, ID.layer_background); this.add(this.background); this.back = new powerupjs.Button(sprites.button_back, ID.layer_overlays); this.back.pos...
__label__POS
0.713346
package com.apress.jhblog.domain; import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import javax.persistence.Column; import javax.validation.constraints.NotNull; import javax.v...
__label__POS
0.662142
package org.python.pydev.editor.codecompletion.revisited; import java.util.ArrayList; import java.util.Map; import java.util.Map.Entry; import org.python.pydev.core.IInterpreterInfo; import org.python.pydev.core.IInterpreterManager; import org.python.pydev.plugin.PydevPlugin; import org.python.pydev.shared_core.struc...
__label__POS
0.607492
package cm.aptoide.analytics.implementation.loggers; import cm.aptoide.analytics.AnalyticsManager; import cm.aptoide.analytics.EventLogger; import cm.aptoide.analytics.SessionLogger; import cm.aptoide.analytics.implementation.AptoideBiAnalytics; import java.util.Map; /** * Created by trinkes on 10/01/2018. */ publ...
__label__POS
0.946997
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 21:11:13 11/15/2018 // Design Name: // Module Name: grf // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Rev...
__label__POS
0.745498
package cm.aptoide.analytics.implementation.loggers; import android.os.Bundle; import cm.aptoide.analytics.AnalyticsLogger; import cm.aptoide.analytics.AnalyticsManager; import cm.aptoide.analytics.EventLogger; import com.facebook.appevents.AppEventsLogger; import java.util.Map; /** * Created by trinkes on 11/01/201...
__label__POS
0.695658
package cm.aptoide.analytics.implementation.loggers; import android.content.Context; import cm.aptoide.analytics.AnalyticsLogger; import cm.aptoide.analytics.AnalyticsManager; import cm.aptoide.analytics.EventLogger; import cm.aptoide.analytics.SessionLogger; import com.flurry.android.FlurryAgent; import java.util.Has...
__label__POS
0.68137
package com.example.simple import android.support.v7.app.AppCompatActivity import android.os.Bundle import android.text.Editable import android.text.InputType import android.text.TextWatcher import android.util.Log import android.view.View import android.widget.EditText import android.widget.TextView import kotlinx.a...
__label__POS
0.78931
export default state => { const addItem = text => { if (!text) { return } state.todos = [...state.todos, { text, completed: false }] } const updateItem = (index, text) => { if (!text) { return } if (index < 0) { return } if (!state.todos[index]...
__label__POS
0.622984
package com.apress.jhblog.security; import org.springframework.security.core.Authentication; import org.springframework.security.core.context.SecurityContext; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.core.userdetails.UserDetails; /** * Utility class ...
__label__POS
0.961802
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 11:32:21 11/16/2018 // Design Name: // Module Name: mux // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Rev...
__label__POS
0.900894
package cm.aptoide.analytics.implementation.navigation; import cm.aptoide.analytics.AnalyticsLogger; import cm.aptoide.analytics.implementation.PageViewsAnalytics; import java.util.Collections; import java.util.List; public class NavigationTracker { private static final String TAG = NavigationTracker.class.getSimp...
__label__POS
0.975348
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 20:18:15 11/15/2018 // Design Name: // Module Name: dm // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Revi...
__label__POS
0.669264
package cm.aptoide.analytics.implementation.navigation; /** * Created by pedroribeiro on 29/09/17. */ public class ScreenTagHistory { private final static String NO_HISTORY = "NO_HISTORY"; private String fragment; private String tag; private String store; public ScreenTagHistory() { this(NO_HISTORY...
__label__POS
0.984619
package com.example.simple import android.app.Activity import android.support.v7.app.AppCompatActivity import android.content.Intent import android.os.Bundle import com.example.simple.bean.MessageInfo import com.example.simple.util.DateUtil import kotlinx.android.synthetic.main.activity_act_response.* /** * Create...
__label__POS
0.833964
const addItem = (state, action) => { const text = action.payload if (!text) { return state } return { ...state, todos: [...state.todos, { text, completed: false }] } } const updateItem = (state, action) => { const { text, index } = action.payload if (!text) { return state...
__label__POS
0.731636
package cm.aptoide.analytics.implementation.data; import cm.aptoide.analytics.AnalyticsManager; import java.util.Map; /** * Created by trinkes on 10/01/2018. */ public class Event { private final String eventName; private final Map<String, Object> data; private final AnalyticsManager.Action action; privat...
__label__POS
0.984543
package com.example.simple import android.content.Intent import android.os.Bundle import android.support.v7.app.AppCompatActivity import com.example.simple.bean.MessageInfo import com.example.simple.util.DateUtil import kotlinx.android.synthetic.main.activity_act_request.* import org.jetbrains.anko.startActivityForR...
__label__POS
0.875914
package com.example.simple import android.os.Bundle import android.support.v7.app.AppCompatActivity import com.example.simple.util.DateUtil import kotlinx.android.synthetic.main.activity_act_first.* import org.jetbrains.anko.* /** * Created by ouyangshen on 2017/8/27. */ class ActFirstActivity : AppCompatActivity...
__label__POS
0.72513
package com.example.simple.util import android.annotation.SuppressLint import java.text.SimpleDateFormat import java.util.Date /** * Created by ouyangshen on 2017/8/27. */ @SuppressLint("SimpleDateFormat") object DateUtil { val nowDateTime: String get() { val sdf = SimpleDateFormat("yyyy-MM...
__label__POS
0.998907
package com.apress.jhblog.config.audit; import com.apress.jhblog.domain.PersistentAuditEvent; import org.springframework.boot.actuate.audit.AuditEvent; import org.springframework.security.web.authentication.WebAuthenticationDetails; import org.springframework.stereotype.Component; import java.util.*; @Component pub...
__label__POS
0.977463
package com.example.simple.util import android.app.Activity import android.content.Context import android.view.View import android.view.inputmethod.InputMethodManager import android.widget.EditText /** * Created by ouyangshen on 2017/8/27. */ object ViewUtil { fun getMaxLength(et: EditText): Int { var ...
__label__POS
0.991216
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 21:11:13 11/15/2018 // Design Name: // Module Name: grf // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Rev...
__label__POS
0.745498
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 16:57:34 11/24/2018 // Design Name: // Module Name: forward_mux // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: /...
__label__POS
0.995281
package com.example.chapter11; import android.content.Intent; import android.os.Bundle; import android.text.TextUtils; import android.view.View; import android.widget.EditText; import android.widget.Toast; import androidx.appcompat.app.AppCompatActivity; import com.example.chapter11.service.RemindIntentService; impo...
__label__POS
0.912941
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 16:57:57 11/23/2018 // Design Name: // Module Name: dm // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Revi...
__label__POS
0.742966
package com.example.hello; import android.os.Bundle; import android.os.PersistableBundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; import android.widget.TextView; import android.widget.Toast; /** * Created by ...
__label__POS
0.91736
package com.apress.jhblog.web.rest; import com.apress.jhblog.config.DefaultProfileUtil; import io.github.jhipster.config.JHipsterProperties; import org.springframework.core.env.Environment; import org.springframework.web.bind.annotation.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; ...
__label__POS
0.917271
package com.example.chapter11; import android.content.Intent; import android.os.Bundle; import android.view.View; import androidx.appcompat.app.AppCompatActivity; public class MainActivity extends AppCompatActivity implements View.OnClickListener { @Override protected void onCreate(Bundle savedInstanceState...
__label__POS
0.866049
package com.example.chapter11; import android.annotation.SuppressLint; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.os.Looper; import android.view.View; import android.widget.TextView; import androidx.appcompat.app.AppCompatActivity; import com.example.chapter11....
__label__POS
0.955691
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 17:30:22 11/23/2018 // Design Name: // Module Name: WB // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Revi...
__label__POS
0.918321
// // AddListInteractorTests.swift // VIP_MyToDos // @testable import VIP_MyToDos import XCTest final class AddListInteractorTest: XCTestCase { private var sut: AddListInteractor! private var presenter: AddListPresenterMock! private var mockTaskListService: MockTaskListService! override fu...
__label__POS
0.612342
// // MVVM_MyToDosTests.swift // MVVM_MyToDosTests // // Created by Raúl Ferrer on 12/6/22. // import XCTest class MVVM_MyToDosTests: XCTestCase { override func setUpWithError() throws { // Put setup code here. This method is called before the invocation of each test method in the class. } ov...
__label__POS
0.782426
### Examples It's our goal to create a wide variety of example of how Tether can be used. Here's what we have so far, please send a PR with any examples you might create. #### Beginner - [simple](../../examples/simple): A simple example to get you started - [out-of-bounds](../../examples/out-of-bounds): How to hide...
__label__POS
0.941365
package com.example.chapter11; import android.annotation.SuppressLint; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.TextView; import androidx.appcompat.app.AppCompatActivity; import com.example.chapter11.service.NormalService; import com.example.chapter11.u...
__label__POS
0.937286
// // AddListPresenterTest.swift // VIP_MyToDos // @testable import VIP_MyToDos import XCTest final class AddListPresenterTest: XCTestCase { private var sut: AddListPresenter! private var viewController: MockAddListViewController! private var router: MockAddListRouter! override func setUpW...
__label__POS
0.610316
// // TaskServiceTest.swift // VIP_MyToDosTests // // Created by Raúl Ferrer on 14/9/22. // import XCTest import CoreData @testable import VIP_MyToDos class TaskServiceTest: XCTestCase { var sut: TaskServiceProtocol! var taskListService: TasksListServiceProtocol! var list: TasksListModel! var...
__label__POS
0.614154
// // TasksListServiceTest.swift // VIP_MyToDosTests // // Created by Raúl Ferrer on 14/9/22. // import XCTest import CoreData @testable import VIP_MyToDos class TasksListServiceTest: XCTestCase { var sut: TasksListServiceProtocol! var list: TasksListModel! override func setUpWithError() thr...
__label__POS
0.91355
package com.example.chapter11; import android.os.Bundle; import android.view.View; import android.widget.TextView; import androidx.appcompat.app.AppCompatActivity; import com.example.chapter11.util.DateUtil; import com.example.chapter11.util.NotifyUtil; import java.util.Random; public class GoodsLogisticsActivity ...
__label__POS
0.62091
package com.apress.jhblog.web.rest.vm; import com.apress.jhblog.service.dto.UserDTO; import javax.validation.constraints.Size; import java.time.Instant; import java.util.Set; /** * View Model extending the UserDTO, which is meant to be used in the user management UI. */ public class ManagedUserVM extends UserDTO {...
__label__POS
0.96663
// // AddTaskScenePresenterTests.swift // VIP_MyToDos // import XCTest @testable import VIP_MyToDos final class AddTaskPresenterTests: XCTestCase { private var sut: AddTaskPresenter! private var viewController: MockAddTaskViewController! private var router: MockAddTaskRouter! override func...
__label__POS
0.611498
package com.example.chapter11; import android.content.Intent; import android.os.Bundle; import android.text.TextUtils; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; import androidx.appcompat.app.AppCompatActivity; import com.example.chapter11.ser...
__label__POS
0.858295
package com.apress.jhblog.web.rest.util; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.http.HttpHeaders; /** * Utility class for HTTP headers creation. */ public final class HeaderUtil { private static final Logger log = LoggerFactory.getLogger(HeaderUtil.class); priva...
__label__POS
0.963118
package com.apress.jhblog.web.rest.util; import org.springframework.data.domain.Page; import org.springframework.http.HttpHeaders; import org.springframework.web.util.UriComponentsBuilder; /** * Utility class for handling pagination. * * <p> * Pagination uses the same principles as the <a href="https://developer....
__label__POS
0.960356
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 17:21:31 11/23/2018 // Design Name: // Module Name: EX // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Revi...
__label__POS
0.949697
// // AddTaskInteractorTest.swift // VIP_MyToDos // import XCTest @testable import VIP_MyToDos final class AddTaskInteractorTest: XCTestCase { private var sut: AddTaskInteractor! private var presenter: MockAddTaskPresenter! var mockTaskService: MockTaskService! var taskList = TasksListMode...
__label__POS
0.685161
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 17:27:06 11/23/2018 // Design Name: // Module Name: MEM // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Rev...
__label__POS
0.921042
package com.apress.jhblog.web.rest.errors; import java.util.HashMap; import java.util.Map; /** * Custom, parameterized exception, which can be translated on the client side. * For example: * * <pre> * throw new CustomParameterizedException(&quot;myCustomError&quot;, &quot;hello&quot;, &quot;world&quot;); * </pr...
__label__POS
0.861576
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 17:02:24 11/23/2018 // Design Name: // Module Name: grf // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Rev...
__label__POS
0.79872
export default state => { const addItem = text => { if (!text) { return } state.todos = [...state.todos, { text, completed: false }] } const updateItem = (index, text) => { if (!text) { return } if (index < 0) { return } if (!state.todos[index]...
__label__POS
0.622984
/* * Copyright (c) 2016. * Modified on 29/08/2016. */ package cm.aptoide.pt.preferences.managed; import android.content.SharedPreferences; /** * Created by neuro on 21-04-2016. */ public class ManagerPreferences { public static boolean getHWSpecsFilter(SharedPreferences sharedPreferences) { return shared...
__label__POS
0.937351
package com.apress.jhblog.web.rest.errors; import java.io.Serializable; import java.util.ArrayList; import java.util.List; /** * View Model for transferring error message with a list of field errors. */ public class ErrorVM implements Serializable { private static final long serialVersionUID = 1L; private...
__label__POS
0.834441
package com.example.chapter11.util; import android.annotation.SuppressLint; import android.text.TextUtils; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; @SuppressLint("SimpleDateFormat") public class DateUtil { // 获取当前的日期时间 public static String getNowDateTime(String for...
__label__POS
0.991791
/* * Copyright (c) 2016. * Modified on 24/08/2016. */ package cm.aptoide.pt.preferences.managed; /** * Created by neuro on 21-04-2016. */ public class ManagedKeys { public static final String HWSPECS_FILTER = "hwspecsChkBox"; public static final String ANIMATIONS_ENABLED = "animationsEnabled"; public stat...
__label__POS
1.000008
const cloneDeep = x => { return JSON.parse(JSON.stringify(x)) } const INITIAL_STATE = { todos: [], currentFilter: 'All' } const addItem = (state, event) => { const text = event.payload if (!text) { return state } return { ...state, todos: [...state.todos, { text, completed: fals...
__label__POS
0.611505
package com.example.chapter11.service; import android.app.Service; import android.content.Intent; import android.os.Binder; import android.os.IBinder; import android.util.Log; import com.example.chapter11.BindImmediateActivity; public class BindImmediateService extends Service { private static final String TAG =...
__label__POS
0.93368
package com.example.chapter11.service; import android.app.IntentService; import android.content.Intent; import android.util.Log; public class AsyncService extends IntentService { private static final String TAG = "AsyncService"; public AsyncService() { super("com.example.chapter11.service.AsyncServic...
__label__POS
0.98526
"use strict"; function PainterGameWorld() { this.cannon = new Cannon(); this.ball = new Ball(); this.can1 = new PaintCan(450, Color.red); this.can2 = new PaintCan(575, Color.green); this.can3 = new PaintCan(700, Color.blue); this.lives = 5; } PainterGameWorld.prototype.handleInput = function...
__label__POS
0.811947
package cm.aptoide.pt.preferences.secure; import android.content.SharedPreferences; import cm.aptoide.pt.logger.Logger; /** * Created by neuro on 21-04-2016. */ public class SecurePreferences { public static boolean shouldRunApkFy(SharedPreferences securePreferences) { return securePreferences.getBoolean(Sec...
__label__POS
0.997639