file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
source/sdk/src/test/java/com/stytch/sdk/b2b/network/StytchB2BApiTest.kt | unknown_repo | kotlin | package com.stytch.sdk.b2b.network
import android.app.Application
import android.content.Context
import com.stytch.sdk.b2b.StytchB2BClient
import com.stytch.sdk.b2b.network.models.AllowedAuthMethods
import com.stytch.sdk.b2b.network.models.AuthMethods
import com.stytch.sdk.b2b.network.models.B2BRequests
import com.sty... |
presentation/src/main/java/com/doool/pokedex/presentation/ui/home/SearchViewModel.kt | unknown_repo | kotlin | package com.doool.pokedex.presentation.ui.home
import androidx.lifecycle.viewModelScope
import com.doool.pokedex.core.base.BaseViewModel
import com.doool.pokedex.domain.LoadState
import com.doool.pokedex.domain.model.Item
import com.doool.pokedex.domain.model.PokemonDetail
import com.doool.pokedex.domain.model.Pokemon... |
app/src/main/kotlin/taiwan/no1/app/ssfm/features/search/SearchIndexFragment.kt | unknown_repo | kotlin | package taiwan.no1.app.ssfm.features.search
import android.os.Bundle
import android.support.v7.widget.LinearLayoutManager
import com.devrapid.kotlinknifer.recyclerview.WrapContentLinearLayoutManager
import com.devrapid.kotlinknifer.recyclerview.itemdecorator.HorizontalItemDecorator
import com.devrapid.kotlinknifer.sca... |
app/src/main/java/com/github/vipulasri/timelineview/sample/BaseActivity.kt | unknown_repo | kotlin | package com.github.vipulasri.timelineview.sample
import android.annotation.SuppressLint
import android.graphics.drawable.Drawable
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.Toolbar
import com.github.vipulasri.timelineview.sample.example.whenNotNull
@S... |
app/src/main/java/com/mikepenz/materialdrawer/app/CompactHeaderDrawerActivity.kt | unknown_repo | kotlin | package com.mikepenz.materialdrawer.app
import android.content.Context
import android.content.res.Configuration
import android.graphics.Color
import android.os.Build
import android.os.Bundle
import android.util.TypedValue
import android.view.Menu
import android.view.MenuItem
import androidx.annotation.AttrRes
import a... |
app/src/main/java/com/aljon/purrito/di/CatModule.kt | unknown_repo | kotlin | package com.aljon.purrito.di
import androidx.lifecycle.ViewModel
import com.aljon.purrito.ui.feed.cat.CatFeedViewModel
import dagger.Binds
import dagger.Module
import dagger.multibindings.IntoMap
@Module
abstract class CatModule {
@Binds
@IntoMap
@ViewModelKey(CatFeedViewModel::class)
abstract fun bi... |
app/src/main/java/space/taran/arknavigator/utils/ImageUtils.kt | unknown_repo | kotlin | package space.taran.arknavigator.utils
import android.graphics.drawable.Drawable
import android.util.Log
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bumptech.glide.Priority
import com.bumptech.glide.load.DataSource
import com.bumptech.glide.load.engine.GlideException
import com.bumptech.... |
compose-ide-plugin/compiler-hosted-src/androidx/compose/compiler/plugins/kotlin/analysis/ComposeWritableSlices.kt | unknown_repo | kotlin | package androidx.compose.compiler.plugins.kotlin.analysis
import androidx.compose.compiler.plugins.kotlin.lower.KeyInfo
import org.jetbrains.kotlin.descriptors.FunctionDescriptor
import org.jetbrains.kotlin.ir.declarations.IrAttributeContainer
import org.jetbrains.kotlin.ir.expressions.IrExpression
import org.jetbrain... |
app/src/main/java/com/dluvian/voyage/ui/components/row/mainEvent/MainEventRow.kt | unknown_repo | kotlin | package com.dluvian.voyage.ui.components.row.mainEvent
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.core.tween
import androidx.compose.animation.slideOutVertically
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.com... |
app/src/main/java/io/bibuti/opennews/core/BaseViewModel.kt | unknown_repo | kotlin | package io.bibuti.opennews.core
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModel
/**
* This class supports the ViewState concepts.
* Extend VM from this class, if you want to use the view state functionality.
*... |
PlacesWishList/app/src/main/java/com/github/matthews8/placeswishlist/placefragment/PlaceListAdapter.kt | unknown_repo | kotlin | package com.github.matthews8.placeswishlist.placefragment
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.github.matthews8.placeswishlist.database.Pl... |
app/src/main/java/com/absut/todo/ui/task/TaskFragment.kt | unknown_repo | kotlin | package com.absut.todo.ui.task
import android.content.DialogInterface
import android.os.Bundle
import android.util.Log
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
import android.view.View
import androidx.appcompat.widget.SearchView
import androidx.core.view.MenuHost
import an... |
app/src/main/java/com/app/whakaara/ui/loading/Loading.kt | unknown_repo | kotlin | package com.app.whakaara.ui.loading
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.width
import androidx.compose.mater... |
cca-app/src/main/java/ru/sodajl/chordconsonanceanalyzer/MainActivity.kt | unknown_repo | kotlin | package ru.sodajl.chordconsonanceanalyzer
import android.app.Activity
import android.os.Bundle
import android.util.Log
import android.view.View
import android.view.Window
import android.view.WindowManager
import ru.sodajl.chordconsonanceanalyzer.androidaudiodevice.JSynAndroidAudioDevice
import ru.sodajl.chordconsonanc... |
app/src/main/java/com/simplepeople/watcha/ui/main/favorite/FavoriteScreen.kt | unknown_repo | kotlin | package com.simplepeople.watcha.ui.main.favorite
import androidx.compose.animation.Crossfade
import androidx.compose.animation.core.tween
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.... |
app/src/main/java/com/steven/movieapp/widget/refreshLoad/WrapRecyclerView.kt | unknown_repo | kotlin | package com.steven.movieapp.widget.refreshLoad
import android.content.Context
import android.util.AttributeSet
import android.view.View
import androidx.recyclerview.widget.RecyclerView
/**
* Description:
* Data:2019/2/20
* Actor:Steven
*/
open class WrapRecyclerView : RecyclerView {
private lateinit var mWr... |
Ocean_Android/app/src/main/java/com/example/ocean_android_intro/MainActivity.kt | unknown_repo | kotlin | package com.example.ocean_android_intro
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.widget.EditText
import android.widget.TextView
import android.widget.Toast
class MainActivity : AppCompatA... |
app/src/main/java/org/sirekanyan/outline/ui/AboutDialog.kt | unknown_repo | kotlin | package org.sirekanyan.outline.ui
import android.content.Intent
import android.content.Intent.ACTION_SENDTO
import android.net.Uri
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation... |
compose-mds/src/main/java/ch/sbb/compose_mds/sbbicons/medium/LocationPinBMedium.kt | unknown_repo | kotlin | package ch.sbb.compose_mds.sbbicons.medium
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Mi... |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/BroadcastOff.kt | unknown_repo | kotlin | package com.woowla.compose.icon.collections.tabler.tabler.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
im... |
app/src/main/java/cc/sovellus/vrcaa/ui/screen/login/MfaScreen.kt | unknown_repo | kotlin | package cc.sovellus.vrcaa.ui.screen.login
import android.content.ClipboardManager
import android.content.Context
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.heigh... |
nugu-android-helper/src/main/java/com/skt/nugu/sdk/external/silvertray/NuguOpusPlayer.kt | unknown_repo | kotlin | /**
* Copyright (c) 2019 SK Telecom Co., Ltd. All rights reserved.
*
* 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 requir... |
app/src/main/java/de/dhbw/mensaapp/database/menu/Menu.kt | unknown_repo | kotlin | package de.dhbw.mensaapp.database.menu
import androidx.room.*
import kotlin.random.Random
import kotlin.random.nextLong
@Entity(tableName = "menu")
data class MenuEntity(
val menuId: String,
val name: String,
val subTitle: String,
val priceUnit: String,
val priceStudent: Float,
val priceEmplo... |
app/src/main/kotlin/com/simplemobiletools/notes/activities/MainActivity.kt | unknown_repo | kotlin | package com.simplemobiletools.notes.activities
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.support.v4.view.ViewPager
import android.text.method.ArrowKeyMovementMethod
import android.text.method.LinkMovementMethod
import android.util.Log
import android.util.TypedValue
im... |
app/src/main/java/io/redgreen/benchpress/hellostranger/HelloStrangerActivity.kt | unknown_repo | kotlin | package io.redgreen.benchpress.hellostranger
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import com.spotify.mobius.Next
import io.reactivex.ObservableTransformer
import io.redgreen.benchpress.architecture.BaseActivity
import kotlinx.android.synthetic.main.hello_s... |
protoc-gen-kroto-plus/src/main/kotlin/com/github/marcoferrer/krotoplus/generators/builders/UnaryStubExtsBuilder.kt | unknown_repo | kotlin | /*
* Copyright 2019 Kroto+ Contributors
*
* 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... |
app/src/main/java/com/gmail/fattazzo/meteo/activity/stazioni/meteo/StazioniMeteoViewModel.kt | unknown_repo | kotlin | /*
* Project: meteo
* File: StazioniMeteoViewModel.kt
*
* Created by fattazzo
* Copyright © 2019 <NAME>. All rights reserved.
*
* MIT License
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the ... |
android/app/src/main/java/com/emergetools/hackernews/features/bookmarks/BookmarksScreen.kt | unknown_repo | kotlin | package com.emergetools.hackernews.features.bookmarks
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.... |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/BuildingPavilion.kt | unknown_repo | kotlin | package com.woowla.compose.icon.collections.tabler.tabler.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
im... |
app/src/main/java/com/example/android/todoapp/navigation/intro/IntroNavGraph.kt | unknown_repo | kotlin | package com.example.android.todoapp.navigation.intro
import androidx.compose.material.DrawerState
import androidx.compose.ui.Modifier
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavHostController
import androidx.navigation.compose.composable
import com.example.android.todoapp.module.intro.log... |
app/src/main/java/me/rosuh/easywatermark/ui/dialog/ChangeLogDialogFragment.kt | unknown_repo | kotlin | package me.rosuh.easywatermark.ui.dialog
import android.content.Context
import android.content.DialogInterface
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.core.content.edit
import androidx.fragment.app... |
android/app/src/main/java/com/utn/frba/mobile/regalapp/joinEvent/JoinEventFragment.kt | unknown_repo | kotlin | package com.utn.frba.mobile.regalapp.joinEvent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.CircularProgressIndicat... |
module-base/src/main/java/win/techflowing/android/base/runtime/AppRuntimeInit.kt | unknown_repo | kotlin | package win.techflowing.android.base.runtime
import android.app.Application
object AppRuntimeInit {
@JvmStatic
fun init(application: Application, debug: Boolean) {
AppRuntime.init(application, debug)
}
} |
NewsApp/app/src/main/java/com/mustk/newsapp/util/RetrofitErrorHandler.kt | unknown_repo | kotlin | package com.mustk.newsapp.util
import android.content.Context
import com.mustk.newsapp.R
import com.mustk.newsapp.shared.Constant.STATUS_CODE_400
import com.mustk.newsapp.shared.Constant.STATUS_CODE_401
import com.mustk.newsapp.shared.Constant.STATUS_CODE_403
import com.mustk.newsapp.shared.Constant.STATUS_CODE_404
im... |
pom-application/app/src/main/java/net/dzikoysk/presenceofmind/model/task/reminder/EventReminderReceiver.kt | unknown_repo | kotlin | package net.dzikoysk.presenceofmind.model.task.reminder
import android.app.AlarmManager
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.NotificationManager.IMPORTANCE_HIGH
import android.app.PendingIntent
import android.app.PendingIntent.FLAG_CANCEL_CURRENT
import andro... |
app/src/main/java/vn/loitp/a/cv/sb/vertical/VerticalSeekbarActivityFont.kt | unknown_repo | kotlin | package vn.loitp.a.cv.sb.vertical
import android.os.Bundle
import android.widget.SeekBar
import com.loitp.annotation.IsFullScreen
import com.loitp.annotation.LogTag
import com.loitp.core.base.BaseActivityFont
import com.loitp.core.ext.setSafeOnClickListenerElastic
import kotlinx.android.synthetic.main.a_sb_vert.*
impo... |
mime/src/main/java/com/jetictors/futures/mime/mime/ui/EditPwdFragment.kt | unknown_repo | kotlin | package com.jetictors.futures.mime.mime.ui
import android.os.Bundle
import android.view.View
import com.jetictors.futures.common.base.BaseFragment
import com.jetictors.futures.mime.R
/**
* @描述 : 修改密码页面
* @author : Jetictors
* @time : 2018/3/7 11:13
* @version : v1.0.1
*/
class EditPwdFragment : B... |
old/basic/src/main/java/com/dinesh/android/kotlin/activity/floating_window/v0/FloatingWindowService.kt | unknown_repo | kotlin | package com.dinesh.android.kotlin.activity.floating_window.v0
import android.app.Service
import android.content.Intent
import android.os.IBinder
import android.util.Log
class FloatingWindowService : Service() {
private lateinit var floatingWindowManager: FloatingWindowManager
override fun onCreate() {
... |
app/src/main/java/com/raassh/gemastik15/local/db/ChatDao.kt | unknown_repo | kotlin | package com.raassh.gemastik15.local.db
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import kotlinx.coroutines.flow.Flow
@Dao
interface ChatDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun insertChats(chats: List<Chat... |
presentation/src/main/java/com/glowka/rafal/topmusic/presentation/flow/dashboard/country/CountryDialogFragment.kt | unknown_repo | kotlin | package com.glowka.rafal.topmusic.presentation.flow.dashboard.country
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import com.glowka.rafal.topmusic.presentation.architecture.BaseBottomSheetDialogFragment
import com.glowka.rafal.topmu... |
features/timeline/src/main/java/com/chesire/nekome/app/timeline/TimelineViewModel.kt | unknown_repo | kotlin | package com.chesire.nekome.app.timeline
import androidx.lifecycle.ViewModel
import androidx.lifecycle.liveData
import com.chesire.nekome.datasource.activity.ActivityDomain
import com.chesire.nekome.datasource.activity.ActivityRepository
import com.chesire.nekome.datasource.activity.UserActivityResult
import dagger.hil... |
app/src/main/java/com/mafqud/android/notification/NotificationViewModel.kt | unknown_repo | kotlin | package com.mafqud.android.notification
import androidx.lifecycle.viewModelScope
import androidx.paging.Pager
import androidx.paging.cachedIn
import androidx.paging.map
import com.mafqud.android.base.viewModel.BaseViewModel
import com.mafqud.android.notification.models.NotificationsResponse
import com.mafqud.android.u... |
app/src/main/java/com/mafqud/android/notification/NotificationViewModel.kt | unknown_repo | kotlin | package com.mafqud.android.notification
import androidx.lifecycle.viewModelScope
import androidx.paging.Pager
import androidx.paging.cachedIn
import androidx.paging.map
import com.mafqud.android.base.viewModel.BaseViewModel
import com.mafqud.android.notification.models.NotificationsResponse
import com.mafqud.android.u... |
app/src/main/java/com/example/myapplication/MainActivity.kt | unknown_repo | kotlin | package com.example.myapplication
import android.Manifest
import android.app.Activity
import android.content.Context
import android.content.pm.PackageManager
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.ActivityC... |
app/src/main/java/com/coupleblog/singleton/CB_SingleSystemMgr.kt | unknown_repo | kotlin | package com.coupleblog.singleton
import android.annotation.SuppressLint
import android.content.Context
import android.widget.Toast
class CB_SingleSystemMgr
{
// enum class for single system
enum class ACTIVITY_TYPE
{
MAIN,
PHOTO_EDTIOR,
VIDEO_CALL,
DAYS_WIDGET,
ACTI... |
app/src/main/java/com/example/calculator/NumberStorage.kt | unknown_repo | kotlin | package com.example.calculator
import android.widget.Toast
data class NumberStorage(var equation: String = "", var theResult: String = "")
// var firstNumber: String = "",
// var secondNumber: String = "",
// var calculatedNumber: String = "",
// var strongerSymbol: String = "",
// var weakerSymbol... |
daggie-sample/src/main/java/com/nextfaze/daggie/Activity.kt | unknown_repo | kotlin | package com.nextfaze.daggie
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
abstract class DaggerActivity<I> : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
inject(injector)
super.onCreate(savedInstanceState)
}
protected abstract val i... |
messageview/src/main/java/dev/armoury/android/widget/MessageView.kt | unknown_repo | kotlin | package dev.armoury.android.widget
import android.animation.Animator
import android.content.Context
import android.content.res.TypedArray
import android.util.AttributeSet
import android.view.Gravity
import android.view.LayoutInflater
import android.view.View
import android.widget.TextView
import androidx.annotation.Dr... |
app/src/main/java/com/github/naz013/tasker/task/AddTaskFragment.kt | unknown_repo | kotlin | package com.github.naz013.tasker.task
import android.graphics.Color
import android.graphics.drawable.GradientDrawable
import android.os.Bundle
import android.text.TextUtils
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.lifecycle.Observer
import androidx.lifec... |
app/src/main/java/com/nohjason/momori/component/button/MomoriImageButton.kt | unknown_repo | kotlin | package com.nohjason.momori.component.button
import android.util.Log
import androidx.annotation.DrawableRes
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.found... |
shared/src/main/java/xyz/klinker/messenger/shared/service/ReplyService.kt | unknown_repo | kotlin | /*
* Copyright (C) 2020 <NAME>
*
* 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 agreed to in wr... |
app/src/main/java/com/example/compose_clean_base/presentation/login/LoginScreen.kt | unknown_repo | kotlin | package com.example.compose_clean_base.presentation.login
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout... |
colorpicker/src/main/java/vadiole/colorpicker/ColorPickerDialog.kt | unknown_repo | kotlin | package vadiole.colorpicker
import android.app.Dialog
import android.os.Bundle
import androidx.annotation.ColorInt
import androidx.annotation.StringRes
import androidx.appcompat.app.AlertDialog
import androidx.core.graphics.ColorUtils
import androidx.core.os.bundleOf
import androidx.fragment.app.DialogFragment
import ... |
injectk_dagger_hilt_test/src/main/java/com/mozhimen/injectk/dagger/hilt/test/vms/MainViewModel.kt | unknown_repo | kotlin | package com.mozhimen.injectk.dagger.hilt.test.vms
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.mozhimen.kotlin.elemk.androidx.lifecycle.bases.BaseViewModel
import com.mozhimen.injectk.dagger.hilt.... |
app/src/main/java/com/project/findhere/AddActivity.kt | unknown_repo | kotlin | package com.project.findhere
import android.app.Activity
import android.app.DatePickerDialog
import android.content.ContentValues.TAG
import android.content.Intent
import android.content.pm.PackageManager
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.Matrix
import android... |
multipaysdk/src/main/java/com/inventiv/multipaysdk/util/Validator.kt | unknown_repo | kotlin | package com.inventiv.multipaysdk.util
import android.util.Patterns
import com.inventiv.multipaysdk.MultiPaySdk
import com.inventiv.multipaysdk.R
import com.inventiv.multipaysdk.data.model.type.ValidationErrorType
internal object Validator {
const val INPUT_TYPE_EMAIL = 0
const val INPUT_TYPE_GSM = 1
cons... |
ApiDemos/kotlin/app/src/v3/java/com/example/kotlindemos/OnMapAndViewReadyListener.kt | unknown_repo | kotlin | /*
* Copyright 2018 Google LLC
*
* 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 applicable law or agreed to ... |
core/design-system/src/main/java/dev/enesky/core/design_system/annotation/PreviewUiMode.kt | unknown_repo | kotlin | /*
* Copyright 2023
* Designed and developed by <NAME>
*
* 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/LICEN... |
packages/default-storage/android/src/test/java/com/reactnativecommunity/asyncstorage/next/StorageTest.kt | unknown_repo | kotlin | package abi49_0_0.com.reactnativecommunity.asyncstorage.next
import androidx.room.Room
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import com.google.common.truth.Truth.assertThat
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.corout... |
demo/src/main/java/com/backbase/deferredresources/demo/DemoPagerAdapter.kt | unknown_repo | kotlin | package com.backbase.deferredresources.demo
import android.graphics.Color
import android.graphics.drawable.GradientDrawable
import android.view.ViewGroup
import android.widget.LinearLayout
import androidx.recyclerview.widget.RecyclerView
import com.backbase.deferredresources.DeferredColor
import com.backbase.deferredr... |
app/src/main/java/com/kylecorry/trail_sense/tools/paths/ui/commands/ImportPathsCommand.kt | unknown_repo | kotlin | package com.kylecorry.trail_sense.tools.paths.ui.commands
import android.content.Context
import androidx.lifecycle.LifecycleOwner
import com.kylecorry.andromeda.alerts.Alerts
import com.kylecorry.andromeda.core.coroutines.BackgroundMinimumState
import com.kylecorry.andromeda.core.coroutines.onDefault
import com.kyleco... |
rpglib/src/main/kotlin/com/naosim/rpglib/android/fieldviewmodel/WebFieldViewModelImpl.kt | unknown_repo | kotlin | package com.naosim.rpglib.android.fieldviewmodel
import android.util.Log
import android.webkit.ConsoleMessage
import android.webkit.WebChromeClient
import android.webkit.WebView
import com.naosim.rpglib.model.value.field.*
import com.naosim.rpglib.model.viewmodel.fieldviewmodel.FieldViewModel
import org.json.JSONArray... |
easing/src/commonMain/kotlin/co/touchlab/composeanimations/easing/Circ.kt | unknown_repo | kotlin | package co.touchlab.composeanimations.easing
import androidx.compose.animation.core.Easing
import kotlin.math.pow
import kotlin.math.sqrt
// https://easings.net/#easeInCirc
object EaseInCirc : Easing {
override fun transform(fraction: Float): Float =
1 - sqrt(1 - fraction.pow(2))
}
// https://easings.net... |
recommend/src/main/java/com/allever/lib/recommend/Recommend.kt | unknown_repo | kotlin | package com.allever.app.kotlin.coroutine.retrofit
import androidx.annotation.Keep
@Keep
class Recommend {
var id: Int = 0
var type: Int = 0
var name: String = ""
var iconResId: Int = 0
var desc: String = ""
var size: String = ""
var channel: String = ""
var pkg: String = ""
var url... |
feature/lightbox/view/implementation/src/main/kotlin/com/savvasdalkitsis/uhuruphotos/feature/lightbox/view/implementation/navigation/LightboxNavigationTarget.kt | unknown_repo | kotlin | /*
Copyright 2023 Savvas Dalkitsis
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 agreed to in writing, softwar... |
app/src/androidTest/java/com/vishalgaur/shoppingapp/data/source/FakeProductsRepository.kt | unknown_repo | kotlin | package com.vishalgaur.shoppingapp.data.source
import android.net.Uri
import androidx.core.net.toUri
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import com.vishalgaur.shoppingapp.data.Product
import com.vishalgaur.shoppingapp.data.Result
import... |
extension/src/main/java/vip/frendy/extension/base/BaseSwipeBackFragmentActivity.kt | unknown_repo | kotlin | package vip.frendy.extension.base
import android.content.Intent
import android.os.Bundle
import android.support.v4.app.Fragment
import vip.frendy.extension.R
/**
* Created by frendy on 2017/10/11.
*/
abstract class BaseFragmentActivity: BaseActivity() {
protected var currentFragment: Fragment? = null
overr... |
app/src/main/java/com/developerspace/webrtcsample/legacy/MainActivity.kt | unknown_repo | kotlin | package com.developerspace.webrtcsample.legacy
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.EditText
import com.developerspace.webrtcsample.R
import com.developerspace.webrtcsample.legacy.activeUsers.ui.ActiveU... |
app/src/main/java/com/koma/video/search/SearchAdapter.kt | unknown_repo | kotlin | /*
* Copyright 2018 koma_mj
*
* 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 agreed to in ... |
app/src/main/java/com/chillibits/pmapp/widget/WidgetProviderSmall.kt | unknown_repo | kotlin | /*
* Copyright © <NAME> 2017 - 2020. All rights reserved
*/
package com.chillibits.pmapp.widget
import android.app.PendingIntent
import android.appwidget.AppWidgetManager
import android.appwidget.AppWidgetProvider
import android.content.Context
import android.content.Intent
import android.os.Build
import android.vi... |
app/src/main/java/com/krm/tmdb/ui/fragments/search/FragmentSearch.kt | unknown_repo | kotlin | package com.krm.tmdb.ui.fragments.search
import android.os.Bundle
import androidx.recyclerview.widget.GridLayoutManager
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.krm.tmdb.data.model.ObjectsSearch
import com.krm.tmdb.ui.activities.base.BaseFragment
import com.k... |
VehicleUI/src/main/java/com/drivequant/drivekit/vehicle/ui/odometer/fragment/OdometerHistoryDetailFragment.kt | unknown_repo | kotlin | package com.drivequant.drivekit.vehicle.ui.odometer.fragment
import android.app.Activity
import android.app.AlertDialog
import android.content.Context
import android.content.DialogInterface
import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import android.text.InputType
import android... |
app/src/main/java/com/puntogris/recap/feature_recap/domain/model/Recap.kt | unknown_repo | kotlin | package com.puntogris.recap.feature_recap.domain.model
import android.os.Parcelable
import androidx.annotation.Keep
import com.google.firebase.Timestamp
import kotlinx.parcelize.Parcelize
@Keep
@Parcelize
data class Recap(
var id: String = "",
var uid: String = "",
var username: String = "",
var ti... |
core/design/src/main/java/com/weather/core/design/theme/Color.kt | unknown_repo | kotlin | package com.weather.core.design.theme
import androidx.compose.ui.graphics.Color
val White = Color(0xFFF0F0F0)
val Gray900 = Color(0xFF0F0F0F)
val Gray800 = Color(0xFF141414)
val Gray200 = Color(0xFFD2D2D2)
val Gray100 = Color(0XFFe6e6e6)
val Blue = Color(0xFF2131CC)
val Black = Color(0xFF0A0A0A)
val Yellow = Color(0X... |
src/main/java/pl/edu/amu/wmi/erykandroidcommon/recycler/grouping/GroupedRecyclerFragment.kt | unknown_repo | kotlin | package pl.edu.amu.wmi.erykandroidcommon.recycler.grouping
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.View
import pl.edu.amu.wmi.erykandroidcommon.base.BaseFragment
import pl.edu.amu.wmi.erykandroidcommon.recycler.AbstractViewHolder
abstract... |
simplified-profiles/src/main/java/org/nypl/simplified/profiles/ProfilesDatabase.kt | unknown_repo | kotlin | package org.nypl.simplified.profiles
import android.content.Context
import com.google.common.base.Preconditions
import com.io7m.jfunctional.Option
import com.io7m.jfunctional.OptionType
import com.io7m.junreachable.UnreachableCodeException
import io.reactivex.subjects.Subject
import org.joda.time.LocalDateTime
import ... |
app/src/main/java/com/leonra/versions/list/VersionListFragment.kt | unknown_repo | kotlin | package com.leonra.versions.list
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyc... |
detekt-formatting/src/main/kotlin/io/gitlab/arturbosch/detekt/formatting/FormattingProvider.kt | unknown_repo | kotlin | package io.gitlab.arturbosch.detekt.formatting
import com.pinterest.ktlint.rule.engine.core.api.Rule
import com.pinterest.ktlint.rule.engine.core.api.RuleId
import com.pinterest.ktlint.rule.engine.core.api.RuleSetId
import io.gitlab.arturbosch.detekt.api.ActiveByDefault
import io.gitlab.arturbosch.detekt.api.Config
im... |
app/src/main/java/com/cdmp/rickmorty/data/RickMortyApi.kt | unknown_repo | kotlin | package com.cdmp.rickmorty.data
import androidx.annotation.WorkerThread
import com.cdmp.rickmorty.data.entity.CharacterList
import com.cdmp.rickmorty.data.service.RickMortyService
import retrofit2.Response
import java.lang.RuntimeException
class RickMortyApi(private val service: RickMortyService) {
@WorkerThread... |
app/src/main/java/com/example/rootcheck/SPUtils.kt | unknown_repo | kotlin | package com.example.rootcheck
import android.content.Context
class SPUtils{
companion object{
fun saveString(context: Context,spName:String,key: String, value: String) {
val editor = MyApplication.applicationContext().getSharedPreferences(spName, Context.MODE_PRIVATE).edit()
ed... |
presentation/src/main/kotlin/app/web/drjackycv/presentation/main/MainActivity.kt | unknown_repo | kotlin | package app.web.drjackycv.presentation.main
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatDelegate
import androidx.lifecycle.lifecycleScope
import androidx.navigation.NavController
import androidx.navigation.findNavController
import app.web.drjackycv.do... |
core_library_android/library/src/main/java/net/apptronic/core/android/viewmodel/ViewBinder.kt | unknown_repo | kotlin | package net.apptronic.core.android.viewmodel
import android.app.Activity
import android.app.Dialog
import android.content.Context
import android.os.Bundle
import android.os.Parcelable
import android.util.SparseArray
import android.view.View
import android.view.ViewGroup
import androidx.annotation.LayoutRes
import net.... |
app/src/main/kotlin/org/emunix/insteadlauncher/presentation/launcher/AppArgumentViewModel.kt | unknown_repo | kotlin | /*
* Copyright (c) 2021 <NAME> <<EMAIL>>
* Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
*/
package org.emunix.insteadlauncher.ui.launcher
import android.net.Uri
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class AppArgumentViewModel:... |
matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/group/GroupSummaryUpdater.kt | unknown_repo | kotlin | /*
* Copyright 2019 New Vector Ltd
*
* 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 agreed to i... |
compass-geolocation-mobile/src/androidMain/kotlin/dev/jordond/compass/geolocation/mobile/internal/LocationManager.kt | unknown_repo | kotlin | package dev.jordond.compass.geolocation.mobile.internal
import android.content.Context
import android.location.Location
import android.location.LocationManager
import android.os.Looper
import com.google.android.gms.location.LocationCallback
import com.google.android.gms.location.LocationRequest
import com.google.andro... |
App/app/src/main/java/com/example/winedroid/SplashActivity.kt | unknown_repo | kotlin | package com.example.winedroid
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import com.example.winedroid.ui.login.LoginActivity
import com.example.winedroid.ui.perfil.EditarPerfilFragment
import com.example.winedroid.ui.perfil.PerfilFra... |
app/src/main/java/com/thryan/secondclass/ui/login/LoginViewModel.kt | unknown_repo | kotlin | package com.thryan.secondclass.ui.login
import android.annotation.SuppressLint
import android.content.Context
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.navigation.NavHostController
import com.thryan.secondclass.core.Webvpn
import kotlinx.coroutines.Dispatchers
import... |
matisse/src/main/kotlin/com/zhihu/matisse/SelectionCreator.kt | unknown_repo | kotlin | package com.zhihu.matisse
import android.app.Activity
import android.content.pm.ActivityInfo
import androidx.annotation.StyleRes
import com.zhihu.matisse.engine.ImageEngine
import com.zhihu.matisse.filter.Filter
import com.zhihu.matisse.internal.entity.CaptureStrategy
import com.zhihu.matisse.internal.entity.Selection... |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/outline/Elementequal.kt | unknown_repo | kotlin | package moe.tlaster.icons.vuesax.vuesaxicons.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx... |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/outline/Elementequal.kt | unknown_repo | kotlin | package moe.tlaster.icons.vuesax.vuesaxicons.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx... |
feature/story/src/main/kotlin/com/najudoryeong/mineme/feature/story/WriteStoryViewModel.kt | unknown_repo | kotlin | /*
* Copyright 2023 KDW03
*
* 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 applicable law or agreed to in wr... |
image/src/main/java/com/smarttoolfactory/image/zoom/EnhancedZoomStateImpl.kt | unknown_repo | kotlin | package com.smarttoolfactory.image.zoom
import androidx.compose.animation.core.exponentialDecay
import androidx.compose.ui.Modifier
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.geometry.Rect
import androidx.compose.ui.geometry.Size
import androidx.compose.ui.input.pointer.PointerInputChange
im... |
app/src/main/java/com/octagontechnologies/harrypotter/repo/local/dao/BaseDao.kt | unknown_repo | kotlin | package com.da_chelimo.generate.core.data.repo.local.dao
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
@Dao
abstract class BaseDao<T> {
@Insert(onConflict = OnConflictStrategy.REPLACE)
abstract suspend fun insertData(data: T)
@Insert(onConflict = OnConflic... |
app/src/main/java/com/givekesh/raters/utils/diff/CurrenciesDiffCallBack.kt | unknown_repo | kotlin | package com.givekesh.raters.utils.diff
import androidx.recyclerview.widget.DiffUtil
import com.givekesh.raters.data.models.CurrenciesModel
class CurrenciesDiffCallBack(
private val oldList: MutableList<CurrenciesModel>,
private val newList: List<CurrenciesModel>
) : DiffUtil.Callback() {
override fun get... |
app/src/main/java/com/example/stufffmanager/logic/Repository.kt | unknown_repo | kotlin | package com.example.stufffmanager.logic
import android.util.Log
import androidx.lifecycle.liveData
import com.example.staffmanager.logic.model.AnnoucementResponse
import com.example.staffmanager.logic.model.LoginRequest
import com.example.staffmanager.logic.model.LoginResponse
import com.example.staffmanager.logic.n... |
gson-support/src/test/java/com/chibatching/kotpref/gsonpref/GsonSupportTest.kt | unknown_repo | kotlin | package com.chibatching.kotpref.gsonpref
import android.content.Context
import android.content.SharedPreferences
import com.chibatching.kotpref.Kotpref
import com.chibatching.kotpref.KotprefModel
import com.google.gson.Gson
import org.assertj.core.api.Assertions.assertThat
import org.junit.After
import org.junit.Befor... |
src/net/azib/photos/cast/MainActivity.kt | unknown_repo | kotlin | package net.azib.photos.cast
import android.content.Intent
import android.content.Intent.ACTION_VIEW
import android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT
import android.net.Uri
import android.os.Bundle
import android.support.v4.view.MenuItemCompat
import android.support.v7.app.AppCompatActivity
import an... |
app/src/main/kotlin/dev/aaa1115910/bv/screen/user/FollowScreen.kt | unknown_repo | kotlin | package dev.aaa1115910.bv.screen.user
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.f... |
HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/variables/types/NumberType.kt | unknown_repo | kotlin | package ch.rmy.android.http_shortcuts.variables.types
import android.content.Context
import android.text.InputType
import ch.rmy.android.http_shortcuts.data.Commons
import ch.rmy.android.http_shortcuts.data.models.Variable
import ch.rmy.android.http_shortcuts.extensions.mapIf
import io.reactivex.Single
internal class... |
app/src/main/java/com/manish/shopnow/fragments/shopping/HomeFragment.kt | unknown_repo | kotlin | package com.manish.shopnow.fragments.shopping
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.lifecycleScope
import androidx.navigation.fragment.findNavControlle... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.