text stringlengths 9 427k |
|---|
package com.example.hiroshi.rxtubeapp.data.db.dbservice
import android.content.Context
import com.example.hiroshi.rxtubeapp.data.db.model.ConvertibleRealmModel
import com.example.hiroshi.rxtubeapp.data.db.model.ConvertibleToRealmModel
import com.example.hiroshi.rxtubeapp.data.db.model.RealmModelPrimaryKey
import io.re... |
package com.mainthrowsexception.moodtrackingapp.ui.currentday
import android.annotation.SuppressLint
import android.content.res.ColorStateList
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.PopupMen... |
package bruno.com.jobsitychallenge.ui.model
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
data class EpisodeView(
val id: Long,
val name: String,
val season: Int,
val summary: String?,
val imageUrl: String?
) : Parcelable |
package com.rodionov.igor.mobiletest.view.categories
import com.rodionov.igor.mobiletest.model.Category
interface OnCategorySelectionListener {
fun onCategorySelected(category: Category?)
}
|
package com.example.sougame.ui.adapter
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.sougame.R
import com.example.sougame.data.model.bean.GameListBean
/**
* Created by Android Studio.
* Author: yx
* Date: 2020/6/17 10:56
* D... |
package com.spidev.core.dagger
import com.spidev.core.BuildConfig
import dagger.Module
import dagger.Provides
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
@Module
class CoreOkHttpModule(private val baseUrl: String) {
@Provides
fun provideLoggingInterceptor(): HttpLoggingIntercept... |
@file:Suppress(
"SimpleRedundantLet", // jacoco workaround
)
package org.zalando.logbook.server
import io.ktor.http.ContentType
import io.ktor.http.ContentType.Companion.parse
import io.ktor.http.HttpHeaders.ContentType
import io.ktor.http.charset
import io.ktor.server.request.httpVersion
import io.ktor.server.re... |
package com.bbmtek.spannermigration.database
import com.bbmtek.spannermigration.model.Migrations
/**
* Created by woi on 14/08/17.
*/
interface SpannerDB {
fun createSchemaMigrationsTable(): Unit
fun isTableExists(tableName: String): Boolean
fun migrate(migrations: List<Migrations>)
fun getMigratedV... |
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.vuejs.inspections
import com.intellij.codeInspection.LocalInspectionTool
import com.intellij.codeInspection.LocalInspectionToolSession
import com.intellij.c... |
package season_2016
import java.nio.file.Files
import java.nio.file.Paths
import BaseDay
/**
* Created by melquiadess on 08/12/2016.
*/
class Day08 : BaseDay {
var list: MutableList<String> = mutableListOf()
private val WIDTH = 50
private val HEIGHT = 6
var LCD = Array(WIDTH, { Array(HEIGHT, { it... |
package ca.logaritm.dezel.modules.platform
import android.os.Build
import ca.logaritm.dezel.core.JavaScriptClass
import ca.logaritm.dezel.core.JavaScriptContext
import ca.logaritm.dezel.core.JavaScriptGetterCallback
/**
* @class JavaScriptPlatform
* @super JavaScriptClass
* @since 0.1.0
*/
open class JavaScriptPl... |
package com.celapps.filmica.view.util
import android.graphics.Rect
import androidx.annotation.DimenRes
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import android.view.View
class ItemOffsetDecoration(@Dim... |
package io.rocketguys.dokey.connect.statusbar
import android.support.annotation.IntDef
import android.support.annotation.IntRange
import android.support.annotation.StringRes
import android.support.design.widget.BaseTransientBottomBar
import android.support.design.widget.CoordinatorLayout
import android.view.LayoutInfl... |
package com.zegreatrob.coupling.server
import com.benasher44.uuid.Uuid
import com.zegreatrob.coupling.action.TraceIdSyntax
import com.zegreatrob.coupling.model.tribe.TribeId
import com.zegreatrob.coupling.model.user.AuthenticatedUserSyntax
import com.zegreatrob.coupling.model.user.User
import com.zegreatrob.coupling.m... |
package ru.dmitryvitutnev.crowcounter
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
private val KEY_COUNT = "COUNT"
private val KEY_COUNT_CATS = "COUNT_CATS"
private val KEY_TEXT = ... |
package com.amartin.marvelapplication.common.views
import android.content.Context
import android.graphics.Rect
import android.util.AttributeSet
import androidx.appcompat.widget.AppCompatTextView
class ScrollTextView @JvmOverloads constructor(
context: Context,
attributesSet: AttributeSet? = null,
defStyle... |
package au.com.cabfare.data.exceptions
/**
* @author locnguyen
*/
class ShiftNotFoundException: BaseException {
constructor(message: String = ""): super(ExceptionCodes.SHIFT_NOT_FOUND, message){}
} |
/*
* Copyright 2018 Farbod Salamat-Zadeh
*
* 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 a... |
package com.example.mviarchitecture.data.repository.remote
/**
*
* @author Sara Ebadi
* @since 1/9/21
*/
interface Service {
} |
package com.example.skincare.foursquareAPI.activities
import android.content.Context
import android.content.Intent
import android.location.LocationManager
import android.net.ConnectivityManager
import android.net.NetworkCapabilities
import android.os.Build
import androidx.appcompat.app.AppCompatActivity
import android... |
package com.example.kafka.config
import com.example.domain.Message
import com.example.kafka.serialization.GenericJacksonMapper
import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.databind.MapperFeature
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson... |
/*
* Copyright 2018 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
package com.airwallex.android.view
import android.content.Context
import android.text.Editable
import android.text.InputFilter
import android.text.InputType
import android.text.TextWatcher
import android.util.AttributeSet
import com.airwallex.android.R
import com.google.android.material.textfield.TextInputEditText
/*... |
package com.gotenna.android.repositories
import android.content.Context
import android.location.Location
import android.location.LocationManager
import com.gotenna.android.models.CallbackListener
object MapRepository {
fun getLastKnownLocation(context: Context, locationInfoCallBack: CallbackListener<Location>,
... |
package com.chekh.paysage.feature.main.data.service
import androidx.lifecycle.LiveData
import com.chekh.paysage.common.data.dao.AppDao
import com.chekh.paysage.core.extension.foreachMap
import com.chekh.paysage.feature.main.data.mapper.AppModelMapper
import com.chekh.paysage.feature.main.domain.model.AppModel
import j... |
package com.faisal.submissionbfaafaisal1
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.BaseAdapter
import android.widget.ImageView
import android.widget.TextView
class DataAdapter internal constructor(private val contex... |
package com.administrator.learndemo.kotlin
/**
* class className([var/val] property: Type…)
这种方式和上面一种方式多加了一组括号,代表构造函数,我们把这样的构造函数称之为 primary constructor。这种方式声明一个类的主要做了一下几件事:
会生成一个构造方法,参数就是括号里的那些参数
会根据括号的参数生成对应的属性
会根据 val 和 var 关键字来生成 setter、getter 方法
var 和 val 关键字:var 表示该属性可以被修改;val 表示该属性不能被修改
*/
class Person(val na... |
package util
import java.security.MessageDigest
fun md5(message: String): String {
var res = ""
val md = MessageDigest.getInstance("MD5")
val digest = md.digest(message.toByteArray())
for (byte in digest) res += "%02x".format(byte)
return res
} |
package demo
fun main(args: Array<String>) {
val helloWorld = HelloWorld()
helloWorld.sayHelloTo("Marharyta")
}
class HelloWorld {
fun sayHelloTo(name: String) {
println("Hello, $name!")
print("Hello, ${name.substring(0..2).plus("go")}!")
}
}
|
package com.budgetme.budgetme.repository
import com.budgetme.budgetme.model.ExpenseBudget
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.stereotype.Repository
import java.util.*
@Repository
interface ExpenseBudgetRepository: JpaRepository<ExpenseBudget, UUID> { }
|
package com.parent.todo.tasks.list.presentation
import android.app.Application
import android.arch.lifecycle.AndroidViewModel
import com.parent.todo.R
import com.parent.todo.common.models.ModelMapper
import com.parent.todo.data.Task
import com.parent.todo.tasks.model.TaskView
import io.reactivex.Observable
import io.r... |
/*
* Copyright 2020 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
package com.example.data.people
import com.example.domain.model.Player
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.FlowPreview
import kotlinx.coroutines.flow.MutableStateFlow
import javax.inject.Inject
@OptIn(ExperimentalCoroutinesApi::class, FlowPreview::class)
class PeopleRepositor... |
package com.tobi.mc.parser.optimisations
import com.tobi.mc.assertComputablesEqual
import com.tobi.mc.computable.ExpressionSequence
import com.tobi.mc.computable.control.ContinueStatement
import com.tobi.mc.computable.control.IfStatement
import com.tobi.mc.computable.control.ReturnStatement
import com.tobi.mc.computab... |
package com.fitpay.android.api.models
/**
* Province model
*/
data class Province(val iso: String,
val name: String,
val names: Map<String, String>) |
package com.banlap.vcomsupportkt.base
import android.os.Bundle
import androidx.annotation.LayoutRes
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
imp... |
package fieldkt.core.context.auth.svc
import fieldkt.core.context.auth.domain.AuthCertificate
import fieldkt.core.context.auth.domain.AuthToken
import fieldkt.core.context.auth.domain.PlaintextSecret
import fieldkt.core.context.auth.infra.AuthTokenEncoder
/**
* Controller to manage auth certificates and auth tokens ... |
package david.animationtransition.anim
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewTreeLifecycleOwner
import david.animationtransition.R
class AnimationTransitionMenuActivity : AppCompatActivity() {
override fun onCr... |
package com.example.presentation.screens.addPeopleScreen.epoxy
import com.airbnb.epoxy.TypedEpoxyController
import com.example.presentation.screens.addPeopleScreen.AddPeopleScreenState
class EpoxyPeopleController(
private val playerListener: PlayerListener
) :TypedEpoxyController<AddPeopleScreenState>() {
ov... |
package baltic.amadeus.task.data.repository
import baltic.amadeus.task.data.local.PostDao
import baltic.amadeus.task.data.remote.ApiRemoteDataSource
import baltic.amadeus.task.utils.performGetOperation
import javax.inject.Inject
class PostRepository @Inject constructor(
private val apiRemoteDataSource: ApiRemoteD... |
package com.ne1c.gitteroid.di.base
interface NetworkService {
fun isConnected(): Boolean
} |
package guru.zoroark.pangoro
/**
* The description for the creation of a type
*/
class PangoroTypeDescription(
/**
* The arguments: that is, everything that was expected and stored using
* the `storeIn`/`storeValueIn` constructs.
*/
val arguments: Map<String, Any>
) {
/**
* Retrieve t... |
package com.jogger.http.basic.exception
/**
* Created by jogger on 2020/2/26
* 描述:
*/
class ServerResultException(code: Int, msg: String) : BaseException(code, msg) {
} |
package com.example.picturecreator
import android.content.Intent
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Environment
import android.provider.MediaStore
import android.util.Log
import android.widget.Button
import android.widget.EditText
import an... |
package com.specknet.pdiotapp.bluetooth
import android.app.Service
import android.content.Context
import android.content.Intent
import android.os.IBinder
import android.util.Log
import com.polidea.rxandroidble2.RxBleClient
import com.polidea.rxandroidble2.RxBleConnection
import com.polidea.rxandroidble2.RxBleDevice
im... |
package com.dekaustubh.bingo.register
import com.dekaustubh.bingo.base.BasePresenter
import com.dekaustubh.bingo.base.BaseView
import com.dekaustubh.bingo.models.Room
import com.dekaustubh.bingo.models.User
interface FetchRoomsContract {
interface View: BaseView<Presenter> {
fun showRooms(rooms: List<Room... |
package com.bichi.mvvmsampleapp.data.repositories
import com.bichi.mvvmsampleapp.data.db.AppDataBase
import com.bichi.mvvmsampleapp.data.db.entities.User
import com.bichi.mvvmsampleapp.data.network.MyApi
import com.bichi.mvvmsampleapp.data.network.RetrofitClient
import com.bichi.mvvmsampleapp.data.network.SafeAp... |
package `in`.indilabz.ssf_exam.model.exam
class ExamNav {
var index: Int? = null
var questionId: Int? = null
} |
package com.anlooper.photosample.view.detail
import android.os.Bundle
import android.widget.ImageView
import com.anlooper.photosample.R
import com.anlooper.photosample.constant.Constant
import com.anlooper.photosample.data.Photo
import com.bumptech.glide.Glide
import tech.thdev.base.view.BaseActivity
class DetailActi... |
package com.hadi.bmicalculator.ui
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.core.content.ContextCompat
import com.hadi.bmicalculator.R
import kotlinx.android.synthetic.main.activity_details.*
class DetailsActivity : AppCompatActivity() {
override fun onCreate(savedI... |
package com.team.dbgo
data class SurrPokeResponse (
var pokemons : ArrayList<SurrData>
) |
package me.shetj.cling.entity
import org.fourthline.cling.model.action.ActionInvocation
import org.fourthline.cling.model.message.UpnpResponse
open class BaseClingResponse<T> : IResponse<T> {
protected var mActionInvocation: ActionInvocation<*>
protected var operation: UpnpResponse? = null
protected var d... |
package com.entregoya.entregouser.ui.autocomplete
import android.app.Activity
import android.app.ProgressDialog
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.support.annotation.Nullable
import android.support.v4.app.Fragment
import android.support.v7.widget.Defaul... |
package com.hysea.singleton.kotlin
class Config2 {
companion object {
val INSTANCE by lazy(LazyThreadSafetyMode.NONE) {
Config2()
}
}
} |
package _self.buildTypes
import jetbrains.buildServer.configs.kotlin.v2019_2.*
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.powerShell
object ReleaseAppCommon : BuildType({
name = "Release Ed-Fi Installer App Common"
enablePersonalBuilds = false
type = BuildTypeSettings.Type.DEPLOYMENT
... |
package com.example.astux7.weatheralert.data
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.*
import com.exa... |
package com.erhodes.arsmagica.model
import android.os.Handler
import android.os.HandlerThread
import android.util.Log
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.erhodes.arsmagica.room.AppDatabase
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
class Cha... |
package com.demkin.core.model
import com.demkin.core.AUTH_GETMOBILESESSION
import com.demkin.core.PARAMETER_PASSWORD
import com.demkin.core.PARAMETER_USERNAME
import com.demkin.core.http.HttpLastFmService
import com.demkin.core.http.answerHasError
import com.demkin.core.http.constructRequest
import com.fasterxml.jacks... |
package com.ex.microblog.post
/**
*@author meshileya seun <mesh@kudi.ai/>
*@date 2019-11-24
*/ |
package com.example.consummerapp.helper
import android.database.Cursor
import com.example.consummerapp.database.DatabaseContract.FavoriteColumns.Companion.AVATAR
import com.example.consummerapp.database.DatabaseContract.FavoriteColumns.Companion.ID
import com.example.consummerapp.database.DatabaseContract.FavoriteColu... |
import silentorb.imp.library.standard.standardLibrary
import silentorb.mythic.aura.generation.imp.auraLibrary
val library = listOf(
standardLibrary(),
auraLibrary()
)
|
package com.example.grocery.fragment
import android.app.FragmentTransaction
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx... |
package polynomial
fun main(args: Array<String>) {
val expr = Expression()
val p = Polynomial(Symbol('x'))
p += Sym.pow(3)
p -= 4 * Sym
expr += p
println(expr)
assert(expr.derivative())
println(expr)
} |
package org.http4k.lens
import org.http4k.core.ContentType
import org.http4k.core.HttpMessage
import org.http4k.core.Uri
import org.http4k.core.Uri.Companion.of
import org.http4k.lens.ParamMeta.StringParam
typealias HeaderLens<T> = Lens<HttpMessage, T>
object Header : BiDiLensSpec<HttpMessage, String>("header", Stri... |
package com.shetj.diyalbume.jobscheduler
import android.os.Bundle
import android.os.Message
import com.shetj.diyalbume.R
import kotlinx.android.synthetic.main.activity_job_scheduler.*
import me.shetj.base.base.BaseActivity
/**
* jobScheduler 测试界面
*/
class JobSchedulerActivity : BaseActivity<JobSchedulerPresenter>()... |
package buttons.app
import android.app.admin.DevicePolicyManager
import android.content.ComponentName
import android.service.quicksettings.TileService
class LockTileService:TileService()
{
override fun onClick()
{
super.onClick()
val devicePolicyManager:DevicePolicyManager=applicationContext.g... |
package com.example.movie.data.local
import android.content.Context
import android.util.Log
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.example.movie.data.model.MovieEntity
@Database(entities = [MovieEntity::class], version = 1)
abstract class AppDatabase : Roo... |
/*
* Copyright (c) 2017 大前良介 (OHMAE Ryosuke)
*
* This software is released under the MIT License.
* http://opensource.org/licenses/MIT
*/
package net.mm2d.dmsexplorer.domain.model
import android.annotation.SuppressLint
import android.content.BroadcastReceiver
import android.content.Context
import android.content... |
package com.example.egor.schedule.Model.Data
import com.example.egor.schedule.Model.Date.Time
data class Subject(val id: Int = -1, val name: String, val type: Int, val teacherName: String, val cabinet: String,
val startTime: Time, val endTime: Time, val oddOrEven: Int) {
companion object {
... |
import androidx.room.EntityDeletionOrUpdateAdapter
import androidx.room.EntityInsertionAdapter
import androidx.room.EntityUpsertionAdapter
import androidx.room.RoomDatabase
import androidx.sqlite.db.SupportSQLiteStatement
import io.reactivex.rxjava3.core.Completable
import io.reactivex.rxjava3.core.Single
import java.l... |
package ar.com.nestor.ejercicioretrofit.cats
import android.annotation.SuppressLint
import android.content.Context
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Array... |
package jp.eno314.spring.restservice
class Greeting(val id: Long, val content: String)
|
import java.text.SimpleDateFormat
import java.util.*
val modVersion: String = System.getenv("CM_VERSION") ?: "9.9.9"
val coreVersion: String = property("core_version") as String
val tunnelsApiVersion: String = property("tunnels_version") as String
var modId = property("mod_id") as String
var minecraft_version: Strin... |
package asiantech.internship.summer.kotlin.exoop
import java.util.ArrayList
object ShapeMain {
@JvmStatic
fun main(args: Array<String>) {
val rectangle = Rectangle(3, 4)
val square = Square(5)
val circle = Circle(3)
val shapes = ArrayList<Shape>()
shapes.add(circle)
... |
package com.nurbk.ps.hashitaqalquds.ui.fragment
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import com.google.firebase.auth.Firebase... |
package com.slaviboy.opengl
import com.google.common.truth.Truth
import com.slaviboy.opengl.main.OpenGLStatic.concat
import com.slaviboy.opengl.main.OpenGLStatic.delete
import org.junit.Test
class OpenGLStaticUnitTest {
@Test
fun MainTest(){
ConcatFloatArrays()
DeleteFloatArray()
}
fu... |
package sn.chei.gadsleaderboard.data.remote
import retrofit2.Call
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST
interface SubmissionEndPoint {
@POST(SubmissionDetails.SUBMISSION_ID)
@FormUrlEncoded
fun submitProject(
@Field(SubmissionDetails.NAME_ENTR... |
package com.pensource.android.symptomtracker.data.source.local
import androidx.room.Database
import androidx.room.RoomDatabase
import com.pensource.android.symptomtracker.data.Symptom
@Database(entities = [Symptom::class], version = 1, exportSchema = false)
abstract class SymptomDatabase: RoomDatabase() {
abstrac... |
package id.migratingdagger.hilt.ui.list
import id.migratingdagger.common.mvp.View
import id.migratingdagger.hilt.model.NewsListModel
interface NewsListView : View<NewsListModel> {
/**
* Displays the list of news in the View
*/
fun displayNews(newsList: NewsListModel)
} |
package com.jhonjimenez.mercadolibretest.datasource.remote.model
import com.google.gson.annotations.SerializedName
data class Prices (
@SerializedName("id") val id : String,
@SerializedName("prices") val prices : List<Prices>,
@SerializedName("presentation") val presentation : Presentation,
@SerializedName("pay... |
package com.e.a5eceviri.ui.backgrounds.backgrounddetail
import android.util.Log
import androidx.lifecycle.MutableLiveData
import com.e.a5eceviri.model.api.response.backgroundresponse.BackgroundList
import com.e.a5eceviri.model.api.response.clasresponse.ClasList
import com.e.a5eceviri.ui.base.BaseViewModel
import com.e... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.